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,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'caseManagement.featureCase.tableColumnCreateUser',
|
title: 'caseManagement.featureCase.tableColumnCreateTime',
|
||||||
slotName: 'createTime',
|
slotName: 'createTime',
|
||||||
dataIndex: 'createTime',
|
dataIndex: 'createTime',
|
||||||
showInTable: true,
|
showInTable: true,
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<div>
|
<div>
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<div v-if="showType === 'link'" class="flex">
|
<div v-if="showType === 'link'" class="flex">
|
||||||
<a-tooltip :disabled="linkPropsRes.data.length ? true : false">
|
<a-tooltip :disabled="!!linkPropsRes.data.length">
|
||||||
<template #content>
|
<template #content>
|
||||||
{{ t('caseManagement.featureCase.noAssociatedDefect') }}
|
{{ t('caseManagement.featureCase.noAssociatedDefect') }}
|
||||||
<span v-permission="['PROJECT_BUG:READ+ADD']" class="text-[rgb(var(--primary-4))]" @click="createDefect">{{
|
<span v-permission="['PROJECT_BUG:READ+ADD']" class="text-[rgb(var(--primary-4))]" @click="createDefect">{{
|
||||||
|
@ -11,7 +11,7 @@
|
||||||
</template>
|
</template>
|
||||||
<a-button
|
<a-button
|
||||||
v-permission="['FUNCTIONAL_CASE:READ+UPDATE']"
|
v-permission="['FUNCTIONAL_CASE:READ+UPDATE']"
|
||||||
:disabled="linkPropsRes.data.length ? false : true"
|
:disabled="!linkPropsRes.data.length"
|
||||||
class="mr-3"
|
class="mr-3"
|
||||||
type="primary"
|
type="primary"
|
||||||
@click="linkDefect"
|
@click="linkDefect"
|
||||||
|
@ -417,12 +417,18 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
async function initFilterOptions() {
|
async function initFilterOptions() {
|
||||||
|
if (hasAnyPermission(['PROJECT_BUG:READ'])) {
|
||||||
const res = await getCustomOptionHeader(appStore.currentProjectId);
|
const res = await getCustomOptionHeader(appStore.currentProjectId);
|
||||||
handleUserFilterOptions.value = res.handleUserOption;
|
handleUserFilterOptions.value = res.handleUserOption;
|
||||||
statusFilterOptions.value = res.statusOption;
|
statusFilterOptions.value = res.statusOption;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
async function getFetch() {
|
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') {
|
if (showType.value === 'link') {
|
||||||
setLinkListParams({ keyword: keyword.value, projectId: appStore.currentProjectId, caseId: props.caseId });
|
setLinkListParams({ keyword: keyword.value, projectId: appStore.currentProjectId, caseId: props.caseId });
|
||||||
await loadLinkList();
|
await loadLinkList();
|
||||||
|
|
Loading…
Reference in New Issue