| 
					
				 | 
			
			
				@@ -3,7 +3,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @Author: wangcc 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @Date: 2022-10-19 09:32:46 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @LastEditors: wangcc 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- * @LastEditTime: 2022-11-01 14:41:59 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ * @LastEditTime: 2022-11-01 17:56:32 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @FilePath: \castgroup_bigscreen\src\components\amapTow.vue 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  * @Copyright: Copyright (c) 2016~2022 by wangcc, All Rights Reserved.  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 --> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -112,6 +112,7 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 加载小班边界 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // this.getSmallClass(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.parentId = val; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (this.$store.state.addr.mapLevel == 'street') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.parentId = val.substring(0, 6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (this.map) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -209,6 +210,10 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     '$store.state.addr.mapLevel': { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       handler(val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        console.log(val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        if (val == 'province') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.changeSelectDistrict({}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (val === 'street') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           this.getSmallClass(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -220,7 +225,12 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       handler: function (val, oldVal) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let _this = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (val) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          console.log(val); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (val.longitude && val.latitude && !val.name) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.map.remove(this.polygon); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if (_this.smallMarkers) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              _this.map.remove(_this.smallMarkers); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let lanLatArr = [val.longitude, val.latitude]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             let imgList = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             if (val.imageList.length > 0) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -326,7 +336,58 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               offset: new AMap.Pixel(-230, -160), //设置文本标注偏移量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               content: smallLabel //设置文本标注内容 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            this.smallMarker.on('click', (e) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.smallMarker.setLabel({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                direction: 'right', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                offset: new AMap.Pixel(-230, -160), //设置文本标注偏移量 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                content: smallLabel //设置文本标注内容 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.smallMarkers.push(_this.smallMarker); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            console.log(this.$store.state.addr.mapLevel); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            if ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$store.state.addr.mapLevel == 'city' || 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.$store.state.addr.mapLevel == 'province' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              if (val.countyCode) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                // this.switch2AreaNode(val.countyCode.substring(0, 6)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                let selectCity = ''; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                switch (val.cityName) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  case '黔西南州': 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    selectCity = '黔西南布依族苗族自治州'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  case '黔东南州': 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    selectCity = '黔东南苗族侗族自治州'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  case '黔南州': 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    selectCity = '黔南布依族苗族自治州'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    break; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                this.$store.dispatch('searchArea', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  parentId: val.cityCode.substring(0, 6), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  name: selectCity, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  mapLevel: 'city' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (val.cityCode) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.changeSelectCity({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    value: val.cityCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    label: selectCity, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    areaId: val.cityId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    prop: '2' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (val.countyCode) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  this.changeSelectDistrict({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    value: val.countyCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    label: val.countyName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    areaId: val.countyId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    prop: '2' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                  }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              this.switch2AreaNode(val.countyCode.substring(0, 6)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } else if (val.name == false && this.smallMarker) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.map.on('rightclick', function (e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               _this.map.remove(_this.smallMarkers); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -600,31 +661,31 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            zoom > '9' && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            zoom < '9.5' && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$store.state.addr.mapLevel == 'district' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            if (this.selectData.value) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              let districtCode = this.selectData.value.substring(0, 6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              this.$store.dispatch('searchArea', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                parentId: districtCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                name: this.selectData.label, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                mapLevel: 'city' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          if ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            zoom > '7.6' && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            zoom < '7.9' && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$store.state.addr.mapLevel == 'city' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            this.$store.dispatch('searchArea', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              parentId: '520000', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              name: '贵州省', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              mapLevel: 'province' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-          } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // if ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   zoom > '9' && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   zoom < '9.5' && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   this.$store.state.addr.mapLevel == 'district' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   if (this.selectData.value) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //     let districtCode = this.selectData.value.substring(0, 6); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //     this.$store.dispatch('searchArea', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //       parentId: districtCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //       name: this.selectData.label, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //       mapLevel: 'city' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // if ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   zoom > '7.6' && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   zoom < '7.9' && 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   this.$store.state.addr.mapLevel == 'city' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // ) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   this.$store.dispatch('searchArea', { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //     parentId: '520000', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //     name: '贵州省', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //     mapLevel: 'province' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          //   }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -695,13 +756,15 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.changeSelectCity({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               value: valCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               label: props.name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              areaId: areaId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              areaId: areaId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              prop: '1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } else if (props.level == 'district') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             this.changeSelectDistrict({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               value: valCode, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               label: props.name, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-              areaId: areaId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              areaId: areaId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              prop: '1' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           if (this.projectMarkerArr) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -788,32 +851,35 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         strokeWeight: 2, //线宽 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         fillOpacity: 0 //填充透明度 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      // 绘制父级蒙版 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       let areaPolygon = areaNode.getParentFeature(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let outer = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        new AMap.LngLat(-360, 90, true), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        new AMap.LngLat(-360, -90, true), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        new AMap.LngLat(360, -90, true), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        new AMap.LngLat(360, 90, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let areaPolygonArr = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      areaPolygon.geometry.coordinates.forEach((element) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        areaPolygonArr.push(element[0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let holes = areaPolygonArr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      let pathArray = [outer]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      pathArray.push.apply(pathArray, holes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.polygon = new AMap.Polygon({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        pathL: pathArray, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        map: this.map, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        strokeColor: '#00eeff', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        strokeWeight: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fillColor: '#0c1b05', // 遮罩背景色 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fillOpacity: 0.8, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        height: 10000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.polygon.setPath(pathArray); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        // 绘制父级蒙版 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // if (this.$store.state.addr.mapLevel == 'province' || this.$store.state.addr.mapLevel == 'city') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let outer = [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          new AMap.LngLat(-360, 90, true), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          new AMap.LngLat(-360, -90, true), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          new AMap.LngLat(360, -90, true), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          new AMap.LngLat(360, 90, true) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        ]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let areaPolygonArr = []; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        areaPolygon.geometry.coordinates.forEach((element) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          areaPolygonArr.push(element[0]); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let holes = areaPolygonArr; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let pathArray = [outer]; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        pathArray.push.apply(pathArray, holes); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.polygon = new AMap.Polygon({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          pathL: pathArray, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          map: this.map, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          strokeColor: '#00eeff', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          strokeWeight: 1, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fillColor: '#0c1b05', // 遮罩背景色 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          fillOpacity: 0.8, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          height: 10000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        this.polygon.setPath(pathArray); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      // } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+         
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       if (this.leftPage == 'forest' || this.leftPage == 'treeSpecies') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.getProjectList(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 |