fix(接口测试): 修复接口case中选择批量串行并行生成集合报告时未填写报告名称生成报告为独立报告的缺陷

--bug=1010864 --user=王孝刚 【接口测试】接口case-批量串行/并行-集合报告-未填写报告名称-生成报告为独立报告
https://www.tapd.cn/55049933/s/1114429
This commit is contained in:
wxg0103 2022-03-07 15:19:01 +08:00 committed by 刘瑞斌
parent 332256fc63
commit 57d9536ab1
2 changed files with 8 additions and 1 deletions

View File

@ -154,7 +154,7 @@ export default {
})
},
handleRunBatch() {
if (this.runConfig.mode === 'serial' && this.runConfig.reportType === 'setReport' && this.runConfig.reportName.trim() === "") {
if ((this.runConfig.mode === 'serial' || this.runConfig.mode === 'parallel') && this.runConfig.reportType === 'setReport' && this.runConfig.reportName.trim() === "") {
this.$warning(this.$t('commons.input_name'));
return;
}

View File

@ -92,6 +92,7 @@ export default {
runModeVisible: false,
resourcePools: [],
runConfig: {
reportName: "",
mode: "serial",
reportType: "iddReport",
onSampleError: false,
@ -117,12 +118,14 @@ export default {
this.runConfig.onSampleError = false;
this.runConfig.runWithinResourcePool = false;
this.runConfig.resourcePoolId = null;
this.runConfig.reportName = "";
},
close() {
this.runConfig = {
mode: "serial",
reportType: "iddReport",
onSampleError: false,
reportName: "",
runWithinResourcePool: false,
resourcePoolId: null,
envMap: new Map(),
@ -133,6 +136,10 @@ export default {
this.$emit('close');
},
handleRunBatch() {
if ((this.runConfig.mode === 'serial' || this.runConfig.mode === 'parallel') && this.runConfig.reportType === 'setReport' && this.runConfig.reportName.trim() === "") {
this.$warning(this.$t('commons.input_name'));
return;
}
this.$emit("handleRunBatch", this.runConfig);
this.close();
},