diff --git a/backend/src/main/java/io/metersphere/performance/controller/PerformanceReportController.java b/backend/src/main/java/io/metersphere/performance/controller/PerformanceReportController.java index c96bf0f2a8..137a899b77 100644 --- a/backend/src/main/java/io/metersphere/performance/controller/PerformanceReportController.java +++ b/backend/src/main/java/io/metersphere/performance/controller/PerformanceReportController.java @@ -119,11 +119,6 @@ public class PerformanceReportController { return performanceReportService.getLoadTestReport(reportId); } - @GetMapping("/pool/type/{reportId}") - public String getPoolTypeByReportId(@PathVariable String reportId) { - return performanceReportService.getPoolTypeByReportId(reportId); - } - @GetMapping("log/resource/{reportId}") public List getResourceIds(@PathVariable String reportId) { return performanceReportService.getReportLogResource(reportId); diff --git a/frontend/src/business/components/performance/report/PerformanceReportView.vue b/frontend/src/business/components/performance/report/PerformanceReportView.vue index ec35f73f12..c72ca61629 100644 --- a/frontend/src/business/components/performance/report/PerformanceReportView.vue +++ b/frontend/src/business/components/performance/report/PerformanceReportView.vue @@ -97,7 +97,7 @@ - + @@ -188,7 +188,6 @@ export default { {value: '60', label: '1m'}, {value: '300', label: '5m'} ], - poolType: "", testDeleted: false, }; }, @@ -410,21 +409,12 @@ export default { } } localStorage.setItem("reportRefreshTime", this.refreshTime); - }, - getPoolType(reportId) { - this.$get("/performance/report/pool/type/" + reportId, result => { - let data = result.data; - if (data) { - this.poolType = data; - } - }); } }, created() { this.isReadOnly = !hasPermission('PROJECT_PERFORMANCE_REPORT:READ+DELETE'); this.reportId = this.$route.path.split('/')[4]; this.getReport(this.reportId); - this.getPoolType(this.reportId); }, watch: { '$route'(to) { 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 9e8771d1cb..73441a8f4d 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 @@ -66,7 +66,7 @@ - + @@ -142,7 +142,6 @@ export default { reportExportVisible: false, testPlan: {testResourcePoolId: null}, show: true, - poolType: "", } }, props: { @@ -356,19 +355,10 @@ export default { 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); } }