diff --git a/test-track/frontend/src/business/plan/view/comonents/api/TestCaseApiRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/api/TestCaseApiRelevance.vue index 1c2e7431b2..9e3500af2a 100644 --- a/test-track/frontend/src/business/plan/view/comonents/api/TestCaseApiRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/api/TestCaseApiRelevance.vue @@ -256,10 +256,9 @@ export default { param.environmentId = environmentId; relevanceList(param) .then(() => { - this.$success(this.$t("commons.save_success")); + this.$success(this.$t("plan.relevance_case_success")); this.$emit("refresh"); this.refresh(); - this.$refs.baseRelevance.close(); this.isSaving = false; }) .catch(() => { diff --git a/test-track/frontend/src/business/plan/view/comonents/api/TestCaseScenarioRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/api/TestCaseScenarioRelevance.vue index 41802ce764..76e0fc494c 100644 --- a/test-track/frontend/src/business/plan/view/comonents/api/TestCaseScenarioRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/api/TestCaseScenarioRelevance.vue @@ -172,11 +172,10 @@ export default { scenarioRelevance(param) .then(() => { this.isSaving = false; - this.$success(this.$t("commons.save_success")); + this.$success(this.$t("plan.relevance_case_success")); this.$emit("refresh"); this.refresh(); this.autoCheckStatus(); - this.$refs.baseRelevance.close(); }) .catch(() => { this.isSaving = false; diff --git a/test-track/frontend/src/business/plan/view/comonents/functional/TestPlanFunctionalRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/functional/TestPlanFunctionalRelevance.vue index 37c39602a8..19064904d0 100644 --- a/test-track/frontend/src/business/plan/view/comonents/functional/TestPlanFunctionalRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/functional/TestPlanFunctionalRelevance.vue @@ -62,8 +62,7 @@ export default { .then(() => { vueObj.page.loading = false; vueObj.isSaving = false; - this.$success(this.$t('commons.save_success')); - vueObj.$refs.baseRelevance.close(); + this.$success(this.$t("plan.relevance_case_success")); vueObj.setSelectCounts(0); this.$emit('refresh'); }).catch((error) => { diff --git a/test-track/frontend/src/business/plan/view/comonents/load/TestCaseLoadRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/load/TestCaseLoadRelevance.vue index aa2d9fde02..6bd64129a0 100644 --- a/test-track/frontend/src/business/plan/view/comonents/load/TestCaseLoadRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/load/TestCaseLoadRelevance.vue @@ -208,9 +208,9 @@ export default { testPlanLoadRelevance(condition) .then(() => { this.loading = false; - this.$success(this.$t('commons.save_success')); - this.$refs.baseRelevance.close(); + this.$success(this.$t("plan.relevance_case_success")); this.$emit('refresh'); + this.search(); }) .catch((e) => { }); diff --git a/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue index c370112366..29b654546c 100644 --- a/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue @@ -182,11 +182,10 @@ export default { .then(() => { this.loading = false; this.isSaving = false; - this.$success(this.$t("commons.save_success")); + this.$success(this.$t("plan.relevance_case_success")); this.$emit("refresh"); this.refresh(); this.autoCheckStatus(); - this.$refs.baseRelevance.close(); }) .catch(() => { this.isSaving = false; diff --git a/test-track/frontend/src/i18n/lang/en-US.js b/test-track/frontend/src/i18n/lang/en-US.js index 5cdbc35dc9..f4bdd7d54e 100644 --- a/test-track/frontend/src/i18n/lang/en-US.js +++ b/test-track/frontend/src/i18n/lang/en-US.js @@ -64,6 +64,7 @@ const message = { }, plan: { batch_delete_tip: "Do you want to continue deleting the test plan?", + relevance_case_success: "Relevance success" }, review: { result_distribution: "Result Distribution", diff --git a/test-track/frontend/src/i18n/lang/zh-CN.js b/test-track/frontend/src/i18n/lang/zh-CN.js index 05901cf589..5f117895e6 100644 --- a/test-track/frontend/src/i18n/lang/zh-CN.js +++ b/test-track/frontend/src/i18n/lang/zh-CN.js @@ -64,6 +64,7 @@ const message = { }, plan: { batch_delete_tip: "批量删除测试计划,是否继续?", + relevance_case_success: "已添加至测试计划" }, review: { result_distribution: "结果分布", diff --git a/test-track/frontend/src/i18n/lang/zh-TW.js b/test-track/frontend/src/i18n/lang/zh-TW.js index 267a85dd1c..c5f6a0b6dd 100644 --- a/test-track/frontend/src/i18n/lang/zh-TW.js +++ b/test-track/frontend/src/i18n/lang/zh-TW.js @@ -64,6 +64,7 @@ const message = { }, plan: { batch_delete_tip: "批量刪除測試計劃,是否繼續?", + relevance_case_success: "已添加至測試計劃" }, review: { result_distribution: "結果分布",