Переглянути джерело

底部公共按钮有的页面未加载

彭宇 2 роки тому
батько
коміт
6ff41075f8
1 змінених файлів з 27 додано та 0 видалено
  1. 27 0
      src/views/datacenter.vue

+ 27 - 0
src/views/datacenter.vue

@@ -139,8 +139,12 @@ export default {
         this.$refs.eventLocation.showEventLocation()
         this.$refs.supermap.isEditableLayers = false
         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 {
@@ -148,6 +152,8 @@ export default {
         }
       } 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 {
@@ -157,7 +163,28 @@ export default {
         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.supermap.isEditableLayers = false
+        this.$refs.bottomMenu.showChild = false
+        this.$refs.bottomMenu.showChangChild = false
+        if (!this.$refs.bottomMenu.showBanChild) {
+          this.$refs.bottomMenu.showBanChild = true
+        } else {
+          this.$refs.bottomMenu.showBanChild = false
+        }
+      } else if (click == 'forestchang') {
+        this.$refs.supermap.isEditableLayers = false
+        this.$refs.bottomMenu.showBanChild = false
+        this.$refs.bottomMenu.showChild = false
+        if (!this.$refs.bottomMenu.showChangChild) {
+          this.$refs.bottomMenu.showChangChild = true
+        } else {
+          this.$refs.bottomMenu.showChangChild = false
+        }
       }
+
     },
     //选择图层
     choseLayerSwitching(url, isClear) {