This commit is contained in:
Taric Xin
2022-04-13 10:12:56 +08:00
parent 3cd8a56f49
commit 3d576487d4
8 changed files with 29 additions and 29 deletions

View File

@ -38,8 +38,8 @@ export class OneCarOrderViewtrackComponent implements OnInit {
mapList:any[] = []; //地图点位数据组
addressItems: any[] = []; //打点地址数据组
logColumns2: STColumn[] = [
{ title: '时间', index: 'vinOutTime' },
{ title: '地点', index: 'cityName' },
{ title: '时间', index: 'parkBte' },
{ title: '地点', index: 'parkAdr' },
];
constructor(
private modalRef: NzModalRef,
@ -70,10 +70,10 @@ export class OneCarOrderViewtrackComponent implements OnInit {
});
});
this.mapList = list;
this.addressItems = res.cityArray;
this.addressItems = res.parkAdr;
if(this.addressItems && this.addressItems.length > 0){
this.addressItems.forEach(item => {
item.vinOutTime = this.getLocalTime(item.vinOutTime);
item.parkBte = this.getLocalTime(item.parkBte);
});
}
}