From dc85c79e790a60ac341b79d3962c1f2a5ec4f0c8 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 6 Mar 2024 14:12:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=BB=E5=8A=A1=E4=B8=AD=E5=BF=83=E6=9D=83?= =?UTF-8?q?=E9=99=90=E9=94=99=E8=AF=AF=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1035951 --user=王孝刚 【系统设置】组织-用户组-没有任务中心查询权限-还显示了任务中心tab https://www.tapd.cn/55049933/s/1470137 --- .../io/metersphere/sdk/constants/PermissionConstants.java | 2 +- frontend/src/router/routes/modules/setting.ts | 6 +++--- .../project-management/taskCenter/component/apiCase.vue | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/PermissionConstants.java b/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/PermissionConstants.java index 7860105564..4a4687a1e9 100644 --- a/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/PermissionConstants.java +++ b/backend/framework/sdk/src/main/java/io/metersphere/sdk/constants/PermissionConstants.java @@ -326,6 +326,6 @@ public class PermissionConstants { /*------ start: ORGANIZATION_TASK_CENTER_READ ------*/ public static final String ORGANIZATION_TASK_CENTER_READ = "ORGANIZATION_TASK_CENTER:READ"; - public static final String ORGANIZATION_TASK_CENTER_READ_STOP = "ORGANIZATION_TASK_CENTER::READ+STOP"; + public static final String ORGANIZATION_TASK_CENTER_READ_STOP = "ORGANIZATION_TASK_CENTER:READ+STOP"; /*------ end: ORGANIZATION_TASK_CENTER_READ ------*/ } diff --git a/frontend/src/router/routes/modules/setting.ts b/frontend/src/router/routes/modules/setting.ts index d439d31123..3ffc1af7f1 100644 --- a/frontend/src/router/routes/modules/setting.ts +++ b/frontend/src/router/routes/modules/setting.ts @@ -189,8 +189,8 @@ const Setting: AppRouteRecordRaw = { 'SYSTEM_SERVICE_INTEGRATION:READ', 'ORGANIZATION_TEMPLATE:READ', 'ORGANIZATION_LOG:READ', - 'ORGANIZATION_TASK_CENTER::READ', - 'ORGANIZATION_TASK_CENTER::READ', + 'ORGANIZATION_TASK_CENTER:READ', + 'ORGANIZATION_TASK_CENTER:READ', ], hideChildrenInMenu: true, }, @@ -412,7 +412,7 @@ const Setting: AppRouteRecordRaw = { component: () => import('@/views/setting/organization/taskCenter/index.vue'), meta: { locale: 'menu.projectManagement.taskCenter', - roles: ['ORGANIZATION_TASK_CENTER::READ'], + roles: ['ORGANIZATION_TASK_CENTER:READ'], isTopMenu: true, }, }, diff --git a/frontend/src/views/project-management/taskCenter/component/apiCase.vue b/frontend/src/views/project-management/taskCenter/component/apiCase.vue index e57f7c98e4..33724f4329 100644 --- a/frontend/src/views/project-management/taskCenter/component/apiCase.vue +++ b/frontend/src/views/project-management/taskCenter/component/apiCase.vue @@ -127,10 +127,10 @@ const permissionsMap = { organization: { - stop: ['ORGANIZATION_TASK_CENTER::READ+STOP'], + stop: ['ORGANIZATION_TASK_CENTER:READ+STOP'], }, system: { - stop: ['ORGANIZATION_TASK_CENTER::READ+STOP'], + stop: ['ORGANIZATION_TASK_CENTER:READ+STOP'], }, project: { stop: ['PROJECT_API_REPORT:READ'],