更新实时轨迹11
parent
765371b9f3
commit
e0c1e4dbc9
|
@ -47,9 +47,8 @@ export default {
|
|||
this.recordCar.endTime = recordCar.endTime
|
||||
historyMap(this.recordCar).then(res=>{
|
||||
console.log(res)
|
||||
// this.carMsg = res.data
|
||||
this.carMsg = res.data
|
||||
res.data.forEach(item=>{
|
||||
this.carMsg = item
|
||||
this.arr.push(item.longitude.replace(/"/g, "") +","+item.latitude.replace(/"/g, ""))
|
||||
this.lineArr = this.arr.map(item => item.trim().replace(/'/g, '').split(','))
|
||||
console.log(this.lineArr)
|
||||
|
|
Loading…
Reference in New Issue