From d7ebb803c3611b14d6cb44598b6d6bcc1f11bffc Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 12 Jan 2023 14:57:05 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=B7=A5=E4=BD=9C=E5=8F=B0):=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89=E4=BB=A5=E5=8F=8A?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E7=94=A8=E4=BE=8B=E5=9C=A8=E5=88=87=E6=8D=A2?= =?UTF-8?q?=E5=BE=85=E5=AE=8C=E6=88=90=E6=97=B6=E8=BF=87=E6=BB=A4=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E4=B8=8D=E6=B8=85=E7=A9=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1021803 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021803 --- .../frontend/src/components/table/MsTable.vue | 16 ++++++++++------ .../src/business/component/ApiCaseTableList.vue | 1 + .../src/business/detail/WorkstationDetail.vue | 2 +- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/framework/sdk-parent/frontend/src/components/table/MsTable.vue b/framework/sdk-parent/frontend/src/components/table/MsTable.vue index 8b89dc3db5..9cc8a24a46 100644 --- a/framework/sdk-parent/frontend/src/components/table/MsTable.vue +++ b/framework/sdk-parent/frontend/src/components/table/MsTable.vue @@ -591,17 +591,17 @@ export default { this.doLayout(); }); }, - addPaddingColClass({ column }) { + addPaddingColClass({column}) { if ( - column.columnKey === "tableRowDropCol" || - column.columnKey === "selectionCol" || - column.columnKey === "batchBtnCol" + column.columnKey === "tableRowDropCol" || + column.columnKey === "selectionCol" || + column.columnKey === "batchBtnCol" ) { return "padding-col"; } }, - rowStyle({ row }) { - return row.hidden ? { display: "none" } : {}; + rowStyle({row}) { + return row.hidden ? {display: "none"} : {}; }, tableRowClassName(row) { if (row.row.hidden) { @@ -609,6 +609,10 @@ export default { } return ""; }, + //清空Filter条件 + clearFilter() { + this.$refs.table.clearFilter(); + } }, }; diff --git a/workstation/frontend/src/business/component/ApiCaseTableList.vue b/workstation/frontend/src/business/component/ApiCaseTableList.vue index 3aaeb796db..ce3bc9f7e3 100644 --- a/workstation/frontend/src/business/component/ApiCaseTableList.vue +++ b/workstation/frontend/src/business/component/ApiCaseTableList.vue @@ -864,6 +864,7 @@ export default { }, changeTabState(name) { + this.$refs.caseTable.clearFilter(); if (name === 'update') { this.isFinish = false; } else { diff --git a/workstation/frontend/src/business/detail/WorkstationDetail.vue b/workstation/frontend/src/business/detail/WorkstationDetail.vue index 777b614a18..baace10fbb 100644 --- a/workstation/frontend/src/business/detail/WorkstationDetail.vue +++ b/workstation/frontend/src/business/detail/WorkstationDetail.vue @@ -524,7 +524,7 @@ export default { this.$refs.apiCaseTableList.changeTabState('finish') } if (this.currentTodo === 'api_definition') { - this.$refs.apiCaseTableList.changeTabState('finish') + this.$refs.apiDefinitionTableList.changeTabState('finish') } } },