fix(接口测试): 修复用例集成报告导出不全问题

--bug=1010401 --user=赵勇 case集合报告 导出不现显示 case https://www.tapd.cn/55049933/s/1105837
This commit is contained in:
fit2-zhao 2022-02-18 17:05:07 +08:00 committed by fit2-zhao
parent b484e56eb5
commit c94e889281
1 changed files with 16 additions and 10 deletions

View File

@ -462,6 +462,11 @@ export default {
},
handleExport() {
if (this.report.reportVersion && this.report.reportVersion > 1) {
if(this.report.reportType === 'API_INTEGRATED'){
let scenario = {name: "", requestResults: []};
this.content.scenarios = [scenario];
this.formatExportApi(this.fullTreeNodes, scenario);
}else {
this.fullTreeNodes.forEach(item => {
if (item.type === "scenario") {
let scenario = {name: item.label, requestResults: []};
@ -474,6 +479,7 @@ export default {
}
})
}
}
this.reportExportVisible = true;
let reset = this.exportReportReset;
this.$nextTick(() => {