From a162fe4f45b0ed67e265e32102c36b0a716f3199 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Fri, 26 Mar 2021 18:16:54 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat(=E6=80=A7=E8=83=BD=E6=B5=8B?= =?UTF-8?q?=E8=AF=95):=20=E6=B5=8B=E8=AF=95=E6=8A=A5=E5=91=8A=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=AF=B9=E6=AF=94"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e26561e4 --- .../report/PerformanceReportCompare.vue | 48 +---- .../report/PerformanceReportView.vue | 2 - .../report/components/LoadCompareCard.vue | 182 ----------------- .../report/components/OverviewCompareCard.vue | 67 ------- .../components/ResponseTimeCompareCard.vue | 188 ------------------ .../report/components/SameTestReports.vue | 45 ++--- 6 files changed, 25 insertions(+), 507 deletions(-) delete mode 100644 frontend/src/business/components/performance/report/components/LoadCompareCard.vue delete mode 100644 frontend/src/business/components/performance/report/components/OverviewCompareCard.vue delete mode 100644 frontend/src/business/components/performance/report/components/ResponseTimeCompareCard.vue diff --git a/frontend/src/business/components/performance/report/PerformanceReportCompare.vue b/frontend/src/business/components/performance/report/PerformanceReportCompare.vue index 5e80cfa5e2..3193c0c973 100644 --- a/frontend/src/business/components/performance/report/PerformanceReportCompare.vue +++ b/frontend/src/business/components/performance/report/PerformanceReportCompare.vue @@ -1,21 +1,9 @@ @@ -24,16 +12,15 @@ import MsContainer from "@/business/components/common/components/MsContainer"; import MsMainContainer from "@/business/components/common/components/MsMainContainer"; import {checkoutTestManagerOrTestUser} from "@/common/js/utils"; -import OverviewCompareCard from "@/business/components/performance/report/components/OverviewCompareCard"; -import MsChart from "@/business/components/common/chart/MsChart"; -import LoadCompareCard from "@/business/components/performance/report/components/LoadCompareCard"; -import ResponseTimeCompareCard from "@/business/components/performance/report/components/ResponseTimeCompareCard"; export default { name: "PerformanceReportCompare", - components: {ResponseTimeCompareCard, LoadCompareCard, MsChart, OverviewCompareCard, MsMainContainer, MsContainer}, + components: {MsMainContainer, MsContainer}, mounted() { - this.init(); + let reportId = this.$route.path.split('/')[4]; + console.log(reportId); + let items = localStorage.getItem("compareReportIds"); + console.log(JSON.parse(items)); }, computed: { isReadOnly() { @@ -43,28 +30,11 @@ export default { data() { return {} }, - methods: { - init() { - this.$refs.overviewCard.initTable(); - this.$refs.loadCard.initCard(); - this.$refs.responseTimeCard.initCard(); - } - }, - watch: { - '$route'(to) { - if (to.name !== "ReportCompare") { - return; - } + methods: {} - this.init(); - } - } } diff --git a/frontend/src/business/components/performance/report/PerformanceReportView.vue b/frontend/src/business/components/performance/report/PerformanceReportView.vue index d7934bc6b2..c496eb8646 100644 --- a/frontend/src/business/components/performance/report/PerformanceReportView.vue +++ b/frontend/src/business/components/performance/report/PerformanceReportView.vue @@ -332,8 +332,6 @@ export default { this.$set(this.report, "id", this.reportId); 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.checkReportStatus(data.status); if (this.status === "Completed" || this.status === "Running") { diff --git a/frontend/src/business/components/performance/report/components/LoadCompareCard.vue b/frontend/src/business/components/performance/report/components/LoadCompareCard.vue deleted file mode 100644 index 8cba2a523f..0000000000 --- a/frontend/src/business/components/performance/report/components/LoadCompareCard.vue +++ /dev/null @@ -1,182 +0,0 @@ - - - - - diff --git a/frontend/src/business/components/performance/report/components/OverviewCompareCard.vue b/frontend/src/business/components/performance/report/components/OverviewCompareCard.vue deleted file mode 100644 index 18298b9967..0000000000 --- a/frontend/src/business/components/performance/report/components/OverviewCompareCard.vue +++ /dev/null @@ -1,67 +0,0 @@ - - - - - diff --git a/frontend/src/business/components/performance/report/components/ResponseTimeCompareCard.vue b/frontend/src/business/components/performance/report/components/ResponseTimeCompareCard.vue deleted file mode 100644 index 1f48b5ea2c..0000000000 --- a/frontend/src/business/components/performance/report/components/ResponseTimeCompareCard.vue +++ /dev/null @@ -1,188 +0,0 @@ - - - - - diff --git a/frontend/src/business/components/performance/report/components/SameTestReports.vue b/frontend/src/business/components/performance/report/components/SameTestReports.vue index 216ab7d1da..6e203f66fb 100644 --- a/frontend/src/business/components/performance/report/components/SameTestReports.vue +++ b/frontend/src/business/components/performance/report/components/SameTestReports.vue @@ -5,23 +5,20 @@ :visible.sync="loadReportVisible"> - + prop="name" + :label="$t('commons.name')" + show-overflow-tooltip> + prop="userName" + :label="$t('report.user_name')" + show-overflow-tooltip> @@ -30,7 +27,7 @@ + :label="$t('commons.create_time')">