From 44517cf9375441d8a84808ca52d7ce474d8e0b17 Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期六, 15 四月 2023 15:21:28 +0800
Subject: [PATCH] 地图更改为本地服务,柱状图效果更改

---
 src/components/MapView/mapSpacePop.vue |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/components/MapView/mapSpacePop.vue b/src/components/MapView/mapSpacePop.vue
index 87b0d48..d20a926 100644
--- a/src/components/MapView/mapSpacePop.vue
+++ b/src/components/MapView/mapSpacePop.vue
@@ -359,7 +359,9 @@
         { 'name': '鍗电煶', 'color': 'rgba(54,83,173,1)' },
         { 'name': '娉ュ博', 'color': 'rgba(47,30,13,1)' },
         { 'name': '缁嗙爞', 'color': 'rgba(93,88,15,1)' },
-        { 'name': '涓爞', 'color': 'rgba(164,140,21,1)' }
+        { 'name': '涓爞', 'color': 'rgba(164,140,21,1)' },
+        { 'name': '娣ゆ偿璐ㄥ湡', 'color': 'rgba(75,74,78,1)' },
+        { 'name': '鍏朵粬', 'color': 'rgba(225,225,225,1)' },
       ]
     }
   },
@@ -909,6 +911,14 @@
             return res
           }
         })
+        console.log(1, col)
+        if (col.length == 0) {
+          col = outlineList.filter((ste) => {
+            if (ste.name == '鍏朵粬') {
+              return res
+            }
+          })
+        }
         line = col[0].color
 
         var height = num - std[i].botdepth
@@ -1036,7 +1046,9 @@
         { 'name': '鍗电煶', 'color': [54, 83, 173, 1] },
         { 'name': '娉ュ博', 'color': [47, 30, 13, 1] },
         { 'name': '缁嗙爞', 'color': [93, 88, 15, 1] },
-        { 'name': '涓爞', 'color': [164, 140, 21, 1] }
+        { 'name': '涓爞', 'color': [164, 140, 21, 1] },
+        { 'name': '娣ゆ偿璐ㄥ湡', 'color': [75, 74, 78, 1] },
+        { 'name': '鍏朵粬', 'color': [225, 225, 225, 1] }
       ]
       for (var i = 0; i < list.length; i++) {
         var out_color = list[i].color

--
Gitblit v1.9.3