fix(系统设置): 修复任务中心权限错误的缺陷

--bug=1035951 --user=王孝刚 【系统设置】组织-用户组-没有任务中心查询权限-还显示了任务中心tab
https://www.tapd.cn/55049933/s/1470137
This commit is contained in:
wxg0103 2024-03-06 14:12:10 +08:00 committed by 刘瑞斌
parent 3bf9ee9561
commit dc85c79e79
3 changed files with 6 additions and 6 deletions

View File

@ -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 ------*/
}

View File

@ -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,
},
},

View File

@ -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'],