소스 검색

找图找数 打开永久基本农田图层

liutao 2 달 전
부모
커밋
abc4327fd2
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      web_ui/src/views/znzt-land/AiZtzsDetail.vue

+ 6 - 2
web_ui/src/views/znzt-land/AiZtzsDetail.vue

@@ -404,7 +404,7 @@ export default {
     this.$nextTick(() => {
       this.activeIndex = 0;
       this.initMap();
-
+      this.openYjjbnt();
       // this.showResult = true;
       // this.showQuery = true;
       // this.xgdk = [
@@ -1220,7 +1220,11 @@ export default {
       }
     },
     openYjjbnt() {
-      
+      let yjjbntLayer =  this.layers[5].layers[0];
+      if(!yjjbntLayer.checked) {
+        yjjbntLayer.checked = true;
+        this.switchMapLayer(yjjbntLayer);
+      }
     },
     //所有地块仿百度地图绘制
     showXgdkCenterPoint() {