温红权 3 жил өмнө
parent
commit
986f4a3c30

+ 7 - 7
ruoyi-ui/src/components/map/index.vue

@@ -5,9 +5,9 @@
    <div class="shipDiv" v-show="deviceShow">
       <div class="shipTitle">
         <span style="float:left">{{deviceName}}</span>
-        <i class="el-icon-close" style="font-size:9rem;margin-top:2rem;float:right" @click="shipShow=false"></i>
+        <i class="el-icon-close" style="font-size:9rem;margin-top:2rem;float:right" @click="deviceShow=false"></i>
       </div>
-      <div style="padding—left:10rem" class="shipContent">    
+      <div style="padding—left:10rem" class="shipContent">
             <el-row :gutter="3" style="margin-top:3rem">
               <el-col :span="4">
                 <div class="grid-content bg-purple contentFont" style="float:right;color:#959595">设备类型:</div>
@@ -339,8 +339,8 @@ export default {
         }
     });
 
-     this.addpoint();
-     this.addline();
+    //  this.addpoint();
+    //  this.addline();
   },
   methods: {
     //[[1111,1111]]
@@ -422,7 +422,7 @@ export default {
         );
 
       this.map = map;
-      map.getView().setCenter(this.transpoints([[118.78, 32.04]],0)[0]);
+      map.getView().setCenter(this.transpoints([[118.642876,31.970445]],0)[0]);
       map.getView().setZoom(13);
     },
     initprod: function() {
@@ -504,7 +504,7 @@ export default {
       });
       map.getView().fit([75.0, 20.0, 135.0, 50.0], map.getSize());
       this.map = map;
-       map.getView().setCenter(this.transpoints([[118.78, 32.04]],0)[0]);
+       map.getView().setCenter(this.transpoints([[118.642876,31.970445]],0)[0]);
        map.getView().setZoom(13);
     },
 
@@ -550,7 +550,7 @@ export default {
           image: new Icon({
             color: "#eee",
             crossOrigin: "anonymous",
-            src: require("../../assets/images/icon/"+img) //本地的样式                              
+            src: require("../../assets/images/icon/"+img) //本地的样式
           })
         })
       ); //这里是样式