From 58e4307461a09dce79d0a82df5ccd003fd2ed409 Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 2 Sep 2021 11:32:44 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=B5=8B=E8=AF=95=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E6=8A=A5=E5=91=8A=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/report/ApiReportDetail.vue | 6 +- .../automation/report/ApiReportViewHeader.vue | 5 +- .../report/MsReportExportTemplate.vue | 4 + .../report/detail/TestPlanApiReport.vue | 2 +- .../report/detail/TestPlanLoadReport.vue | 2 +- .../report/detail/TestPlanReportContent.vue | 4 + .../detail/component/ApiCaseFailureResult.vue | 85 ++++++++++--------- .../component/ApiScenarioFailureResult.vue | 26 ++++-- .../report/detail/component/LoadAllResult.vue | 30 +++---- .../detail/component/LoadFailureResult.vue | 83 +++++++++--------- frontend/src/common/js/utils.js | 42 +++++++++ 11 files changed, 175 insertions(+), 114 deletions(-) diff --git a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue index 6798e0068d..2b9ce97bac 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportDetail.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportDetail.vue @@ -3,7 +3,7 @@
- +
@@ -80,7 +80,8 @@ export default { isTemplate: Boolean, templateReport: Object, isShare: Boolean, - shareId: String + shareId: String, + isPlan: Boolean }, watch: { reportId() { @@ -422,5 +423,4 @@ export default { .scenario-result .icon.is-active { transform: rotate(90deg); } - diff --git a/frontend/src/business/components/api/automation/report/ApiReportViewHeader.vue b/frontend/src/business/components/api/automation/report/ApiReportViewHeader.vue index 6ba3b74fb8..2c3c129f67 100644 --- a/frontend/src/business/components/api/automation/report/ApiReportViewHeader.vue +++ b/frontend/src/business/components/api/automation/report/ApiReportViewHeader.vue @@ -21,7 +21,7 @@ {{$t('report.test_end_time')}}: {{ report.endTime | timestampFormatDate }} - + {{ $t('test_track.plan_view.export_report') }} @@ -41,7 +41,8 @@ export default { exportFlag: { type: Boolean, default: false, - } + }, + isPlan: Boolean }, computed: { path() { diff --git a/frontend/src/business/components/common/components/report/MsReportExportTemplate.vue b/frontend/src/business/components/common/components/report/MsReportExportTemplate.vue index e28cbae870..29c17c2f9d 100644 --- a/frontend/src/business/components/common/components/report/MsReportExportTemplate.vue +++ b/frontend/src/business/components/common/components/report/MsReportExportTemplate.vue @@ -28,4 +28,8 @@ background: white; } + @page { + margin-bottom: 30px; + margin-top: 30px; + } diff --git a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanApiReport.vue b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanApiReport.vue index 145ce1509c..e148d1f2eb 100644 --- a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanApiReport.vue +++ b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanApiReport.vue @@ -10,7 +10,7 @@ - + diff --git a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanLoadReport.vue b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanLoadReport.vue index 87a091a4aa..66c942e1e9 100644 --- a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanLoadReport.vue +++ b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanLoadReport.vue @@ -8,7 +8,7 @@ - diff --git a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportContent.vue b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportContent.vue index 6005a49ec6..0b35981865 100644 --- a/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportContent.vue +++ b/frontend/src/business/components/track/plan/view/comonents/report/detail/TestPlanReportContent.vue @@ -234,4 +234,8 @@ export default { width: 100%; padding: 40px; } + +/deep/ .padding-col { + padding: 5px; +} diff --git a/frontend/src/business/components/track/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue b/frontend/src/business/components/track/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue index 4418641da6..cce8981677 100644 --- a/frontend/src/business/components/track/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue +++ b/frontend/src/business/components/track/plan/view/comonents/report/detail/component/ApiCaseFailureResult.vue @@ -1,54 +1,55 @@