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;