From a3187607ce0f23a9acdf41b58d2cd88a3aa5b06a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 24 Dec 2024 21:21:28 +0800
Subject: [PATCH] 菜单显示、三级防控加载

---
 src/views/pac/components/box/dataContent.vue |   75 ++++++++++++-------------------------
 1 files changed, 25 insertions(+), 50 deletions(-)

diff --git a/src/views/pac/components/box/dataContent.vue b/src/views/pac/components/box/dataContent.vue
index 010d075..f6323a1 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: 2024-12-24 19:36:50
  * @FilePath: \bigScreen\src\views\pac\components\box\dataContent.vue
  * @Description: 
  * 
@@ -57,8 +57,18 @@
           },
           {
             type: 2,
+            backgroundIcon: VITE_APP_BASE + 'img/mapicon/yjc.png',
+            className: 'ysf-box',
+          },
+          {
+            type: 3,
             backgroundIcon: VITE_APP_BASE + 'img/mapicon/ysf.png',
             className: 'ysf-box',
+          },
+          {
+            type: 4,
+            backgroundIcon: VITE_APP_BASE + 'img/mapicon/zb.png',
+            className: 'sk-box',
           },
           {
             type: 5,
@@ -67,32 +77,17 @@
           },
           {
             type: 6,
-            backgroundIcon: VITE_APP_BASE + 'img/mapicon/yjb.png',
-            className: 'yjb-box',
+            backgroundIcon: VITE_APP_BASE + 'img/mapicon/kt.png',
+            className: 'sk-box',
           },
           {
             type: 7,
-            backgroundIcon: VITE_APP_BASE + 'img/mapicon/xfs.png',
+            backgroundIcon: VITE_APP_BASE + 'img/mapicon/wd.png',
             className: 'xfs-box',
           },
           {
             type: 8,
-            backgroundIcon: VITE_APP_BASE + 'img/mapicon/gouqu.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',
+            backgroundIcon: VITE_APP_BASE + 'img/mapicon/ql.png',
             className: 'xfs-box',
           }
         ]
@@ -116,19 +111,19 @@
                   </div>
                   `
               }
-            let divIcon = new DC.DivIcon(
-              new DC.Position(i.lng, i.lat, i.ele || 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 {
@@ -140,26 +135,6 @@
       }
     }
   })
-
-  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`)
-    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`)
-  } else {
-    EventBus.emit('restHandleDelChange', `3-3-2`)
-    EventBus.emit('restHandleDelChange', `3-3-4`)
-    EventBus.emit('restHandleDelChange', `3-8`)
-  }
 }
 
 const tabClick = (item) => {

--
Gitblit v1.9.3