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) {
let isTestCaseMinderChanged = vueObj.$store.state.isTestCaseMinderChanged;
if (vueObj.activeDom !== 'left' && activeDom === 'left' && isTestCaseMinderChanged) {
if (vueObj.planStatus !=='Archived') {
vueObj.$refs.isChangeConfirm.open();
vueObj.tmpActiveDom = activeDom;
} else {
vueObj.activeDom = activeDom;
}
return;
}
vueObj.activeDom = activeDom;

View File

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