彭宇 %!s(int64=2) %!d(string=hai) anos
pai
achega
efb392e7a1
Modificáronse 2 ficheiros con 18 adicións e 16 borrados
  1. 11 5
      src/components/vBottomMenu.vue
  2. 7 11
      src/views/forest.vue

+ 11 - 5
src/components/vBottomMenu.vue

@@ -6,8 +6,17 @@
 				<div v-if="showChild && fastMenu.click == 'layerSwitching'" class="nav-child">
 					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiedong_lunkuo')" class="nav-child-btn">铁东</el-button>
 					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo')" class="nav-child-btn">铁西</el-button>
-					<el-button type="danger" icon="el-icon-close" style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"
-						@click.stop="closeChild"></el-button>
+					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo')" class="nav-child-btn">铁西</el-button>
+					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo')" class="nav-child-btn">铁西</el-button>
+					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo')" class="nav-child-btn">铁西</el-button>
+					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo')" class="nav-child-btn">铁西</el-button>
+					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo')" class="nav-child-btn">铁西</el-button>
+					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo')" class="nav-child-btn">铁西</el-button>
+					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo')" class="nav-child-btn">铁西</el-button>
+					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo')" class="nav-child-btn">铁西</el-button>
+					<el-button type="primary" @click.stop="choseLayerSwitching('http://121.37.83.100:8090/iserver/services/map-sipingshi/rest/maps/tiexi_lunkuo')" class="nav-child-btn">铁西</el-button>
+<!--					<el-button type="danger" icon="el-icon-close" style="position: absolute;right: 0;top: 0;width: 1rem;height: 1rem;padding:0;"-->
+<!--						@click.stop="closeChild"></el-button>-->
 				</div>
 			</a>
 
@@ -56,9 +65,6 @@
       choseLayerSwitching(url) {
         window.choseLayerSwitching(url);
 			},
-			closeChild() {
-				window.closeChild()
-			}
 		}
 	}
 </script>

+ 7 - 11
src/views/forest.vue

@@ -490,7 +490,6 @@
 
       /** ----------------------------------底部按钮公用组件开始------------------------------------- */
       window.showDialog=this.showDialog
-	    window.closeChild=this.closeChild
 	    window.choseLayerSwitching=this.choseLayerSwitching
       /** ----------------------------------底部按钮公用组件结束------------------------------------- */
     },
@@ -715,23 +714,20 @@
       showDialog(click) {
         if (click == "eventLocation") {
           this.$refs.eventLocation.showEventLocation()
-          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,
-              this.$refs.bottomMenu.showChild = false
+            this.$refs.supermap.isEditableLayers = false
           }
         } else if (click == "layerSwitching") {
-          this.$refs.bottomMenu.showChild = true
+          if (!this.$refs.bottomMenu.showChild) {
+            this.$refs.bottomMenu.showChild = true
+          } else {
+              this.$refs.bottomMenu.showChild = false
+          }
         }
       },
-      //点击关闭选择图层
-      closeChild() {
-        this.$refs.bottomMenu.showChild = false
-      },
       //选择图层
       choseLayerSwitching(url) {
         this.$refs.supermap.layerSwitching(url, true);