fix(用户组与权限): 工作空间菜单权限问题

--bug=1007435 --user=lyh 【系统设置】用户组与权限有项目管理和环境设置的权限,但是用户看不到这两个菜单
https://www.tapd.cn/55049933/s/1058687
This commit is contained in:
shiziyuan9527 2021-10-25 17:22:08 +08:00 committed by shiziyuan9527
parent eaf57e5f54
commit 897efb92cd
1 changed files with 5 additions and 2 deletions

View File

@ -12,7 +12,7 @@
</el-submenu>
<el-submenu index="3"
v-permission="['WORKSPACE_USER:READ']">
v-permission="workspacePermission">
<template v-slot:title>
<font-awesome-icon class="icon workspace" :icon="['far', 'list-alt']" size="lg"/>
<span>{{ $t('commons.workspace') }}</span>
@ -79,7 +79,10 @@ export default {
'SYSTEM_USER:READ','SYSTEM_ORGANIZATION:READ', 'SYSTEM_GROUP:READ',
'ORGANIZATION_GROUP:READ', 'SYSTEM_WORKSPACE:READ','SYSTEM_TEST_POOL:READ',
'SYSTEM_SETTING:READ','SYSTEM_QUOTA:READ','SYSTEM_AUTH:READ'
]
],
workspacePermission: ['WORKSPACE_USER:READ','WORKSPACE_SERVICE:READ','WORKSPACE_MESSAGE:READ',
'WORKSPACE_PROJECT_MANAGER:READ', 'WORKSPACE_PROJECT_ENVIRONMENT:READ',
'WORKSPACE_OPERATING_LOG:READ', 'WORKSPACE_TEMPLATE:READ']
};
},
methods: {