refactor(测试跟踪): 测试计划关联用例确认弹窗优化

--bug=1027465 --user=宋昌昌 【测试跟踪】github#25287,测试计划,关联某一模块下面的用例,点击【确定】会直接把关联用例页面给关闭了,测试跟踪重度用户反馈,能不能只关联不关闭页面。 https://www.tapd.cn/55049933/s/1393397
This commit is contained in:
song-cc-rock 2023-07-14 11:14:15 +08:00 committed by fit2-zhao
parent 3953193044
commit 8c9372f938
8 changed files with 9 additions and 10 deletions

View File

@ -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(() => {

View File

@ -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;

View File

@ -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) => {

View File

@ -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) => {
});

View File

@ -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;

View File

@ -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",

View File

@ -64,6 +64,7 @@ const message = {
},
plan: {
batch_delete_tip: "批量删除测试计划,是否继续?",
relevance_case_success: "已添加至测试计划"
},
review: {
result_distribution: "结果分布",

View File

@ -64,6 +64,7 @@ const message = {
},
plan: {
batch_delete_tip: "批量刪除測試計劃,是否繼續?",
relevance_case_success: "已添加至測試計劃"
},
review: {
result_distribution: "結果分布",