whao 2 年之前
父節點
當前提交
dc2d80c754
共有 1 個文件被更改,包括 38 次插入26 次删除
  1. 38 26
      src/views/forest.vue

+ 38 - 26
src/views/forest.vue

@@ -845,32 +845,44 @@ export default {
     },
     /** ----------------------------------weosocket结束------------------------------------- */
 
-    /** ----------------------------------底部按钮公用组件开始------------------------------------- */
-    showDialog(click) {
-      if (click == 'eventLocation') {
-        this.$refs.eventLocation.showEventLocation()
-        this.$refs.supermap.isEditableLayers = false
-        this.$refs.bottomMenu.showChild = false
-      } else if (click == 'editableLayers') {
-        this.$refs.bottomMenu.showChild = false
-        if (!this.$refs.supermap.isEditableLayers) {
-          this.$refs.supermap.isEditableLayers = true
-        } else {
-          this.$refs.supermap.isEditableLayers = false
-        }
-      } else if (click == 'layerSwitching') {
-        this.$refs.supermap.isEditableLayers = false
-        if (!this.$refs.bottomMenu.showChild) {
-          this.$refs.bottomMenu.showChild = true
-        } else {
-          this.$refs.bottomMenu.showChild = false
-        }
-      } else if (click == 'TVWall') {
-        this.$refs.TVWall.showTVWall()
-        this.$refs.supermap.isEditableLayers = false
-        this.$refs.bottomMenu.showChild = false
-      }
-    },
+     /** ----------------------------------底部按钮公用组件开始------------------------------------- */
+        showDialog(click) {
+          if (click == 'eventLocation') {
+            this.$refs.eventLocation.showEventLocation()
+            this.$refs.supermap.isEditableLayers = false
+            this.$refs.bottomMenu.showChild = false
+    		this.$refs.bottomMenu.showBanChild = false
+          } else if (click == 'editableLayers') {
+            this.$refs.bottomMenu.showChild = false
+    		this.$refs.bottomMenu.showBanChild = false
+            if (!this.$refs.supermap.isEditableLayers) {
+              this.$refs.supermap.isEditableLayers = true
+            } else {
+              this.$refs.supermap.isEditableLayers = false
+            }
+          } else if (click == 'layerSwitching') {
+            this.$refs.supermap.isEditableLayers = false
+    		this.$refs.bottomMenu.showBanChild = false
+            if (!this.$refs.bottomMenu.showChild) {
+              this.$refs.bottomMenu.showChild = true
+            } else {
+              this.$refs.bottomMenu.showChild = false
+            }
+          } else if (click == 'TVWall') {
+            this.$refs.TVWall.showTVWall()
+            this.$refs.supermap.isEditableLayers = false
+            this.$refs.bottomMenu.showChild = false
+    		this.$refs.bottomMenu.showBanChild = false
+          }  else if (click == 'forestban') {
+    		    this.$refs.bottomMenu.showBanChild = true
+            this.$refs.supermap.isEditableLayers = false
+    		this.$refs.bottomMenu.showChild = false
+            if (!this.$refs.bottomMenu.showBanChild) {
+              this.$refs.bottomMenu.showBanChild = false
+            } 
+          }
+    			
+        },
     //选择图层
     choseLayerSwitching(url) {
       this.$refs.supermap.layerSwitching(url, true)