refactor(系统设置): 优化项目权限位的值

This commit is contained in:
wxg0103 2024-02-20 19:40:59 +08:00 committed by Craftsman
parent 0e9d8f9a98
commit c65c624000
2 changed files with 4 additions and 4 deletions

View File

@ -36,7 +36,7 @@
</template> </template>
<template #operation="{ record }"> <template #operation="{ record }">
<MsRemoveButton <MsRemoveButton
v-permission="['ORGANIZATION_PROJECT:READ+DELETE+MEMBER']" v-permission="['ORGANIZATION_PROJECT:READ+DELETE_MEMBER']"
:title="t('system.project.removeName', { name: record.name })" :title="t('system.project.removeName', { name: record.name })"
:sub-title-tip="t('system.project.removeTip')" :sub-title-tip="t('system.project.removeTip')"
@ok="handleRemove(record)" @ok="handleRemove(record)"
@ -87,7 +87,7 @@
const keyword = ref(''); const keyword = ref('');
const hasOperationPermission = computed(() => hasAnyPermission(['ORGANIZATION_PROJECT:READ+DELETE+MEMBER'])); const hasOperationPermission = computed(() => hasAnyPermission(['ORGANIZATION_PROJECT:READ+DELETE_MEMBER']));
const projectColumn: MsTableColumn = [ const projectColumn: MsTableColumn = [
{ {

View File

@ -595,7 +595,7 @@
'SYSTEM_USER:READ+UPDATE', 'SYSTEM_USER:READ+UPDATE',
'SYSTEM_USER_ROLE:READ', 'SYSTEM_USER_ROLE:READ',
'SYSTEM_ORGANIZATION_PROJECT:READ', 'SYSTEM_ORGANIZATION_PROJECT:READ',
'SYSTEM_ORGANIZATION_PROJECT_MEMBER:ADD', 'SYSTEM_ORGANIZATION_PROJECT:READ+ADD_MEMBER',
], ],
}, },
{ {
@ -610,7 +610,7 @@
'SYSTEM_USER:READ+UPDATE', 'SYSTEM_USER:READ+UPDATE',
'SYSTEM_USER_ROLE:READ', 'SYSTEM_USER_ROLE:READ',
'SYSTEM_ORGANIZATION_PROJECT:READ', 'SYSTEM_ORGANIZATION_PROJECT:READ',
'SYSTEM_ORGANIZATION_PROJECT_MEMBER:ADD', 'SYSTEM_ORGANIZATION_PROJECT:READ+ADD_MEMBER',
], ],
}, },
], ],