From b52ef3e25d9fd5a40d31ee906f07af86960bfdf6 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 10 Dec 2021 14:52:27 +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=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=20top5=20errors=20=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1008531 --user=刘瑞斌 【github#6914】导出的性能测试报告pdf文档中没有CPU、内存、磁盘空间等数据显示,只有错误日志,功能实现不完整,请修改 https://www.tapd.cn/55049933/s/1079336 Closes #6914 --- .../report/PerformanceReportExport.vue | 8 + .../report/PerformanceReportView.vue | 2 +- .../report/components/ErrorLog.vue | 139 +++++++----------- 3 files changed, 65 insertions(+), 84 deletions(-) diff --git a/frontend/src/business/components/performance/report/PerformanceReportExport.vue b/frontend/src/business/components/performance/report/PerformanceReportExport.vue index a11299247d..97dd631ffc 100644 --- a/frontend/src/business/components/performance/report/PerformanceReportExport.vue +++ b/frontend/src/business/components/performance/report/PerformanceReportExport.vue @@ -24,6 +24,12 @@ + + + + @@ -36,11 +42,13 @@ import MsReportTestOverview from './components/TestOverview'; import MsReportTitle from "../../common/components/report/MsReportTitle"; import MsReportExportTemplate from "../../common/components/report/MsReportExportTemplate"; import MsReportTestDetails from "@/business/components/performance/report/components/TestDetails"; +import MonitorCard from "@/business/components/performance/report/components/MonitorCard"; export default { name: "MsPerformanceReportExport", components: { + MonitorCard, MsReportExportTemplate, MsReportTitle, MsReportErrorLog, diff --git a/frontend/src/business/components/performance/report/PerformanceReportView.vue b/frontend/src/business/components/performance/report/PerformanceReportView.vue index 05ebc88ac7..69be5a8980 100644 --- a/frontend/src/business/components/performance/report/PerformanceReportView.vue +++ b/frontend/src/business/components/performance/report/PerformanceReportView.vue @@ -333,7 +333,7 @@ export default { this.$nextTick(function () { setTimeout(() => { - let ids = ['testOverview', 'testDetails', 'requestStatistics', 'errorLog']; + let ids = ['testOverview', 'testDetails', 'requestStatistics', 'errorLog', 'monitorCard']; let promises = []; ids.forEach(id => { let promise = html2canvas(document.getElementById(id), {scale: 2}); diff --git a/frontend/src/business/components/performance/report/components/ErrorLog.vue b/frontend/src/business/components/performance/report/components/ErrorLog.vue index bdab8df34d..1366b371e4 100644 --- a/frontend/src/business/components/performance/report/components/ErrorLog.vue +++ b/frontend/src/business/components/performance/report/components/ErrorLog.vue @@ -14,16 +14,19 @@ sortable> @@ -38,21 +41,9 @@ style="width: 100%" show-summary > - - - - - - + + + #1 Error @@ -62,16 +53,9 @@ stripe style="width: 100%" > - - - - + + + #2 Error @@ -81,16 +65,9 @@ stripe style="width: 100%" > - - - - + + + #3 Error @@ -100,16 +77,9 @@ stripe style="width: 100%" > - - - - + + + #4 Error @@ -119,16 +89,9 @@ stripe style="width: 100%" > - - - - + + + #5 Error @@ -138,24 +101,19 @@ stripe style="width: 100%" > - - - - + + +