From a1ef933646efa32a49429140589ab27c67791a50 Mon Sep 17 00:00:00 2001 From: CaptainB Date: Fri, 12 Nov 2021 17:57:48 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8E=8B=E5=8A=9B=E9=85=8D=E7=BD=AE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../report/PerformanceReportView.vue | 7 +- .../components/PerformancePressureConfig.vue | 359 +++++++++--------- .../comonents/load/LoadCaseReportView.vue | 30 +- 3 files changed, 197 insertions(+), 199 deletions(-) diff --git a/frontend/src/business/components/performance/report/PerformanceReportView.vue b/frontend/src/business/components/performance/report/PerformanceReportView.vue index 5f89ad0208..fa4728663e 100644 --- a/frontend/src/business/components/performance/report/PerformanceReportView.vue +++ b/frontend/src/business/components/performance/report/PerformanceReportView.vue @@ -413,12 +413,7 @@ export default { let data = res.data; if (data) { this.status = data.status; - this.$set(this.report, "id", data.id); - this.$set(this.report, "status", data.status); - this.$set(this.report, "testId", data.testId); - this.$set(this.report, "name", data.name); - this.$set(this.report, "createTime", data.createTime); - this.$set(this.report, "loadConfiguration", data.loadConfiguration); + this.$set(this, "report", data); this.checkReportStatus(data.status); if (this.status === "Completed" || this.status === "Running") { this.initReportTimeInfo(); diff --git a/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue index 8e951b3214..165d394904 100644 --- a/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue @@ -37,7 +37,7 @@ - +
- + {{ $t('load_test.by_duration') }} {{ $t('load_test.by_iteration') }} @@ -55,7 +55,7 @@
- + - + + - + + +
- - -   - + + + + + -
- - + + - - + + -
- - - - -
+ + + +
- +
+ + + - -   - +
- - + + - +
+
+ + + {{ $t('load_test.auto_ratio') }} + {{ $t('load_test.specify_resource') }} + {{ $t('load_test.custom_ratio') }} + + +
+
+ + + + + + +
+
+ + + + + + + + +
@@ -171,14 +211,15 @@