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 CaptainB
parent cb0e0e8470
commit d417097720
2 changed files with 6 additions and 1 deletions

View File

@ -373,7 +373,11 @@ export default {
}
},
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;
}
_handleSelectAll(this, selection, this.data, this.selectRows, this.condition);

View File

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