fix(测试跟踪): 测试计划关联功能用例,多次打开后模块显示为空

--bug=1025719 --user=陈建星 【测试跟踪】测试计划-关联功能用例-左侧目录栏显示暂无数据 https://www.tapd.cn/55049933/s/1365757
This commit is contained in:
chenjianxing 2023-04-23 15:59:12 +08:00 committed by jianxing
parent cfd619eac2
commit bf1134d207
3 changed files with 10 additions and 1 deletions

View File

@ -60,6 +60,7 @@
},
close() {
this.dialogVisible = false;
this.$emit("close");
},
}
}

View File

@ -3,6 +3,7 @@
:width="width"
:title="dialogTitle"
ref="relevanceDialog"
@close="handleCloseEven"
:full-screen="isFullScreen"
>
<!-- todo -->
@ -155,7 +156,9 @@ export default {
close() {
this.$refs.relevanceDialog.close();
},
handleCloseEven() {
this.$emit("close");
},
open() {
this.workspaceId = getCurrentWorkspaceId();
this.getProject();

View File

@ -4,6 +4,7 @@
@setProject="setProject"
@save="saveCaseRelevance"
:enable-full-screen="false"
@close="close"
:flag="isTestPlan"
:multiple-project="multipleProject"
:is-saving="isSaving"
@ -238,6 +239,10 @@ export default {
this.$refs.table.clear();
this.$refs.table.clearSort();
}
if (this.projectId) {
this.getProjectNode(this.projectId);
this.getTestCases();
}
},
setProject(projectId) {
this.projectId = projectId;