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

View File

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