fix(测试跟踪): 测试计划关联用例切换项目关闭导致再次打开数据不正确问题

--bug=1026168 --user=王旭 【测试跟踪】功能用例-关联场景/UI用例-列表数据显示不符 https://www.tapd.cn/55049933/s/1392044
This commit is contained in:
WangXu10 2023-07-12 17:22:13 +08:00 committed by 刘瑞斌
parent 9c47ecac69
commit 0a916886be
3 changed files with 12 additions and 13 deletions

View File

@ -94,7 +94,6 @@ export default {
},
created() {
this.condition.versionId = this.currentVersion;
this.initTable();
},
watch: {
selectNodeIds() {

View File

@ -76,13 +76,13 @@ export default {
},
methods: {
open() {
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.search();
}
this.$refs.baseRelevance.open();
this.$nextTick(() => {
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.clear();
this.$refs.apiScenarioList.search();
}
});
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.clear();
}
},
setProject(projectId) {
this.projectId = projectId;

View File

@ -77,13 +77,13 @@ export default {
},
methods: {
open() {
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.search();
}
this.$refs.baseRelevance.open();
this.$nextTick(() => {
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.clear();
this.$refs.apiScenarioList.search();
}
});
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.clear();
}
},
setProject(projectId) {
this.projectId = projectId;