whao 2 years ago
parent
commit
f7b78a1b7a
1 changed files with 48 additions and 35 deletions
  1. 48 35
      src/views/forest.vue

+ 48 - 35
src/views/forest.vue

@@ -824,44 +824,57 @@ export default {
     },
     /** ----------------------------------weosocket结束------------------------------------- */
 
-    /** ----------------------------------底部按钮公用组件开始------------------------------------- */
-    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 {
+   /** ----------------------------------底部按钮公用组件开始------------------------------------- */
+      showDialog(click) {
+        if (click == 'eventLocation') {
+          this.$refs.eventLocation.showEventLocation()
           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
+       		this.$refs.bottomMenu.showBanChild = false
+   			this.$refs.bottomMenu.showChangChild = false
+        } else if (click == 'editableLayers') {
+          this.$refs.bottomMenu.showChild = false
+       		this.$refs.bottomMenu.showBanChild = false
+   			this.$refs.bottomMenu.showChangChild = 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
+   			this.$refs.bottomMenu.showChangChild = 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
+   			this.$refs.bottomMenu.showChangChild = false
+        }  else if (click == 'forestban') {
+       		this.$refs.bottomMenu.showBanChild = true
+          this.$refs.supermap.isEditableLayers = false
+       		this.$refs.bottomMenu.showChild = false
+   			this.$refs.bottomMenu.showChangChild = false
+          if (!this.$refs.bottomMenu.showBanChild) {
+            this.$refs.bottomMenu.showBanChild = false
+          } 
+        }else if (click == 'forestchang') {
+       		this.$refs.bottomMenu.showChangChild = true
+          this.$refs.supermap.isEditableLayers = false
+   			this.$refs.bottomMenu.showBanChild = false
+       		this.$refs.bottomMenu.showChild = false
+          if (!this.$refs.bottomMenu.showChangChild) {
+            this.$refs.bottomMenu.showChangChild = 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)