fix(项目管理): 修复没有恢复权限,但是可以撤销的缺陷

--bug=1035507 --user=王孝刚 【系统设置】系统 - 用户组 - 组织成员,没有项目恢复的权限,但是能点撤销删除
https://www.tapd.cn/55049933/s/1469739
This commit is contained in:
wxg0103 2024-03-05 20:04:39 +08:00 committed by 刘瑞斌
parent 2d8e29cc3b
commit 74dce4fc99
1 changed files with 6 additions and 1 deletions

View File

@ -25,7 +25,12 @@
<span class="text-[var(--color-text-1)]">{{
t('system.project.revokeDeleteToolTip', { count: record.remainDayCount })
}}</span>
<MsButton class="ml-[8px]" @click="handleRevokeDelete(record)">{{ t('common.revokeDelete') }}</MsButton>
<MsButton
v-if="hasAnyPermission(['ORGANIZATION_PROJECT:READ+RECOVER'])"
class="ml-[8px]"
@click="handleRevokeDelete(record)"
>{{ t('common.revokeDelete') }}</MsButton
>
</div>
</template>
<MsIcon v-if="record.deleted" type="icon-icon_alarm_clock" class="ml-[4px] text-[rgb(var(--danger-6))]" />