fix(用例管理): 修复用例管理关联用例的权限问题

--bug=1037142 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037142
This commit is contained in:
guoyuqi 2024-03-15 20:43:55 +08:00 committed by Craftsman
parent 501a7563ac
commit d01c89ddc8
1 changed files with 7 additions and 3 deletions

View File

@ -2,7 +2,9 @@
<div> <div>
<div class="flex items-center justify-between"> <div class="flex items-center justify-between">
<a-dropdown @select="handleSelect"> <a-dropdown @select="handleSelect">
<a-button type="primary"> {{ t('caseManagement.featureCase.linkCase') }} </a-button> <a-button v-permission="['FUNCTIONAL_CASE:READ+UPDATE']" type="primary">
{{ t('caseManagement.featureCase.linkCase') }}
</a-button>
<template #content> <template #content>
<a-doption v-for="item of caseTypeOptions" :key="item.value" :value="item.value">{{ <a-doption v-for="item of caseTypeOptions" :key="item.value" :value="item.value">{{
t(item.label) t(item.label)
@ -24,7 +26,9 @@
><span class="ml-1 text-[rgb(var(--primary-5))]">{{ t('caseManagement.featureCase.preview') }}</span> ><span class="ml-1 text-[rgb(var(--primary-5))]">{{ t('caseManagement.featureCase.preview') }}</span>
</template> </template>
<template #operation="{ record }"> <template #operation="{ record }">
<MsButton @click="cancelLink(record)">{{ t('caseManagement.featureCase.cancelLink') }}</MsButton> <MsButton v-permission="['FUNCTIONAL_CASE:READ+UPDATE']" @click="cancelLink(record)">{{
t('caseManagement.featureCase.cancelLink')
}}</MsButton>
</template> </template>
<template v-if="(keyword || '').trim() === ''" #empty> <template v-if="(keyword || '').trim() === ''" #empty>
<div class="flex w-full items-center justify-center"> <div class="flex w-full items-center justify-center">
@ -112,7 +116,7 @@
const columns: MsTableColumn = [ const columns: MsTableColumn = [
{ {
title: 'caseManagement.featureCase.tableColumnID', title: 'caseManagement.featureCase.tableColumnID',
dataIndex: 'id', dataIndex: 'num',
width: 200, width: 200,
showInTable: true, showInTable: true,
showTooltip: true, showTooltip: true,