From e2b519bd1011d2ffba8f47a6f59ed9d9a0551d4f Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Wed, 20 Nov 2024 09:12:06 +0800
Subject: [PATCH] 应急物质添加联系人

---
 src/pages/layout/components/scomponents/layersControl.vue |   57 ++++++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 40 insertions(+), 17 deletions(-)

diff --git a/src/pages/layout/components/scomponents/layersControl.vue b/src/pages/layout/components/scomponents/layersControl.vue
index 6313690..0abf1a7 100644
--- a/src/pages/layout/components/scomponents/layersControl.vue
+++ b/src/pages/layout/components/scomponents/layersControl.vue
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2024-10-31 10:47:29
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-18 17:07:09
+ * @LastEditTime: 2024-11-19 15:53:37
  * @FilePath: \bigScreen\src\pages\layout\components\scomponents\layersControl.vue
  * @Description:
  *
@@ -173,7 +173,7 @@
             layerName: 'gsgw',
             source: gsgw,
             color: DC.Color.BLUE,
-            height: 5,
+            height: 65,
           },
           {
             id: '3-3-2',
@@ -183,7 +183,7 @@
             layerName: 'wsgw',
             source: wsgw,
             color: DC.Color.BLACK,
-            height: 10,
+            height: 68,
           },
           {
             id: '3-3-3',
@@ -193,7 +193,7 @@
             layerName: 'rqgw',
             source: rqgw,
             color: DC.Color.RED,
-            height: 15,
+            height: 71,
           },
           {
             id: '3-3-4',
@@ -203,7 +203,7 @@
             layerName: 'ysgw',
             source: ysgw,
             color: DC.Color.CYAN,
-            height: 20,
+            height: 75,
           },
         ]
       },
@@ -274,17 +274,40 @@
   {
     id: '4',
     label: '风险源',
-    type: 'layer',
-    subType: 'labelPoint',
-    method: getRiskList,
-    params: {
-      size: 1000
-    },
-    showParams: 'category',
-    className: 'fxy-box',
-    backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy.png',
-    showPanel: false,
-    layerName: 'fxy'
+    children: [
+      {
+        id: '4-1',
+        label: '一般',
+        type: 'layer',
+        subType: 'labelPoint',
+        method: getRiskList,
+        params: {
+          riskLevel: 1,
+          size: 1000
+        },
+        showParams: 'category',
+        className: 'fxy-ordinary',
+        backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy.png',
+        showPanel: false,
+        layerName: 'fxyOrdinary',
+      },
+      {
+        id: '4-2',
+        label: '较大',
+        type: 'layer',
+        subType: 'labelPoint',
+        method: getRiskList,
+        params: {
+          riskLevel: 2,
+          size: 1000
+        },
+        showParams: 'category',
+        className: 'fxy-larger',
+        backgroundIcon: VITE_APP_BASE + 'img/mapicon/fxy.png',
+        showPanel: false,
+        layerName: 'fxyLarger',
+      }
+    ]
   },
 
   {
@@ -481,7 +504,7 @@
           item.source.features.forEach(i => {
             let polylineVolume = new DC.PolylineVolume(
               i.geometry.coordinates.map(d => [d[0], d[1], item.height].join(',')).join(';'),
-              computeCircle(0.3)
+              computeCircle(2)
             )
 
             polylineVolume.setStyle({

--
Gitblit v1.9.3