From 17a81d641608545682e3f79f7c6090cac48fe81a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 15 Sep 2025 18:10:01 +0800
Subject: [PATCH] feat:去除高亮

---
 src/views/pac/components/box/dataContent.vue |   91 ++++++++++++++++-----------------------------
 1 files changed, 32 insertions(+), 59 deletions(-)

diff --git a/src/views/pac/components/box/dataContent.vue b/src/views/pac/components/box/dataContent.vue
index 50cf14e..b020995 100644
--- a/src/views/pac/components/box/dataContent.vue
+++ b/src/views/pac/components/box/dataContent.vue
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2023-03-10 15:27:59
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-27 14:49:05
+ * @LastEditTime: 2025-01-04 20:30:46
  * @FilePath: \bigScreen\src\views\pac\components\box\dataContent.vue
  * @Description: 
  * 
@@ -43,6 +43,7 @@
 const curSelect = ref('1')
 let addTileLayers = {}
 const handleCheckChange = (row) => {
+  EventBus.emit('flyToyqfw', 'flyToyqfw')
   resData.data.forEach(item => {
     if (row.value === item.value) {
       if (!addTileLayers[item.label]) {
@@ -56,44 +57,34 @@
           },
           {
             type: 2,
+            backgroundIcon: VITE_APP_BASE + 'img/mapicon/yjc.png',
+            className: 'yjc-box',
+          },
+          {
+            type: 3,
             backgroundIcon: VITE_APP_BASE + 'img/mapicon/ysf.png',
             className: 'ysf-box',
           },
           {
-            type: 5,
-            backgroundIcon: VITE_APP_BASE + 'img/mapicon/sk.png',
+            type: 4,
+            backgroundIcon: VITE_APP_BASE + 'img/mapicon/zb.png',
             className: 'sk-box',
           },
           {
-            type: 6,
-            backgroundIcon: VITE_APP_BASE + 'img/mapicon/yjb.png',
-            className: 'yjb-box',
+            type: 5,
+            backgroundIcon: VITE_APP_BASE + 'img/mapicon/sd.png',
+            className: 'xfs-box',
           },
           {
-            type: 7,
-            backgroundIcon: VITE_APP_BASE + 'img/mapicon/xfs.png',
-            className: 'xfs-box',
+            type: 6,
+            backgroundIcon: VITE_APP_BASE + 'img/mapicon/kt.png',
+            className: 'sk-box',
           },
           {
             type: 8,
-            backgroundIcon: VITE_APP_BASE + 'img/mapicon/gouqu.png',
+            backgroundIcon: VITE_APP_BASE + 'img/mapicon/ql.png',
             className: 'xfs-box',
           },
-          {
-            type: 9,
-            backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsclc.png',
-            className: 'xfs-box',
-          },
-          {
-            type: 10,
-            backgroundIcon: VITE_APP_BASE + 'img/mapicon/psk.png',
-            className: 'xfs-box',
-          },
-          {
-            type: 11,
-            backgroundIcon: VITE_APP_BASE + 'img/mapicon/wsc.png',
-            className: 'xfs-box',
-          }
         ]
 
         getList({
@@ -104,7 +95,6 @@
           data.filter(i => i.lng && i.lng != '' && i.lat && i.lat != '').forEach(i => {
             let iconEl = ''
             let divclassName = ''
-
             let flag = typeList.find(l => l.type == i.type)
             if (flag) {
               divclassName = flag.className
@@ -116,26 +106,19 @@
                   </div>
                   `
               }
-            } else {
-              iconEl = `<div class="marsBlueGradientPnl">
-                  <div>${i[i.showParams] || i.name}</div>
-                </div>`
-            }
-
-            let divIcon = new DC.DivIcon(
-              new DC.Position(i.lng, i.lat, 64),
-              `<div class="public-map-popup ${divclassName}">
+              let divIcon = new DC.DivIcon(
+                new DC.Position(i.lng, i.lat, i.ele || 64),
+                `<div class="public-map-popup ${divclassName}">
                     ${iconEl}
                   </div>`
-            )
-            divIcon.attrParams = i
-            let incident = () => { }
+              )
+              divIcon.attrParams = i
+              let incident = () => { }
 
-            if (item.incident) incident = item.incident
-
-            divIcon.on(DC.MouseEventType.CLICK, incident)
-
-            addTileLayers[item.label].addOverlay(divIcon)
+              if (item.incident) incident = item.incident
+              divIcon.on(DC.MouseEventType.CLICK, incident)
+              addTileLayers[item.label].addOverlay(divIcon)
+            }
           })
         })
       } else {
@@ -148,24 +131,14 @@
     }
   })
 
-  if (row.type == 2) {
-    EventBus.emit('restHandleCheckChange', `3-3-2`)
-    EventBus.emit('restHandleCheckChange', `3-3-4`)
-    EventBus.emit('restHandleCheckChange', `3-9`)
-  } else {
-    EventBus.emit('restHandleDelChange', `3-3-2`)
-    EventBus.emit('restHandleDelChange', `3-3-4`)
+  if (row.type == 2 || row.type == 3) {
     EventBus.emit('restHandleDelChange', `3-9`)
-  }
-
-  if (row.type == 3) {
-    EventBus.emit('restHandleCheckChange', `3-3-2`)
-    EventBus.emit('restHandleCheckChange', `3-3-4`)
-    EventBus.emit('restHandleCheckChange', `3-8`)
+    EventBus.emit('restHandleCheckChange', `3-9`)
+    EventBus.emit('restHandleDelChange', `3-11`)
+    EventBus.emit('restHandleCheckChange', `3-11`)
   } else {
-    EventBus.emit('restHandleDelChange', `3-3-2`)
-    EventBus.emit('restHandleDelChange', `3-3-4`)
-    EventBus.emit('restHandleDelChange', `3-8`)
+    EventBus.emit('restHandleDelChange', `3-9`)
+    EventBus.emit('restHandleDelChange', `3-11`)
   }
 }
 

--
Gitblit v1.9.3