diff --git a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java index fb7e234dda..c1b3aaea8d 100644 --- a/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java +++ b/backend/src/main/java/io/metersphere/api/service/ApiScenarioReportStructureService.java @@ -564,7 +564,8 @@ public class ApiScenarioReportStructureService { private ApiScenarioReportDTO getReport(String reportId, boolean selectContent) { ApiScenarioReport mainReport = apiScenarioReportMapper.selectByPrimaryKey(reportId); List reportResults = null; - if (selectContent) { + if (selectContent || mainReport.getReportType().startsWith(SystemConstants.TestTypeEnum.UI.name())) { + // UI 报告不执行懒加载 ApiScenarioReportResultExample example = new ApiScenarioReportResultExample(); example.createCriteria().andReportIdEqualTo(reportId); reportResults = reportResultMapper.selectByExampleWithBLOBs(example); diff --git a/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue b/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue index 863df198f5..4b47e29af3 100644 --- a/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/SysnApiReportDetail.vue @@ -337,6 +337,9 @@ export default { }, getReport() { let url = "/api/scenario/report/get/" + this.reportId; + if (this.report.reportType === "UI_INDEPENDENT") { + url += "?selectReportContent=true"; + } this.$get(url, response => { this.report = response.data || {}; if (response.data) { diff --git a/frontend/src/business/components/api/automation/report/components/ScenarioResult.vue b/frontend/src/business/components/api/automation/report/components/ScenarioResult.vue index 2a594cb5d8..88b08a1efd 100644 --- a/frontend/src/business/components/api/automation/report/components/ScenarioResult.vue +++ b/frontend/src/business/components/api/automation/report/components/ScenarioResult.vue @@ -20,6 +20,7 @@ @@ -59,6 +60,7 @@ export default { props: { scenario: Object, node: Object, + treeNode: Object, console: String, isActive: Boolean, isShare:Boolean, diff --git a/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue b/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue index f67aeecfdd..9d074fd4ae 100644 --- a/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue +++ b/frontend/src/business/components/api/automation/report/components/ScenarioResults.vue @@ -15,7 +15,7 @@ highlight-current class="ms-tree ms-report-tree" ref="resultsTree"> -