From 4cb5139fdc08ee57fcf7144104b422651bd4b8d1 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Wed, 11 Oct 2023 17:05:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E4=BC=81=E4=B8=9A=E7=89=88=E5=AE=9E=E6=97=B6=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E4=B8=8D=E6=98=BE=E7=A4=BA=E6=96=B0=E7=9A=84=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E8=AE=B0=E5=BD=95=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/service/PerformanceReportService.java | 1 + .../frontend/src/business/report/PerformanceReportView.vue | 2 +- .../business/report/components/samples/ErrorSamplesTable.vue | 3 +-- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java index 8369fd49af..b51d5572f7 100644 --- a/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java +++ b/performance-test/backend/src/main/java/io/metersphere/service/PerformanceReportService.java @@ -272,6 +272,7 @@ public class PerformanceReportService { if (StringUtils.isEmpty(content)) { return null; } + return JSON.parseObject(content, SamplesRecord.class); } diff --git a/performance-test/frontend/src/business/report/PerformanceReportView.vue b/performance-test/frontend/src/business/report/PerformanceReportView.vue index 7a4f674ee7..f4419775d4 100644 --- a/performance-test/frontend/src/business/report/PerformanceReportView.vue +++ b/performance-test/frontend/src/business/report/PerformanceReportView.vue @@ -307,7 +307,6 @@ export default { checkReportStatus(status) { switch (status) { case 'Error': - // this.$warning(this.$t('report.generation_error')); this.active = '4'; break; case 'Starting': @@ -368,6 +367,7 @@ export default { this.$error(e.data); return; } + this.checkSampleResults(this.report.id); this.$set(this.report, "status", 'Running'); this.status = 'Running'; this.initReportTimeInfo(); diff --git a/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue b/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue index a488173079..2d5a7abd30 100644 --- a/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue +++ b/performance-test/frontend/src/business/report/components/samples/ErrorSamplesTable.vue @@ -17,7 +17,7 @@ min-width="180"> @@ -137,7 +137,6 @@ export default { }, openRecord(row) { let drawerSamples = this.errorSamples.samples[row.name][row.code]; - console.info(drawerSamples); this.$refs.sampleDrawer.openRecord(drawerSamples); }, },