fix(测试跟踪): 处理关联用例模块树接口多次调用,响应时间不同,导致数据显示异常问题

--bug=1026168 --user=王旭 【测试跟踪】功能用例-关联场景/UI用例-列表数据显示不符 https://www.tapd.cn/55049933/s/1393238
This commit is contained in:
WangXu10 2023-07-14 14:01:28 +08:00 committed by fit2-zhao
parent 842de54408
commit d326153ea1
4 changed files with 12 additions and 3 deletions

View File

@ -2,6 +2,7 @@
<test-case-relevance-base
@setProject="setProject"
@save="saveCaseRelevance"
@close="close"
:plan-id="planId"
:is-saving="isSaving"
ref="baseRelevance"
@ -132,6 +133,9 @@ export default {
this.getVersionOptions();
},
methods: {
close() {
this.projectId = "";
},
open() {
this.init();
this.$refs.baseRelevance.open();

View File

@ -2,6 +2,7 @@
<test-case-relevance-base
@setProject="setProject"
@save="saveCaseRelevance"
@close="close"
:plan-id="planId"
ref="baseRelevance"
:is-saving="isSaving"
@ -75,6 +76,9 @@ export default {
},
},
methods: {
close() {
this.projectId = "";
},
open() {
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.search();

View File

@ -109,9 +109,6 @@ export default {
}
}
},
mounted() {
this.initProtocol();
},
computed: {
isPlanModel() {
return !!this.planId;

View File

@ -2,6 +2,7 @@
<test-case-relevance-base
@setProject="setProject"
@save="saveCaseRelevance"
@close="close"
:plan-id="planId"
:is-saving="isSaving"
ref="baseRelevance"
@ -76,6 +77,9 @@ export default {
},
},
methods: {
close() {
this.projectId = "";
},
open() {
if (this.$refs.apiScenarioList) {
this.$refs.apiScenarioList.search();