fix(测试跟踪): 测试计划关联用例等待问题

--bug=1017666 --user=宋昌昌 【测试计划】关联4000条功能用例,页面卡住了 https://www.tapd.cn/55049933/s/1259695
This commit is contained in:
song-cc-rock 2022-10-12 16:00:43 +08:00 committed by jianxing
parent 912f95074b
commit d54a11912c
1 changed files with 3 additions and 2 deletions

View File

@ -54,12 +54,12 @@ export default {
}
},
saveCaseRelevance(param, vueObj) {
vueObj.loading = true;
vueObj.page.result.loading = true;
if (param.ids.length > 0) {
param.planId = this.planId;
testPlanRelevance(param)
.then(() => {
vueObj.loading = false;
vueObj.page.result.loading = false;
vueObj.isSaving = false;
this.$success(this.$t('commons.save_success'));
vueObj.$refs.baseRelevance.close();
@ -69,6 +69,7 @@ export default {
vueObj.isSaving = false;
});
} else {
vueObj.page.result.loading = false;
vueObj.isSaving = false;
this.$warning(this.$t('test_track.plan_view.please_choose_test_case'));
}