From e2190b63c4d152a6b927a92b06b3ef38f30dda5c Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 20 Mar 2024 17:13:53 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E8=A1=A8=E6=A0=BC=E6=94=AF=E6=8C=81=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E6=98=BE=E7=A4=BA=E5=AD=90=E7=9B=AE=E5=BD=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/pure/ms-table/base-table.vue | 2 + .../pure/ms-table/columnSelector.vue | 14 +++--- .../components/pure/ms-table/locale/en-US.ts | 2 +- .../components/pure/ms-table/locale/zh-CN.ts | 6 +-- frontend/src/enums/tableEnum.ts | 1 + frontend/src/router/routes/modules/apiTest.ts | 2 +- .../scenario/components/scenarioTable.vue | 45 +++++++------------ .../views/api-test/scenario/locale/en-US.ts | 2 - .../views/api-test/scenario/locale/zh-CN.ts | 2 - .../scenario/recycle/recycleTable.vue | 44 +++++++----------- 10 files changed, 47 insertions(+), 73 deletions(-) diff --git a/frontend/src/components/pure/ms-table/base-table.vue b/frontend/src/components/pure/ms-table/base-table.vue index 7dac5f3cf6..6499c4d1e7 100644 --- a/frontend/src/components/pure/ms-table/base-table.vue +++ b/frontend/src/components/pure/ms-table/base-table.vue @@ -245,6 +245,7 @@ :show-subdirectory="!!attrs.showSubdirectory" @init-data="handleInitColumn" @page-size-change="pageSizeChange" + @module-change="emit('moduleChange')" > @@ -325,6 +326,7 @@ (e: 'cell-click', record: TableData, column: TableColumnData, ev: Event): void | Promise; (e: 'clearSelector'): void; (e: 'filterChange', dataIndex: string, value: (string | number)[], multiple: boolean, isCustomParam: boolean): void; + (e: 'moduleChange'): void; }>(); const attrs = useAttrs(); // 全选按钮-总条数 diff --git a/frontend/src/components/pure/ms-table/columnSelector.vue b/frontend/src/components/pure/ms-table/columnSelector.vue index 12e4dd53aa..7a405d8dbc 100644 --- a/frontend/src/components/pure/ms-table/columnSelector.vue +++ b/frontend/src/components/pure/ms-table/columnSelector.vue @@ -50,18 +50,18 @@