From d4170977208aaed03329f26d0a05474c0bb30ef5 Mon Sep 17 00:00:00 2001 From: song-cc-rock Date: Tue, 21 Feb 2023 18:35:25 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B=E5=88=97=E8=A1=A8=E5=85=A8?= =?UTF-8?q?=E9=80=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1023477 --user=宋昌昌 【测试跟踪】功能用例,全选后取消,再次全选,复选框没有被选中 https://www.tapd.cn/55049933/s/1340006 --- .../sdk-parent/frontend/src/components/new-ui/MsTable.vue | 6 +++++- .../frontend/src/business/case/components/TestCaseList.vue | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/framework/sdk-parent/frontend/src/components/new-ui/MsTable.vue b/framework/sdk-parent/frontend/src/components/new-ui/MsTable.vue index be5abacf5a..de6796ebea 100644 --- a/framework/sdk-parent/frontend/src/components/new-ui/MsTable.vue +++ b/framework/sdk-parent/frontend/src/components/new-ui/MsTable.vue @@ -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); diff --git a/test-track/frontend/src/business/case/components/TestCaseList.vue b/test-track/frontend/src/business/case/components/TestCaseList.vue index 6563338b47..57890416a5 100644 --- a/test-track/frontend/src/business/case/components/TestCaseList.vue +++ b/test-track/frontend/src/business/case/components/TestCaseList.vue @@ -50,6 +50,7 @@ @filter="search" @callBackSelect="callBackSelect" @callBackSelectAll="callBackSelectAll" + @clearTableSelect="clearTableSelect" ref="table">