ソースを参照

修改SQL工作台的查询结果界面的修改弹窗

chensibo 1 週間 前
コミット
ea9d62ee36
1 ファイル変更27 行追加11 行削除
  1. 27 11
      src/views/mes/queryManage/queryNew.vue

+ 27 - 11
src/views/mes/queryManage/queryNew.vue

@@ -440,9 +440,26 @@ export default {
       } else if (operateType === 3) {
         // 修改
         if (!checkSelection()) return;
-
-        // 1 条继续用原弹窗
-        if (this.multipleSelection.length === 1) {
+        // 通过选择的条数选择调用ParameterDetail或者ParameterBatch
+        // if (this.multipleSelection.length === 1) {
+        //   this.$refs.parameterDetailRef.open(
+        //     "update",
+        //     btn,
+        //     this.$route.query?.id,
+        //     this.multipleSelection,
+        //     this.queryData
+        //   );
+        //   return;
+        // }
+        // this.$refs.parameterBatchRef.open(
+        //   btn,
+        //   this.$route.query?.id,
+        //   this.multipleSelection,
+        //   this.queryData
+        // );
+
+        // 通过ifArray的值来调用ParameterDetail或者ParameterBatch
+        if (btn.ifArray === false) {
           this.$refs.parameterDetailRef.open(
             "update",
             btn,
@@ -450,15 +467,14 @@ export default {
             this.multipleSelection,
             this.queryData
           );
-          return;
+        } else {
+          this.$refs.parameterBatchRef.open(
+            btn,
+            this.$route.query?.id,
+            this.multipleSelection,
+            this.queryData
+          );
         }
-        // >=2 条用批量列表
-        this.$refs.parameterBatchRef.open(
-          btn,
-          this.$route.query?.id,
-          this.multipleSelection,
-          this.queryData
-        );
       } else if (operateType === 7) {
         this.$router.push({ path: `${interfaceUrl}` });
       } else {