fix(测试跟踪): 测试计划查看报告提示403

--bug=1013665 --user=李玉号 【测试跟踪】github#14117
测试跟踪里的测试计划,在已授权账号里点击报告,提示403 Forbidden无法查看
https://www.tapd.cn/55049933/s/1170100

Closes #14117
This commit is contained in:
shiziyuan9527 2022-05-31 16:00:59 +08:00 committed by shiziyuan9527
parent 8ec6e8cf43
commit 66687a1a0d
1 changed files with 4 additions and 2 deletions

View File

@ -10,7 +10,7 @@
</template>
<functional-cases :is-db="isDb" :share-id="shareId" :is-share="isShare" :is-template="isTemplate" :report="report" :plan-id="planId" @setSize="setFailureSize"/>
</el-tab-pane>
<el-tab-pane v-if="issueEnable" name="third">
<el-tab-pane v-if="issueEnable && hasPermission('PROJECT_TRACK_ISSUE:READ')" name="third">
<template v-slot:label>
<tab-pane-count :title="$t('test_track.report.issue_list')" :count="issueSize"/>
</template>
@ -36,6 +36,7 @@ import FunctionalIssueList
import TestPlanReportContainer
from "@/business/components/track/plan/view/comonents/report/detail/TestPlanReportContainer";
import TabPaneCount from "@/business/components/track/plan/view/comonents/report/detail/component/TabPaneCount";
import {hasPermission} from "@/common/js/utils";
export default {
name: "TestPlanFunctionalReport",
components: {
@ -109,7 +110,8 @@ export default {
this.allSize = size;
},
handleClick(tab, event) {
}
},
hasPermission,
}
}