| 
					
				 | 
			
			
				@@ -29,19 +29,24 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         <div class="type-box"><img src="@/assets/images/warningHome/lz.png" /></div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     <div class="top-r yes-events"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <div class="data-box" @click="toggleBox(1)" :class="{active: activeBox === 1}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <div class="data-box" @click="toggleBox('面积')" :class="{ active: activeBoxName === '面积' }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <div class="data-value"><span>526</span>亩</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <div class="data-name">种植面积</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <div class="data-box" v-if="areaVal.includes('3186')" @click="toggleBox(4)" :class="{active: activeBox === 4}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <div 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            class="data-box" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            v-if="areaVal.includes('3186')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            @click="toggleBox('失管')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            :class="{ active: activeBoxName === '失管' }" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <div class="data-value"><span>526</span>亩</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <div class="data-name">疑似失管面积</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <div class="data-box" @click="toggleBox(2)" :class="{active: activeBox === 2}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <div class="data-box" @click="toggleBox('产量')" :class="{ active: activeBoxName === '产量' }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <div class="data-value"><span>526</span>亩</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <div class="data-name">预估产量</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        <div class="data-box" @click="toggleBox(3)" :class="{active: activeBox === 3}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        <div class="data-box" @click="toggleBox('产值')" :class="{ active: activeBoxName === '产值' }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <div class="data-value"><span>526</span>万元</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             <div class="data-name">预估总产值</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         </div> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -56,6 +61,11 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div class="warning-r right yes-events"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <album></album> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <!-- 地图图例 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                <div class="map-legend" v-if="legendImg"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    <img :src="legendImg" /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <div class="warning-search yes-events"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 <img src="@/assets/images/warningHome/search-img.png" /> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -100,7 +110,7 @@ import alarmList from "./components/alarmList.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import timeLine from "./components/timeLine.vue"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { useRouter } from "vue-router"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import eventBus from "@/api/eventBus"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import { areaListOptions } from "./area" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { areaListOptions } from "./area"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { useStore } from "vuex"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 let store = useStore(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -110,9 +120,17 @@ const router = useRouter(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const areaVal = ref(["3"]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const mapRef = ref(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const legendImg = ref(""); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const warningLayers = ref({}) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 onMounted(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     warningMap.initMap(store.getters.userinfo.location, mapRef.value); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     alarmLayer = new AlarmLayer(warningMap.kmap); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    // 图例数据 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    eventBus.on("alarmList:warningLayers", (data) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        warningLayers.value = data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const destroyPopup = () => { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -124,17 +142,19 @@ const props1 = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const toggleArea = (v) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    activeBox.value = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    activeBoxName.value = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     const val = v[v.length - 1]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     if (val === "3" || val === "3186") { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         eventBus.emit("warningHome:toggleArea", val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const activeBox = ref(null) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-const toggleBox = (index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    activeBox.value = index 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const activeBoxName = ref(null); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const toggleBox = (name) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    activeBoxName.value = name; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    legendImg.value = warningLayers.value[`${name}图例`]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    eventBus.emit("warningHome:toggleMapLayer", name); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <style lang="scss" scoped> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -148,7 +168,7 @@ const toggleBox = (index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     ::v-deep { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .focus-farm { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            margin-top: 42px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            top: 42px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -170,11 +190,24 @@ const toggleBox = (index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .right { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             width: 395px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            position: relative; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             .list { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 width: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 height: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        .warning-r { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            .map-legend { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                position: absolute; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                bottom: -33px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                left: -455px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                width: 340px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                img { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    width: 340px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    opacity: 0.6; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         .warning-search { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             position: absolute; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             right: 400px; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -272,7 +305,7 @@ const toggleBox = (index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             width: 35px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             height: 17px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                             margin: 0 auto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                            background: url("@/assets/images/warningHome/triangle.png") no-repeat center center /cover; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            background: url("@/assets/images/warningHome/triangle.png") no-repeat center center / cover; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     .data-value { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -316,6 +349,17 @@ const toggleBox = (index) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </style> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <style lang="less"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+.ol-scale-line { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    left: auto; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    right: 430px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    bottom: 38px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    .ol-scale-line-inner { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        max-width: 80px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        width: 80px !important; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        color: #fff; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        border-color: #fff; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 .focus-farm-select { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     &.el-popper.is-light { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         background: #232323; 
			 |