From 227ffbf6fd342b60be441796e92ea05a668ba168 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Wed, 12 May 2021 11:26:46 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=8F=90=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../track/case/components/TestCaseEditOtherInfo.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue b/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue index 637c55ca30..b09bf6d8b3 100644 --- a/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue +++ b/frontend/src/business/components/track/case/components/TestCaseEditOtherInfo.vue @@ -49,7 +49,7 @@ @@ -91,7 +91,7 @@ import MsRichText from "@/business/components/track/case/components/MsRichText"; import {TEST} from "@/business/components/api/definition/model/JsonData"; import TestCaseAttachment from "@/business/components/track/case/components/TestCaseAttachment"; import TestCaseIssueRelate from "@/business/components/track/case/components/TestCaseIssueRelate"; -import {enableModules} from "@/common/js/utils"; +import {checkoutTestManagerOrTestUser, enableModules} from "@/common/js/utils"; import FormRichTextItem from "@/business/components/track/case/components/FormRichTextItem"; export default { @@ -114,6 +114,14 @@ export default { }, }; }, + computed: { + isTesterPermission() { + if (!checkoutTestManagerOrTestUser()) { + return false; + } + return true; + } + }, watch: { tabActiveName() { if (this.tabActiveName === 'relateTest') {