fix(测试跟踪): 功能用例列表全选问题

--bug=1023477 --user=宋昌昌 【测试跟踪】功能用例,全选后取消,再次全选,复选框没有被选中 https://www.tapd.cn/55049933/s/1340006
This commit is contained in:
song-cc-rock 2023-02-21 18:35:25 +08:00 committed by jianxing
parent 6a7a0199a4
commit 53698ab996
2 changed files with 6 additions and 1 deletions

View File

@ -373,7 +373,11 @@ export default {
} }
}, },
handleSelectAll(selection) { handleSelectAll(selection) {
if (this.condition.selectAll) { if (this.condition.selectAll && selection && selection.length > 0) {
this.isSelectDataAll(true)
return;
} else if (this.condition.selectAll && selection && selection.length === 0){
this.$emit("clearTableSelect");
return; return;
} }
_handleSelectAll(this, selection, this.data, this.selectRows, this.condition); _handleSelectAll(this, selection, this.data, this.selectRows, this.condition);

View File

@ -50,6 +50,7 @@
@filter="search" @filter="search"
@callBackSelect="callBackSelect" @callBackSelect="callBackSelect"
@callBackSelectAll="callBackSelectAll" @callBackSelectAll="callBackSelectAll"
@clearTableSelect="clearTableSelect"
ref="table"> ref="table">
<ms-table-column <ms-table-column