|
|
@@ -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 {
|