更新历史轨迹
parent
9eb8f66477
commit
66a6337e73
|
@ -57,7 +57,8 @@ export default {
|
||||||
this.recordCar.startTime = recordCar.startTime
|
this.recordCar.startTime = recordCar.startTime
|
||||||
this.recordCar.endTime = recordCar.endTime
|
this.recordCar.endTime = recordCar.endTime
|
||||||
historyMap(this.recordCar).then(res=>{
|
historyMap(this.recordCar).then(res=>{
|
||||||
this.recordCarList = res; // 将获取到的对象集合存储到data中
|
this.recordCarList = res.data; // 将获取到的对象集合存储到data中
|
||||||
|
console.log(this.recordCarList)
|
||||||
this.startDisplay(); // 开始展示
|
this.startDisplay(); // 开始展示
|
||||||
let coordinates = res.data.map(obj => [
|
let coordinates = res.data.map(obj => [
|
||||||
parseFloat(obj.longitude.replace(/"/g, "")),
|
parseFloat(obj.longitude.replace(/"/g, "")),
|
||||||
|
|
Loading…
Reference in New Issue