Browse Source

地图界面调整

skcj 1 year ago
parent
commit
adf0fb52e5
1 changed files with 9 additions and 4 deletions
  1. 9 4
      ruoyi-web/src/views/yldt/index.vue

+ 9 - 4
ruoyi-web/src/views/yldt/index.vue

@@ -64,7 +64,7 @@
       <div class="jg_button">
 
         <div  v-for="(ico,index) in jgico" :key="ico.label" :label="ico.label">
-          <img :src="ico.src"   :title="ico.label" sel="0" @dblclick="onflclick($event,index)" style="width: 46px;height: 46px;margin-right: 5px;cursor:pointer">&nbsp;&nbsp;&nbsp;
+          <img :src="ico.src"   :title="ico.label" sel="0" @click="onflclick($event,index)" style="width: 46px;height: 46px;margin-right: 5px;cursor:pointer">&nbsp;&nbsp;&nbsp;
         </div>
 
         <!--				<el-button-group type="vertical" v-model="buttonGroup1">
@@ -412,7 +412,7 @@ function onflclick(e,idx)
 
  // }
 
-
+  isShow.value = true;
   //地图被销毁就不用添加点坐标了
   if (!isDestroy.value) {
 
@@ -935,7 +935,12 @@ const initMap = () => {
             })
           })
 
-          map.value.addControl(new AMap.Scale()) // 比例尺
+          map.value.addControl(new AMap.Scale({
+            position:{
+              right:'80px',
+              bottom:'20px'
+            }
+          })) // 比例尺
           // map.value.addControl(new AMap.OverView());// 鹰眼
           //   map.value.addControl(new AMap.HawkEye());//   鹰眼 2.0
           map.value.addControl(new AMap.MapType()) //  图层切换
@@ -1168,7 +1173,7 @@ onUnmounted(() => {
 .jg_button {
   position: absolute;
   bottom: 15px;
-  left: 150px;
+  left: 30px;
 
   /*border: red solid 1px;*/
   z-index: 1999;