fix(用例管理): 修复用例详情权限限制问题
--bug=1037142 --user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001037142
This commit is contained in:
parent
58e2e87328
commit
a017474064
|
@ -131,7 +131,7 @@
|
|||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: 'caseManagement.featureCase.tableColumnCreateUser',
|
||||
title: 'caseManagement.featureCase.tableColumnCreateTime',
|
||||
slotName: 'createTime',
|
||||
dataIndex: 'createTime',
|
||||
showInTable: true,
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<div>
|
||||
<div class="flex items-center justify-between">
|
||||
<div v-if="showType === 'link'" class="flex">
|
||||
<a-tooltip :disabled="linkPropsRes.data.length ? true : false">
|
||||
<a-tooltip :disabled="!!linkPropsRes.data.length">
|
||||
<template #content>
|
||||
{{ t('caseManagement.featureCase.noAssociatedDefect') }}
|
||||
<span v-permission="['PROJECT_BUG:READ+ADD']" class="text-[rgb(var(--primary-4))]" @click="createDefect">{{
|
||||
|
@ -11,7 +11,7 @@
|
|||
</template>
|
||||
<a-button
|
||||
v-permission="['FUNCTIONAL_CASE:READ+UPDATE']"
|
||||
:disabled="linkPropsRes.data.length ? false : true"
|
||||
:disabled="!linkPropsRes.data.length"
|
||||
class="mr-3"
|
||||
type="primary"
|
||||
@click="linkDefect"
|
||||
|
@ -417,12 +417,18 @@
|
|||
}
|
||||
|
||||
async function initFilterOptions() {
|
||||
const res = await getCustomOptionHeader(appStore.currentProjectId);
|
||||
handleUserFilterOptions.value = res.handleUserOption;
|
||||
statusFilterOptions.value = res.statusOption;
|
||||
if (hasAnyPermission(['PROJECT_BUG:READ'])) {
|
||||
const res = await getCustomOptionHeader(appStore.currentProjectId);
|
||||
handleUserFilterOptions.value = res.handleUserOption;
|
||||
statusFilterOptions.value = res.statusOption;
|
||||
}
|
||||
}
|
||||
|
||||
async function getFetch() {
|
||||
if (!hasAnyPermission(['FUNCTIONAL_CASE:READ', 'FUNCTIONAL_CASE:READ+UPDATE', 'FUNCTIONAL_CASE:READ+DELETE'])) {
|
||||
Message.error(t('common.noPermission'));
|
||||
return;
|
||||
}
|
||||
if (showType.value === 'link') {
|
||||
setLinkListParams({ keyword: keyword.value, projectId: appStore.currentProjectId, caseId: props.caseId });
|
||||
await loadLinkList();
|
||||
|
|
Loading…
Reference in New Issue