From a1be30aef89bbf4c7f9d55c4e0d447a198303d51 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 12 May 2022 18:48:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E5=B7=B2=E5=BD=92=E6=A1=A3=E8=AE=A1=E5=88=92=E8=84=91=E5=9B=BE?= =?UTF-8?q?=E6=97=A0=E5=BC=B9=E7=AA=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 --bug=1013105 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013105 --- .../components/track/common/minder/minderUtils.js | 8 ++++++-- .../components/track/plan/view/TestPlanView.vue | 10 +++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/frontend/src/business/components/track/common/minder/minderUtils.js b/frontend/src/business/components/track/common/minder/minderUtils.js index 0850a5f6b3..7238a60907 100644 --- a/frontend/src/business/components/track/common/minder/minderUtils.js +++ b/frontend/src/business/components/track/common/minder/minderUtils.js @@ -563,8 +563,12 @@ export function handleMinderIssueDelete(commandName, isPlan) { export function openMinderConfirm(vueObj, activeDom) { let isTestCaseMinderChanged = vueObj.$store.state.isTestCaseMinderChanged; if (vueObj.activeDom !== 'left' && activeDom === 'left' && isTestCaseMinderChanged) { - vueObj.$refs.isChangeConfirm.open(); - vueObj.tmpActiveDom = activeDom; + if (vueObj.planStatus !=='Archived') { + vueObj.$refs.isChangeConfirm.open(); + vueObj.tmpActiveDom = activeDom; + } else { + vueObj.activeDom = activeDom; + } return; } vueObj.activeDom = activeDom; diff --git a/frontend/src/business/components/track/plan/view/TestPlanView.vue b/frontend/src/business/components/track/plan/view/TestPlanView.vue index f383ebb02e..c50d0878c6 100644 --- a/frontend/src/business/components/track/plan/view/TestPlanView.vue +++ b/frontend/src/business/components/track/plan/view/TestPlanView.vue @@ -177,9 +177,13 @@ export default { handleSelect(key) { let isTestCaseMinderChanged = this.$store.state.isTestCaseMinderChanged; if (key !== 'functional' && isTestCaseMinderChanged) { - this.$refs.isChangeConfirm.open(); - this.tmpActiveIndex = key; - return; + if (this.currentPlan.status === 'Archived') { + this.activeIndex = key; + } else { + this.$refs.isChangeConfirm.open(); + this.tmpActiveIndex = key; + return; + } } this.activeIndex = key; },