项目文档按钮权限更改

uat
wangxiaoshuang 2025-03-12 11:22:20 +08:00
parent b93ab130fb
commit d616512a72
1 changed files with 12 additions and 1 deletions

View File

@ -620,7 +620,18 @@
]"
circle
icon="el-icon-folder-opened"
:disabled="scope.row.IsDeleted"
:disabled="
(scope.row.TrialStatusStr === 'Initializing' &&
!hasPermi(['role:pm'])) ||
scope.row.IsDeleted ||
((scope.row.TrialStatusStr === 'Completed' ||
scope.row.TrialStatusStr === 'Stopped') &&
!(
hasPermi(['role:qa']) ||
hasPermi(['role:ea']) ||
hasPermi(['role:pm'])
))
"
:title="$t('trials:trials-list:action:trialDocument')"
@click.stop="toTrialDocument(scope.row)"
/>