wangsisi 10 hodín pred
rodič
commit
b11fe636f1

+ 1 - 1
src/views/old_mini/farm_manage/map/index.js

@@ -67,7 +67,7 @@ class IndexMap {
         });
         let style3 = new Style({
           text: new Text({
-            text: feature.get('farmName'),
+            text: feature.get('farmName') || feature.get('mapInfo'),
             offsetX: 0,
             offsetY: -30,
             font: "bold 12px sans-serif",

+ 1 - 1
src/views/old_mini/user/index.vue

@@ -125,7 +125,7 @@ const getUserList = async () => {
         // 地图使用筛选后的数据
         const wktArr = ["POINT (113.10930176274309 22.574540836684672)", "POINT (113.407189 23.032344)"]
         data.map((item, index) => {
-            item.point = wktArr[Math.floor(Math.random() * wktArr.length)]
+            item.farmPoint = wktArr[Math.floor(Math.random() * wktArr.length)]
         });
         indexMap.initData(data, 'name');
         // 清空现有的子项