From eb935ac81cfa4992629efb8494acbe02701e616a Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 13 十二月 2023 18:17:09 +0800
Subject: [PATCH] 堆叠折线图 主数据导出加入Loading

---
 Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue b/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue
index 065c234..0e5a2de 100644
--- a/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue
+++ b/Source/UBCS-WEB/src/components/StatisticsComponent/ColumnarChart.vue
@@ -36,7 +36,7 @@
             );
           });
 
-          let colors = ["#91CC75", "#5470C6"];
+          let colors = ['#84C9E5', '#F68686'];
 
           const seriesData = [];
           for (let i = 0; i < newval.length; i++) {
@@ -50,7 +50,7 @@
                 value: newval[i][j],
                 itemStyle: {
                   normal: {
-                    barBorderRadius: borderRadius,  // 璁剧疆鍦嗚
+                    // barBorderRadius: borderRadius,  // 璁剧疆鍦嗚
                     color: colors[i],
                   }
                 },
@@ -65,7 +65,10 @@
               data: curSeriesData,
               label: {
                 show: true,
-                position: 'top'
+                position: 'top',
+                formatter: function (params) {
+                  return params.value === 0 ? '' : params.value; // 鍊间负 0 涓嶆樉绀猴紝鍏朵粬鎯呭喌鏄剧ず
+                }
               },
               emphasis: {
                 focus: "series",
@@ -79,7 +82,6 @@
     chartName:{
       handler(newval,oldval){
         if(newval){
-          console.log(newval)
           this.chartOptions.title.text = newval + "鏁版嵁缁熻"
         }
       },

--
Gitblit v1.9.3