From de1dc595322a35255e7f40581a96772d6f62d553 Mon Sep 17 00:00:00 2001
From: hejianhao <15708179461@qq.com>
Date: 星期四, 27 三月 2025 10:05:39 +0800
Subject: [PATCH] 地图现在镇街优化

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

diff --git a/src/components/datascreen/map.vue b/src/components/datascreen/map.vue
index 0b628d5..8f4f676 100644
--- a/src/components/datascreen/map.vue
+++ b/src/components/datascreen/map.vue
@@ -458,7 +458,13 @@
                                 color: "#fff",    // 文字颜色
                                 fontSize: 10,     // 文字大小
                                 fontWeight: "normal", // 文字粗细
-                                opacity: 1        // 不透明度
+                                opacity: 1,        // 不透明度
+                                formatter: (params) => {
+                                    if (params.name.includes("noName")) {
+                                        return "";
+                                    }
+                                    return params.name;
+                                }
                             },
                             itemStyle: {
                                 areaColor: {  // 区域填充,保持与正常状态相同的背景
@@ -494,7 +500,13 @@
                             color: "#fff",    // 文字颜色
                             fontSize: 10,     // 文字大小
                             fontWeight: "normal", // 文字粗细
-                            opacity: 1        // 不透明度
+                            opacity: 1,        // 不透明度
+                            formatter: (params) => {
+                                if (params.name.includes("noName")) {
+                                    return "";
+                                }
+                                return params.name;
+                            }
                         },
 
                         tooltip: {

--
Gitblit v1.7.1