|
@@ -15,25 +15,6 @@ export default {
|
|
|
this.onSelectAllAddToSite();
|
|
this.onSelectAllAddToSite();
|
|
|
},
|
|
},
|
|
|
async onSelectAllAddToSite() {
|
|
async onSelectAllAddToSite() {
|
|
|
- const hasUnreviewed = this.basicLayout.list.some(
|
|
|
|
|
- (row) => row.shelf === 0
|
|
|
|
|
- );
|
|
|
|
|
- if (hasUnreviewed) {
|
|
|
|
|
- this.$alert(
|
|
|
|
|
- this.$t("所选数据中有数据还未上架,请检查后再进行操作"),
|
|
|
|
|
- this.$t("提示"),
|
|
|
|
|
- {
|
|
|
|
|
- confirmButtonText: this.$t("确定"),
|
|
|
|
|
- callback: () => {
|
|
|
|
|
- this.$message({
|
|
|
|
|
- type: "info",
|
|
|
|
|
- message: this.$t("请检查所选数据"),
|
|
|
|
|
- });
|
|
|
|
|
- },
|
|
|
|
|
- }
|
|
|
|
|
- );
|
|
|
|
|
- return;
|
|
|
|
|
- }
|
|
|
|
|
const elTable = this.basicLayout.$refs.table.$refs.tables;
|
|
const elTable = this.basicLayout.$refs.table.$refs.tables;
|
|
|
this.basicLayout.list.forEach((row) => {
|
|
this.basicLayout.list.forEach((row) => {
|
|
|
elTable.toggleRowSelection(row, true);
|
|
elTable.toggleRowSelection(row, true);
|