diff --git a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue index 508e7b50cf..e7e76aece3 100644 --- a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue +++ b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue @@ -57,6 +57,7 @@ :fields.sync="fields" :field-key="tableHeaderKey" @handleRowClick="handleRowClick" + @refresh="onChange" ref="variableTable"> { item.num = index; + item.showMore = false; index++; }); + this.selection = []; }, updateParameters(v) { this.editData = JSON.parse(JSON.stringify(v)); @@ -417,7 +420,7 @@ export default { const index = this.variables.findIndex(d => d.id === row); this.variables.splice(index, 1); }); - this.sortParamters(); + this.sortParameters(); this.editData = {}; } } @@ -427,7 +430,7 @@ export default { const index = this.variables.findIndex(d => d.id === row); this.variables.splice(index, 1); }); - this.sortParamters(); + this.sortParameters(); this.editData = {}; } }, @@ -442,7 +445,7 @@ export default { this.variables.splice(index, 1); }); // this.editData = {type: "CONSTANT"}; - this.sortParamters(); + this.sortParameters(); this.editData = {}; this.$refs.variableTable.cancelCurrentRow(); this.$refs.variableTable.clear(); @@ -499,7 +502,11 @@ export default { this.editData.files = item.files } }); - } + }, + onChange(){ + this.selection = []; + this.sortParameters(); + }, } };