From a786409d7f6769f43c107159dd84faf4a2927a9a Mon Sep 17 00:00:00 2001
From: lzhe <lzhe@example.com>
Date: 星期一, 03 六月 2024 17:07:59 +0800
Subject: [PATCH] 1

---
 src/views/mdc/components/Time.vue |   15 ++++++++++-----
 1 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/src/views/mdc/components/Time.vue b/src/views/mdc/components/Time.vue
index bdc4cb6..17d160d 100644
--- a/src/views/mdc/components/Time.vue
+++ b/src/views/mdc/components/Time.vue
@@ -1,14 +1,14 @@
 <!--
  * @Date: 2024-04-18 21:52:18
  * @LastEditors: Sneed
- * @LastEditTime: 2024-04-20 20:57:47
+ * @LastEditTime: 2024-04-27 23:30:06
  * @FilePath: /belleson-frontend/Users/mache/Documents/demo/cps-web/src/views/mdc/components/Time.vue
 -->
 <template>
     <el-row>
         <el-col>
             <el-button-group>
-                <el-button @click="statisticalMethod = item.value"
+                <el-button size="small" @click="statisticalMethod = item.value"
                     :type="statisticalMethod == item.value ? 'primary' : ''" v-for="item in btnList"
                     :key="item.value">{{
                         item.label }}</el-button>
@@ -140,11 +140,16 @@
                     xAxis: {
                         type: 'category',
                         axisLabel: {
-                            interval: 'auto'
+                            interval: 'auto',
                         }
                     },
                     yAxis: {
-                        type: 'value'
+                        type: 'value',
+                        axisLabel: {
+                            formatter: (value) => {
+                                return value + '%'
+                            }
+                        },
                     },
                     dataZoom: [
                         { type: 'slider' }
@@ -166,7 +171,7 @@
                 res.data.items.records.forEach(v => {
                     let current = [v.id]
                     Object.keys(v.nameData).forEach(key => {
-                        current.push(row.data[key] - 0)
+                        current.push((v.data[key] - 0) * 100)
                     })
                     option2.dataset.source.push(current)
                 });

--
Gitblit v1.9.3