@@ -326,7 +326,8 @@ export default defineComponent({ | |||
// 两秒钟获取一次数据 | |||
data.socket = setInterval(() => { | |||
getTrackData().then(({ trackList }) => { | |||
const obj = trackList[0] | |||
const len = trackList.length | |||
const obj = trackList[len - 1] | |||
const coordinate = fromLonLat([obj?.lng, obj?.lat]) | |||
if (data.trackInfo) { | |||
data.trackInfo.route.appendCoordinate(coordinate) |
@@ -159,11 +159,11 @@ const data = reactive({ | |||
}, | |||
{ | |||
title: '工单生成状态', | |||
key: 'status', | |||
key: 'wordOrderStatus', | |||
align: 'center', | |||
render(row) { | |||
return h(TableTags, { | |||
data: row.status, | |||
data: row.wordOrderStatus, | |||
filters: ORDER_STATUS | |||
}) | |||
} |