From 9351ed8d72c344a6c7147b3a5f32f3fcf6ad28cb Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期六, 20 四月 2024 21:05:31 +0800 Subject: [PATCH] update --- src/views/mdc/components/Time.vue | 12 +++++++++--- 1 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/mdc/components/Time.vue b/src/views/mdc/components/Time.vue index c01ab7c..bdc4cb6 100644 --- a/src/views/mdc/components/Time.vue +++ b/src/views/mdc/components/Time.vue @@ -1,7 +1,7 @@ <!-- * @Date: 2024-04-18 21:52:18 * @LastEditors: Sneed - * @LastEditTime: 2024-04-20 20:41:13 + * @LastEditTime: 2024-04-20 20:57:47 * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/Time.vue --> <template> @@ -40,6 +40,12 @@ <script> import scEcharts from '@/components/scEcharts'; export default { + props: { + url: { + default: '/api/blade-mdc/efficiency-analysis', + type: String, + } + }, components: { scEcharts }, @@ -115,7 +121,7 @@ queryType: 0, statisticalMethod: this.statisticalMethod } - return this.$HTTP.post('/api/blade-mdc/efficiency-analysis', dataSend, { params }).then(res => { + return this.$HTTP.post(this.url, dataSend, { params }).then(res => { this.chartsData = res.data.items.records let option2 = { // legend: { @@ -185,7 +191,7 @@ delete dataSend.size delete dataSend.order delete dataSend.prop - return await this.$HTTP.post('/api/blade-mdc/efficiency-analysis', dataSend, { params }).then(res => { + return await this.$HTTP.post(this.url, dataSend, { params }).then(res => { let row = res.data.items?.records[0]?.data || {} this.cols = Object.keys(row) console.log(this.cols) -- Gitblit v1.9.3