From 13ca43515aa79d1d21db4580d42936d0e229de11 Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 25 May 2021 12:18:09 +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=B5=8B=E8=AF=95=E8=AE=A1=E5=88=92-?= =?UTF-8?q?=E6=80=A7=E8=83=BD=E7=94=A8=E4=BE=8B-=E6=89=B9=E9=87=8F?= =?UTF-8?q?=E6=89=A7=E8=A1=8C-=E5=B9=B6=E8=A1=8C-=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=EF=BC=8C=E6=B2=A1=E6=9C=89=E7=9B=91=E6=8E=A7?= =?UTF-8?q?tab=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../comonents/load/LoadCaseReportView.vue | 23 ++++++++++++++----- 1 file changed, 17 insertions(+), 6 deletions(-) diff --git a/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseReportView.vue b/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseReportView.vue index 8ab8179838..41a97b43f7 100644 --- a/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseReportView.vue +++ b/frontend/src/business/components/track/plan/view/comonents/load/LoadCaseReportView.vue @@ -57,6 +57,9 @@ + + + @@ -91,11 +94,13 @@ import MsReportTestOverview from "@/business/components/performance/report/compo import MsContainer from "@/business/components/common/components/MsContainer"; import MsMainContainer from "@/business/components/common/components/MsMainContainer"; import MsPerformancePressureConfig from "@/business/components/performance/report/components/PerformancePressureConfig"; +import MonitorCard from "@/business/components/performance/report/components/MonitorCard"; export default { name: "LoadCaseReportView", components: { + MonitorCard, MsPerformanceReportExport, MsReportErrorLog, MsReportLogDetails, @@ -125,7 +130,8 @@ export default { dialogFormVisible: false, reportExportVisible: false, testPlan: {testResourcePoolId: null}, - show: true + show: true, + poolType: "", } }, props: { @@ -316,10 +322,6 @@ export default { }); }, init() { - this.isReadOnly = false; - if (!checkoutTestManagerOrTestUser()) { - this.isReadOnly = true; - } this.clearData(); this.result = this.$get("/performance/report/" + this.reportId, res => { let data = res.data; @@ -336,13 +338,22 @@ export default { this.initBreadcrumb(); this.initWebSocket(); } else { - this.$error(this.$t('report.not_exist')) + this.$error(this.$t('report.not_exist')); + } + }); + }, + getPoolType(reportId) { + this.$get("/performance/report/pool/type/" + reportId, result => { + let data = result.data; + if (data) { + this.poolType = data; } }); } }, created() { this.init(); + this.getPoolType(this.reportId); } }