From 3931e2728f618d0090f129b2665bc1285c4440c3 Mon Sep 17 00:00:00 2001
From: gaoshp <291585735@qq.com>
Date: 星期日, 03 十一月 2024 17:27:32 +0800
Subject: [PATCH] update

---
 src/views/mdc/components/Time.vue |   14 +++++++++++---
 1 files changed, 11 insertions(+), 3 deletions(-)

diff --git a/src/views/mdc/components/Time.vue b/src/views/mdc/components/Time.vue
index 6442645..63ad963 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-06-20 22:54:35
+ * @LastEditTime: 2024-06-21 00:15:44
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/Time.vue
 -->
 <template>
@@ -42,7 +42,7 @@
 export default {
     props: {
         url: {
-            default: '/api/blade-mdc/efficiency-analysis',
+            default: '/api/mdc/efficiency-analysis',
             type: String,
         },
         options: {
@@ -146,7 +146,7 @@
         },
         getTime(data) {
             //return Promise.resolve()
-            return this.$HTTP.post('/api/blade-mdc/efficiency-analysis/interval', {
+            return this.$HTTP.post('/api/mdc/efficiency-analysis/interval', {
                 ...data
             }).then(res => {
                 if (res.code === 200) {
@@ -159,6 +159,14 @@
                                 endDate: moment(v.id).endOf('month').format('YYYY-MM-DD')
                             }
                         })
+                    } else if (data.statisticalMethod === 'DAY') {
+                        return res?.data?.map(v => {
+                            return {
+                                ...v,
+                                startDate: v.id,
+                                endDate: v.id
+                            }
+                        })
                     } else {
                         return res.data
                     }

--
Gitblit v1.9.3