From d2edc5de74d2f6de2335f4004882f395d45673d8 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Sun, 23 Oct 2022 15:14:30 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92=E6=8E=A5=E5=8F=A3=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E5=88=B7=E6=96=B0=E6=B2=A1=E6=9C=89=E6=B8=85=E9=99=A4?= =?UTF-8?q?=E5=85=A8=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018695 --user=陈建星 【测试跟踪】测试计划批量删除全部用例后再次关联,全选状态没有消除 https://www.tapd.cn/55049933/s/1273139 --- .../sdk-parent/frontend/src/components/table/MsTable.vue | 7 +++---- .../plan/view/comonents/api/TestPlanApiCaseList.vue | 3 +++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/framework/sdk-parent/frontend/src/components/table/MsTable.vue b/framework/sdk-parent/frontend/src/components/table/MsTable.vue index 2e408e2339..19609c9122 100644 --- a/framework/sdk-parent/frontend/src/components/table/MsTable.vue +++ b/framework/sdk-parent/frontend/src/components/table/MsTable.vue @@ -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(); diff --git a/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiCaseList.vue b/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiCaseList.vue index 9f617aa8d7..be7c79a717 100644 --- a/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiCaseList.vue +++ b/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiCaseList.vue @@ -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;