From 2171e52259e2b6e64178f77d14eda487f45ed8d6 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期二, 12 十二月 2023 16:50:16 +0800
Subject: [PATCH] 统计分析模块更改

---
 Source/UBCS-WEB/src/components/StatisticsComponent/lineChart.vue |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/StatisticsComponent/lineChart.vue b/Source/UBCS-WEB/src/components/StatisticsComponent/lineChart.vue
index 7c180bc..f37802e 100644
--- a/Source/UBCS-WEB/src/components/StatisticsComponent/lineChart.vue
+++ b/Source/UBCS-WEB/src/components/StatisticsComponent/lineChart.vue
@@ -31,15 +31,14 @@
       handler(newval, oldval) {
         if (newval) {
           const series = newval.map((data, index) => ({
-            name: index === 0 ? "鎬婚噺" : "鏂板",
-            type: "line",
+            name: index === 0 ? '鎬婚噺' : '鏂板',
+            type: 'line',
             smooth: true,
-            stack: "Total",
+            stack: index === 0 ? 'Total' : 'total2', // 鏍规嵁 index 鍖哄垎鎬婚噺鍜屾柊澧炵殑鍫嗗彔鎯呭喌
             label: {
               show: true,
-              position: "top",
               textStyle: {
-                fontSize: 14 // 璋冩暣瀛椾綋澶у皬
+                fontSize: 14
               }
             },
             data: data.map(value => ({value}))
@@ -49,14 +48,14 @@
         }
       }
     },
-    chartName:{
-      handler(newval,oldval){
-        if(newval){
+    chartName: {
+      handler(newval, oldval) {
+        if (newval) {
           this.chartOptions.title.text = newval + "鏁版嵁缁熻"
         }
       },
-      immediate:true,
-      deep:true
+      immediate: true,
+      deep: true
     }
   },
   data() {

--
Gitblit v1.9.3