Browse Source

1

Signed-off-by: liubaiyan <632697560@qq.com>
liubaiyan 3 năm trước cách đây
mục cha
commit
dbecc186d7
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/views/attendanceStatistics/dailyRecord.vue

+ 3 - 3
src/views/attendanceStatistics/dailyRecord.vue

@@ -347,7 +347,7 @@ export default {
           map.setCenter(new AMap.LngLat(res.data.coordPoint.log, res.data.coordPoint.lat))
           map.setZoom(13)
           map.add(new AMap.Polyline({
-            path: res.data.coordPointList.map(item => {
+            path: res.data.guijicoord.map(item => {
               return new AMap.LngLat(item.log, item.lat)
             }),
             strokeWeight: 6,
@@ -356,14 +356,14 @@ export default {
             lineCap: 'round',
             showDir: true
           }))
-          if (res.data.coordPointList.length) {
+          if (res.data.guijicoord.length) {
             map.add(new AMap.Marker({
               content: '<i class="el-icon-location-information" style="font-size: 32px; color: #67C23A;"></i>',
               position: [res.data.coordPointList[0].log, res.data.coordPointList[0].lat],
               offset: new AMap.Pixel(-16, -30)
             }))
           }
-          if (res.data.coordPointList.length >= 2) {
+          if (res.data.guijicoord.length >= 2) {
             map.add(new AMap.Marker({
               content: '<i class="el-icon-location-information" style="font-size: 32px; color: #F56C6C;"></i>',
               position: [res.data.coordPointList[res.data.coordPointList.length - 1].log, res.data.coordPointList[res.data.coordPointList.length - 1].lat],