fix(项目设置): 测试计划关联测试用例不勾选提示问题

--bug=1018453 --user=宋昌昌 【测试跟踪】测试计划-关联用例-不勾选用例保存-未提示 https://www.tapd.cn/55049933/s/1269940
This commit is contained in:
song-cc-rock 2022-10-20 17:09:22 +08:00 committed by jianxing
parent 70644744a4
commit 2c58d642c0
4 changed files with 16 additions and 0 deletions

View File

@ -214,6 +214,10 @@ export default {
return;
}
}
if (selectIds.length < 1) {
this.$warning(this.$t('test_track.plan_view.please_choose_test_case'));
return;
}
param.planId = this.planId;
param.selectIds = selectIds;
param.environmentId = environmentId;

View File

@ -137,6 +137,10 @@ export default {
let map = this.$refs.apiScenarioList.map;
let envGroupId = this.$refs.apiScenarioList.envGroupId;
if (selectRows.size < 1) {
this.$warning(this.$t('test_track.plan_view.please_choose_test_case'));
return;
}
selectRows.forEach(row => {
selectIds.push(row.id);
})

View File

@ -194,6 +194,10 @@ export default {
},
saveCaseRelevance() {
let selectRows = this.$refs.table.selectRows;
if (selectRows.size < 1) {
this.$warning(this.$t('test_track.plan_view.please_choose_test_case'));
return;
}
let param = buildBatchParam(this, undefined, this.projectId);
param.ids = Array.from(selectRows).map(row => row.id);
if (this.planId) {

View File

@ -151,6 +151,10 @@ export default {
selectRows.forEach(row => {
selectIds.push(row.id);
})
if (selectIds.length < 1) {
this.$warning(this.$t('test_track.plan_view.please_choose_test_case'));
return;
}
let param = {};
param.planId = this.planId;