fix(测试跟踪): 已归档计划脑图无弹窗

--user=郭雨琦
--bug=1013105
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001013105
This commit is contained in:
guoyuqi 2022-05-12 18:48:51 +08:00 committed by f2c-ci-robot[bot]
parent fb4c1c10e4
commit a1be30aef8
2 changed files with 13 additions and 5 deletions

View File

@ -563,8 +563,12 @@ export function handleMinderIssueDelete(commandName, isPlan) {
export function openMinderConfirm(vueObj, activeDom) { export function openMinderConfirm(vueObj, activeDom) {
let isTestCaseMinderChanged = vueObj.$store.state.isTestCaseMinderChanged; let isTestCaseMinderChanged = vueObj.$store.state.isTestCaseMinderChanged;
if (vueObj.activeDom !== 'left' && activeDom === 'left' && isTestCaseMinderChanged) { if (vueObj.activeDom !== 'left' && activeDom === 'left' && isTestCaseMinderChanged) {
vueObj.$refs.isChangeConfirm.open(); if (vueObj.planStatus !=='Archived') {
vueObj.tmpActiveDom = activeDom; vueObj.$refs.isChangeConfirm.open();
vueObj.tmpActiveDom = activeDom;
} else {
vueObj.activeDom = activeDom;
}
return; return;
} }
vueObj.activeDom = activeDom; vueObj.activeDom = activeDom;

View File

@ -177,9 +177,13 @@ export default {
handleSelect(key) { handleSelect(key) {
let isTestCaseMinderChanged = this.$store.state.isTestCaseMinderChanged; let isTestCaseMinderChanged = this.$store.state.isTestCaseMinderChanged;
if (key !== 'functional' && isTestCaseMinderChanged) { if (key !== 'functional' && isTestCaseMinderChanged) {
this.$refs.isChangeConfirm.open(); if (this.currentPlan.status === 'Archived') {
this.tmpActiveIndex = key; this.activeIndex = key;
return; } else {
this.$refs.isChangeConfirm.open();
this.tmpActiveIndex = key;
return;
}
} }
this.activeIndex = key; this.activeIndex = key;
}, },