From 9404db0222034f4fa6f6598da8ab4ebefb860263 Mon Sep 17 00:00:00 2001 From: RubyLiu Date: Thu, 28 Sep 2023 16:17:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86=E5=89=8D=E7=AB=AF=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ms-user-group-comp/addUserModal.vue | 2 +- .../components/pure/ms-table/base-table.vue | 17 +++++++--- .../src/components/pure/ms-table/useTable.ts | 1 - frontend/src/locale/en-US/index.ts | 3 ++ frontend/src/locale/zh-CN/index.ts | 3 ++ .../projectManagement/menuManagement.ts | 2 ++ .../menuManagement/index.vue | 32 ++++++++++++------- .../userGroup/addUserModal.vue | 2 +- .../project/components/addUserModal.vue | 2 +- .../pluginManager/components/tableExpand.vue | 15 ++++++--- 10 files changed, 53 insertions(+), 26 deletions(-) diff --git a/frontend/src/components/business/ms-user-group-comp/addUserModal.vue b/frontend/src/components/business/ms-user-group-comp/addUserModal.vue index cebb9541f3..d3d83ebc50 100644 --- a/frontend/src/components/business/ms-user-group-comp/addUserModal.vue +++ b/frontend/src/components/business/ms-user-group-comp/addUserModal.vue @@ -2,7 +2,7 @@
{ const { selectorStatus } = props; if (selectorStatus === SelectAllEnum.CURRENT) { - return (attrs.msPagination as MsPaginationI)?.pageSize || appStore.pageSize; + const { pageSize, total } = attrs.msPagination as MsPaginationI; + if (pageSize > total) { + return total; + } + return pageSize; } return (attrs.msPagination as MsPaginationI)?.total || appStore.pageSize; }); @@ -456,4 +460,7 @@ :deep(.arco-checkbox:hover .arco-checkbox-icon-hover::before) { background: none !important; } + :deep(.arco-table .arco-table-expand-btn) { + border-color: transparent; + } diff --git a/frontend/src/components/pure/ms-table/useTable.ts b/frontend/src/components/pure/ms-table/useTable.ts index 6ab3879308..5d0e6abe00 100644 --- a/frontend/src/components/pure/ms-table/useTable.ts +++ b/frontend/src/components/pure/ms-table/useTable.ts @@ -8,7 +8,6 @@ import type { TableData } from '@arco-design/web-vue'; import type { TableQueryParams, CommonList } from '@/models/common'; import { SelectAllEnum } from '@/enums/tableEnum'; import type { MsTableProps, MsTableDataItem, MsTableColumn, MsTableErrorStatus, SetPaginationPrams } from './type'; -import { set } from 'nprogress'; export interface Pagination { current: number; diff --git a/frontend/src/locale/en-US/index.ts b/frontend/src/locale/en-US/index.ts index 4d3fd085b2..55bfcf7ad4 100644 --- a/frontend/src/locale/en-US/index.ts +++ b/frontend/src/locale/en-US/index.ts @@ -29,6 +29,9 @@ export default { 'menu.projectManagement': 'Project', 'menu.projectManagement.fileManagement': 'File Management', 'menu.featureTest.featureCase': 'Feature Case', + 'meun.workstation': 'Workstation', + 'menu.loadTest': 'Performance Test', + 'menu.caseManagement': 'Feature Test', 'menu.projectManagement.projectPermission': 'Project Permission', 'menu.projectManagement.log': 'Log', 'menu.settings': 'Settings', diff --git a/frontend/src/locale/zh-CN/index.ts b/frontend/src/locale/zh-CN/index.ts index 8abbc67d22..341a6c6edb 100644 --- a/frontend/src/locale/zh-CN/index.ts +++ b/frontend/src/locale/zh-CN/index.ts @@ -24,6 +24,9 @@ export default { 'menu.featureTest': '功能测试', 'menu.apiTest': '接口测试', 'menu.uiTest': 'UI测试', + 'meun.workstation': '工作台', + 'menu.loadTest': '性能测试', + 'menu.caseManagement': '功能测试', 'menu.performanceTest': '性能测试', 'menu.projectManagement': '项目管理', 'menu.projectManagement.log': '日志', diff --git a/frontend/src/models/projectManagement/menuManagement.ts b/frontend/src/models/projectManagement/menuManagement.ts index 18b3526814..5f60f148cf 100644 --- a/frontend/src/models/projectManagement/menuManagement.ts +++ b/frontend/src/models/projectManagement/menuManagement.ts @@ -4,6 +4,8 @@ export interface MenuTableListItem { module: string; moduleEnable: boolean; moduleDesc?: string; + children?: MenuTableListItem[]; + isLeaf?: boolean; } export interface MenuTableListParams { diff --git a/frontend/src/views/project-management/projectAndPermission/menuManagement/index.vue b/frontend/src/views/project-management/projectAndPermission/menuManagement/index.vue index caecc4724d..af2a2d07c2 100644 --- a/frontend/src/views/project-management/projectAndPermission/menuManagement/index.vue +++ b/frontend/src/views/project-management/projectAndPermission/menuManagement/index.vue @@ -7,8 +7,8 @@