Prechádzať zdrojové kódy

Merge branch 'master' of http://121.42.8.157:13000/zengminguo/D-MAP

hao lei 1 rok pred
rodič
commit
309d9a2083

+ 5 - 2
src/store/modules/bench/mutations.js

@@ -10,8 +10,11 @@ export default {
       for (let key in benchInfo) {
         bench[key] = benchInfo[key]
       }
-      bench.left = Math.random() * 90 + (i * (Math.random() * 10 + 10)) + 300;
-      bench.top = Math.random() * 80 + (i * (Math.random() * 10 + 10)) + 200;
+      if (!bench.isFixed) {
+        bench.left = Math.random() * 90 + (i * (Math.random() * 10 + 10)) + 300;
+        bench.top = Math.random() * 80 + (i * (Math.random() * 10 + 10)) + 200;
+        bench.isFixed = true;
+      }
 
       bench.status = "ready";
       bench.name = "";

+ 1 - 1
src/views/ordinaryPage/index.vue

@@ -137,7 +137,7 @@
                     class="bmMapItem"
                     :style="{
                       left: item.left - 23 + 'px',
-                      top: item.top - 140 + 'px',
+                      top: item.top - 270 + 'px',
                       scale: item.scale,
                     }"
                     :class="item.status"