fix(接口测试): 修复用例集成报告导出不全问题
--bug=1010401 --user=赵勇 case集合报告 导出不现显示 case https://www.tapd.cn/55049933/s/1105837
This commit is contained in:
parent
5f3b2a9c11
commit
5fde8c307a
|
@ -462,6 +462,11 @@ export default {
|
||||||
},
|
},
|
||||||
handleExport() {
|
handleExport() {
|
||||||
if (this.report.reportVersion && this.report.reportVersion > 1) {
|
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 => {
|
this.fullTreeNodes.forEach(item => {
|
||||||
if (item.type === "scenario") {
|
if (item.type === "scenario") {
|
||||||
let scenario = {name: item.label, requestResults: []};
|
let scenario = {name: item.label, requestResults: []};
|
||||||
|
@ -474,6 +479,7 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.reportExportVisible = true;
|
this.reportExportVisible = true;
|
||||||
let reset = this.exportReportReset;
|
let reset = this.exportReportReset;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
|
|
Loading…
Reference in New Issue