diff --git a/src/views/trials/trials-list/index.vue b/src/views/trials/trials-list/index.vue index 24d79f13..539b91a7 100644 --- a/src/views/trials/trials-list/index.vue +++ b/src/views/trials/trials-list/index.vue @@ -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)" />