Jelajahi Sumber

底部公用组件

彭宇 2 tahun lalu
induk
melakukan
509419e921

+ 7 - 3
src/views/afforestation.vue

@@ -95,15 +95,19 @@
 		methods: {
       /** ----------------------------------底部按钮公用组件开始------------------------------------- */
       showDialog(click) {
-        if (click == "eventLocation") {
+        if (click == 'eventLocation') {
           this.$refs.eventLocation.showEventLocation()
-        } else if (click == "editableLayers") {
+          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") {
+        } else if (click == 'layerSwitching') {
+          this.$refs.supermap.isEditableLayers = false
           if (!this.$refs.bottomMenu.showChild) {
             this.$refs.bottomMenu.showChild = true
           } else {

+ 7 - 3
src/views/animal.vue

@@ -166,15 +166,19 @@
     methods: {
       /** ----------------------------------底部按钮公用组件开始------------------------------------- */
       showDialog(click) {
-        if (click == "eventLocation") {
+        if (click == 'eventLocation') {
           this.$refs.eventLocation.showEventLocation()
-        } else if (click == "editableLayers") {
+          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") {
+        } else if (click == 'layerSwitching') {
+          this.$refs.supermap.isEditableLayers = false
           if (!this.$refs.bottomMenu.showChild) {
             this.$refs.bottomMenu.showChild = true
           } else {

+ 13 - 8
src/views/datacenter.vue

@@ -121,19 +121,24 @@
 		methods: {
       /** ----------------------------------底部按钮公用组件开始------------------------------------- */
       showDialog(click) {
-        if (click == "eventLocation") {
+        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
-        } else if (click == "editableLayers") {
           if (!this.$refs.supermap.isEditableLayers) {
-            this.$refs.supermap.isEditableLayers = true,
-              this.$refs.bottomMenu.showChild = false
+            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.supermap.isEditableLayers = false,
-              this.$refs.bottomMenu.showChild = false
+            this.$refs.bottomMenu.showChild = false
           }
-        } else if (click == "layerSwitching") {
-          this.$refs.bottomMenu.showChild = true
         }
       },
       //点击关闭选择图层

+ 7 - 3
src/views/disaster.vue

@@ -451,15 +451,19 @@
     methods: {
       /** ----------------------------------底部按钮公用组件开始------------------------------------- */
       showDialog(click) {
-        if (click == "eventLocation") {
+        if (click == 'eventLocation') {
           this.$refs.eventLocation.showEventLocation()
-        } else if (click == "editableLayers") {
+          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") {
+        } else if (click == 'layerSwitching') {
+          this.$refs.supermap.isEditableLayers = false
           if (!this.$refs.bottomMenu.showChild) {
             this.$refs.bottomMenu.showChild = true
           } else {

+ 7 - 3
src/views/event.vue

@@ -572,15 +572,19 @@
     methods: {
       /** ----------------------------------底部按钮公用组件开始------------------------------------- */
       showDialog(click) {
-        if (click == "eventLocation") {
+        if (click == 'eventLocation') {
           this.$refs.eventLocation.showEventLocation()
-        } else if (click == "editableLayers") {
+          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") {
+        } else if (click == 'layerSwitching') {
+          this.$refs.supermap.isEditableLayers = false
           if (!this.$refs.bottomMenu.showChild) {
             this.$refs.bottomMenu.showChild = true
           } else {

+ 21 - 17
src/views/forest.vue

@@ -711,23 +711,27 @@
       /** ----------------------------------weosocket结束------------------------------------- */
 
       /** ----------------------------------底部按钮公用组件开始------------------------------------- */
-     showDialog(click) {
-       if (click == "eventLocation") {
-         this.$refs.eventLocation.showEventLocation()
-       } else if (click == "editableLayers") {
-         if (!this.$refs.supermap.isEditableLayers) {
-           this.$refs.supermap.isEditableLayers = true
-         } else {
-           this.$refs.supermap.isEditableLayers = false
-         }
-       } else if (click == "layerSwitching") {
-         if (!this.$refs.bottomMenu.showChild) {
-           this.$refs.bottomMenu.showChild = true
-         } else {
-           this.$refs.bottomMenu.showChild = false
-         }
-       }
-     },
+      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
+          }
+        }
+      },
       //选择图层
       choseLayerSwitching(url) {
         this.$refs.supermap.layerSwitching(url, true);

+ 4 - 0
src/views/leader.vue

@@ -135,13 +135,17 @@
       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 {

+ 13 - 8
src/views/monitor.vue

@@ -163,19 +163,24 @@
     methods: {
       /** ----------------------------------底部按钮公用组件开始------------------------------------- */
       showDialog(click) {
-        if (click == "eventLocation") {
+        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
-        } else if (click == "editableLayers") {
           if (!this.$refs.supermap.isEditableLayers) {
-            this.$refs.supermap.isEditableLayers = true,
-              this.$refs.bottomMenu.showChild = false
+            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.supermap.isEditableLayers = false,
-              this.$refs.bottomMenu.showChild = false
+            this.$refs.bottomMenu.showChild = false
           }
-        } else if (click == "layerSwitching") {
-          this.$refs.bottomMenu.showChild = true
         }
       },
       //点击关闭选择图层