fix(测试跟踪): 测试计划接口用例刷新没有清除全选

--bug=1018695 --user=陈建星 【测试跟踪】测试计划批量删除全部用例后再次关联,全选状态没有消除 https://www.tapd.cn/55049933/s/1273139
This commit is contained in:
chenjianxing 2022-10-23 15:14:30 +08:00 committed by jianxing
parent 4917387be1
commit d2edc5de74
2 changed files with 6 additions and 4 deletions

View File

@ -468,6 +468,9 @@ export default {
this.$refs.table.setCurrentRow(-1);
},
clear() {
//
this.condition.selectAll = false;
this.condition.unSelectIds = [];
this.clearSelectRows();
},
checkTableRowIsSelect() {
@ -482,10 +485,6 @@ export default {
clearSelectRows() {
this.selectRows.clear();
this.selectIds = [];
if (!this.condition.selectAll) {
this.condition.selectAll = false;
this.condition.unSelectIds = [];
}
this.selectDataCounts = 0;
if (this.$refs.table) {
this.$refs.table.clearSelection();

View File

@ -417,6 +417,9 @@ export default {
this.$emit('isApiListEnableChange', data);
},
initTable() {
if (this.$refs.table) {
this.$refs.table.clear();
}
this.autoCheckStatus();
this.condition.status = "";
this.condition.moduleIds = this.selectNodeIds;