'fixbug'
This commit is contained in:
@ -281,7 +281,7 @@
|
|||||||
<sv label="协议附件">
|
<sv label="协议附件">
|
||||||
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
||||||
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
||||||
<a href="javascript:;" (click)="agreement('2')">补充协议</a>
|
<a target="_blank" [routerLink]="['/agreement']" [queryParams]="{ type: 8 }">补充协议</a>
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
<sv-container col="2" class="mt-md">
|
<sv-container col="2" class="mt-md">
|
||||||
@ -360,6 +360,7 @@
|
|||||||
|
|
||||||
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
||||||
<ng-container *nzModalContent>
|
<ng-container *nzModalContent>
|
||||||
|
<div *ngIf="!imges">暂无附件信息</div>
|
||||||
<app-imagelist [imgList]="imges"></app-imagelist>
|
<app-imagelist [imgList]="imges"></app-imagelist>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-template #nzModalFooter>
|
<ng-template #nzModalFooter>
|
||||||
|
|||||||
@ -908,11 +908,7 @@ export class OrderManagementBulkDetailChangeComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
agreement(value: any) {
|
agreement(value: any) {
|
||||||
if (value === '1') {
|
this.imges = this.i?.agreementFilePath;
|
||||||
this.imges = this.i?.supplementAgreement;
|
|
||||||
} else if (value === '2') {
|
|
||||||
this.imges = this.i?.supplementAgreement;
|
|
||||||
}
|
|
||||||
this.isVisible = true;
|
this.isVisible = true;
|
||||||
}
|
}
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
|
|||||||
@ -162,7 +162,7 @@
|
|||||||
<sv label="协议附件">
|
<sv label="协议附件">
|
||||||
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
||||||
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
||||||
<a href="javascript:;" (click)="agreement('2')">补充协议</a>
|
<a target="_blank" [routerLink]="['/agreement']" [queryParams]="{ type: 8 }">补充协议</a>
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
<sv-container col="2" class="mt-md">
|
<sv-container col="2" class="mt-md">
|
||||||
@ -248,6 +248,7 @@
|
|||||||
|
|
||||||
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
||||||
<ng-container *nzModalContent>
|
<ng-container *nzModalContent>
|
||||||
|
<div *ngIf="!imges">暂无附件信息</div>
|
||||||
<app-imagelist [imgList]="imges"></app-imagelist>
|
<app-imagelist [imgList]="imges"></app-imagelist>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-template #nzModalFooter>
|
<ng-template #nzModalFooter>
|
||||||
|
|||||||
@ -112,11 +112,7 @@ export class OrderManagementBulkeDetailComponent implements OnInit {
|
|||||||
this.router.navigate(['order-management/bulk-detailChange', this.id]);
|
this.router.navigate(['order-management/bulk-detailChange', this.id]);
|
||||||
}
|
}
|
||||||
agreement(value: any) {
|
agreement(value: any) {
|
||||||
if (value === '1') {
|
this.imges = this.i?.agreementFilePath;
|
||||||
this.imges = this.i?.supplementAgreement;
|
|
||||||
} else if (value === '2') {
|
|
||||||
this.imges = this.i?.supplementAgreement;
|
|
||||||
}
|
|
||||||
this.isVisible = true;
|
this.isVisible = true;
|
||||||
}
|
}
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
|
|||||||
@ -256,7 +256,7 @@
|
|||||||
<sv label="协议附件">
|
<sv label="协议附件">
|
||||||
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
||||||
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
||||||
<a href="javascript:;" (click)="agreement('2')">补充协议</a>
|
<a target="_blank" [routerLink]="['/agreement']" [queryParams]="{ type: 8 }">补充协议</a>
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
<sv-container col="2" class="mt-md">
|
<sv-container col="2" class="mt-md">
|
||||||
@ -333,6 +333,7 @@
|
|||||||
</nz-card>
|
</nz-card>
|
||||||
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
||||||
<ng-container *nzModalContent>
|
<ng-container *nzModalContent>
|
||||||
|
<div *ngIf="!imges">暂无附件信息</div>
|
||||||
<app-imagelist [imgList]="imges"></app-imagelist>
|
<app-imagelist [imgList]="imges"></app-imagelist>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-template #nzModalFooter>
|
<ng-template #nzModalFooter>
|
||||||
|
|||||||
@ -855,11 +855,7 @@ export class OrderManagementVehicleDetailChangeComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
agreement(value: any) {
|
agreement(value: any) {
|
||||||
if (value === '1') {
|
this.imges = this.i?.agreementFilePath;
|
||||||
this.imges = this.i?.supplementAgreement;
|
|
||||||
} else if (value === '2') {
|
|
||||||
this.imges = this.i?.supplementAgreement;
|
|
||||||
}
|
|
||||||
this.isVisible = true;
|
this.isVisible = true;
|
||||||
}
|
}
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
|
|||||||
@ -168,7 +168,7 @@
|
|||||||
<sv label="协议附件">
|
<sv label="协议附件">
|
||||||
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
||||||
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
||||||
<a href="javascript:;" (click)="agreement('2')">补充协议</a>
|
<a target="_blank" [routerLink]="['/agreement']" [queryParams]="{ type: 8 }">补充协议</a>
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
<sv-container col="2" class="mt-md">
|
<sv-container col="2" class="mt-md">
|
||||||
@ -230,6 +230,7 @@
|
|||||||
|
|
||||||
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
||||||
<ng-container *nzModalContent>
|
<ng-container *nzModalContent>
|
||||||
|
<div *ngIf="!imges">暂无附件信息</div>
|
||||||
<app-imagelist [imgList]="imges"></app-imagelist>
|
<app-imagelist [imgList]="imges"></app-imagelist>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-template #nzModalFooter>
|
<ng-template #nzModalFooter>
|
||||||
|
|||||||
@ -124,11 +124,7 @@ export class OrderManagementVehicleDetailComponent implements OnInit {
|
|||||||
this.router.navigate(['order-management/vehicle-detailChange', this.id]);
|
this.router.navigate(['order-management/vehicle-detailChange', this.id]);
|
||||||
}
|
}
|
||||||
agreement(value: any) {
|
agreement(value: any) {
|
||||||
if (value === '1') {
|
|
||||||
this.imges = this.i?.agreementFilePath;
|
this.imges = this.i?.agreementFilePath;
|
||||||
} else if (value === '2') {
|
|
||||||
this.imges = this.i?.agreementFilePath;
|
|
||||||
}
|
|
||||||
this.isVisible = true;
|
this.isVisible = true;
|
||||||
}
|
}
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
|
|||||||
@ -182,7 +182,7 @@
|
|||||||
<sv label="协议附件">
|
<sv label="协议附件">
|
||||||
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
||||||
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
||||||
<a href="javascript:;" (click)="agreement('2')">补充协议</a>
|
<a target="_blank" [routerLink]="['/agreement']" [queryParams]="{ type: 8 }">补充协议</a>
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
<sv-container col="2" class="mt-md">
|
<sv-container col="2" class="mt-md">
|
||||||
@ -248,6 +248,7 @@
|
|||||||
|
|
||||||
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
||||||
<ng-container *nzModalContent>
|
<ng-container *nzModalContent>
|
||||||
|
<div *ngIf="!imges">暂无附件信息</div>
|
||||||
<app-imagelist [imgList]="imges"></app-imagelist>
|
<app-imagelist [imgList]="imges"></app-imagelist>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-template #nzModalFooter>
|
<ng-template #nzModalFooter>
|
||||||
|
|||||||
@ -102,17 +102,7 @@ export class WaybillManagementBulkeDetailComponent implements OnInit {
|
|||||||
window.history.go(-1);
|
window.history.go(-1);
|
||||||
}
|
}
|
||||||
agreement(value: any) {
|
agreement(value: any) {
|
||||||
console.log('123')
|
this.imges = this.i?.agreementFilePath
|
||||||
console.log(value)
|
|
||||||
if(value === '1') {
|
|
||||||
this.imges = this.i?.supplementAgreement
|
|
||||||
} else if (value === '2') {
|
|
||||||
this.imges = this.i?.loadingCertificate
|
|
||||||
} else if (value === '3') {
|
|
||||||
this.imges = this.i?.unLoadingCertificate
|
|
||||||
} else if (value === '4') {
|
|
||||||
this.imges = this.i?.receiptCertificate
|
|
||||||
}
|
|
||||||
this.isVisible = true;
|
this.isVisible = true;
|
||||||
}
|
}
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
|
|||||||
@ -164,7 +164,7 @@
|
|||||||
<sv label="协议附件">
|
<sv label="协议附件">
|
||||||
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
<!-- {{i?.supplementaryInformationVO?.stateReceipt?'是':'否'}} -->
|
||||||
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
<a href="javascript:;" (click)="agreement('1')">查看附件</a>
|
||||||
<a href="javascript:;" (click)="agreement('2')">补充协议</a>
|
<a target="_blank" [routerLink]="['/agreement']" [queryParams]="{ type: 8 }">补充协议</a>
|
||||||
</sv>
|
</sv>
|
||||||
</sv-container>
|
</sv-container>
|
||||||
<sv-container col="2" class="mt-md">
|
<sv-container col="2" class="mt-md">
|
||||||
@ -228,6 +228,7 @@
|
|||||||
|
|
||||||
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
<nz-modal [(nzVisible)]="isVisible" [nzFooter]="nzModalFooter" nzTitle="附件信息" (nzOnOk)="handleOK()" (nzOnCancel)="handleCancel()">
|
||||||
<ng-container *nzModalContent>
|
<ng-container *nzModalContent>
|
||||||
|
<div *ngIf="!imges">暂无附件信息</div>
|
||||||
<app-imagelist [imgList]="imges"></app-imagelist>
|
<app-imagelist [imgList]="imges"></app-imagelist>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ng-template #nzModalFooter>
|
<ng-template #nzModalFooter>
|
||||||
|
|||||||
@ -24,12 +24,11 @@ import { WaybillManagementServe } from '../../services/waybill-management.servic
|
|||||||
styleUrls: ['./vehicle-detail.component.less']
|
styleUrls: ['./vehicle-detail.component.less']
|
||||||
})
|
})
|
||||||
export class WaybillManagementVehicleDetailComponent implements OnInit, OnDestroy {
|
export class WaybillManagementVehicleDetailComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
id = this.route.snapshot.params.id;
|
id = this.route.snapshot.params.id;
|
||||||
MapList: any[]=[];
|
MapList: any[] = [];
|
||||||
trajectory = 'car';
|
trajectory = 'car';
|
||||||
mapList:any[] = []; //地图点位数据组
|
mapList: any[] = []; //地图点位数据组
|
||||||
addressItems:any[] = []; //打点地址数据组
|
addressItems: any[] = []; //打点地址数据组
|
||||||
i: any;
|
i: any;
|
||||||
totalObj: any;
|
totalObj: any;
|
||||||
attObj: any;
|
attObj: any;
|
||||||
@ -50,7 +49,7 @@ export class WaybillManagementVehicleDetailComponent implements OnInit, OnDestro
|
|||||||
{
|
{
|
||||||
title: '支付状态',
|
title: '支付状态',
|
||||||
className: 'text-center',
|
className: 'text-center',
|
||||||
index: 'paymentStatusLabel',
|
index: 'paymentStatusLabel'
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -60,19 +59,16 @@ export class WaybillManagementVehicleDetailComponent implements OnInit, OnDestro
|
|||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private msgSrv: NzMessageService,
|
private msgSrv: NzMessageService,
|
||||||
private service: WaybillManagementServe,
|
private service: WaybillManagementServe,
|
||||||
private modal: NzModalService,
|
private modal: NzModalService
|
||||||
) {
|
) {}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
this.subscribeScoll.unsubscribe();
|
this.subscribeScoll.unsubscribe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
this.initData()
|
this.initData();
|
||||||
this.getTrajectory()
|
this.getTrajectory();
|
||||||
this.subscribeScoll = fromEvent(window, 'scroll').subscribe(event => {
|
this.subscribeScoll = fromEvent(window, 'scroll').subscribe(event => {
|
||||||
this.scrollTop = document.documentElement.scrollTop;
|
this.scrollTop = document.documentElement.scrollTop;
|
||||||
});
|
});
|
||||||
@ -80,48 +76,38 @@ export class WaybillManagementVehicleDetailComponent implements OnInit, OnDestro
|
|||||||
initData() {
|
initData() {
|
||||||
const params = {
|
const params = {
|
||||||
id: this.id
|
id: this.id
|
||||||
}
|
};
|
||||||
this.service.request(this.service.$api_get_getWholeDetail, params).subscribe((res) => {
|
this.service.request(this.service.$api_get_getWholeDetail, params).subscribe(res => {
|
||||||
console.log(res)
|
console.log(res);
|
||||||
this.unLoadingPlaceVOList.push(...res.loadingPlace)
|
this.unLoadingPlaceVOList.push(...res.loadingPlace);
|
||||||
this.unLoadingPlaceVOList.push(...res.dischargePlace)
|
this.unLoadingPlaceVOList.push(...res.dischargePlace);
|
||||||
console.log(this.unLoadingPlaceVOList)
|
console.log(this.unLoadingPlaceVOList);
|
||||||
this.i = res;
|
this.i = res;
|
||||||
this.billExpenses = this.i?.billExpenseDetailVOList?.filter(
|
this.billExpenses = this.i?.billExpenseDetailVOList?.filter(
|
||||||
(data: any) => data.costCode === 'PRE' || data.costCode === 'RECE' || data.costCode === 'BACK'
|
(data: any) => data.costCode === 'PRE' || data.costCode === 'RECE' || data.costCode === 'BACK'
|
||||||
);
|
);
|
||||||
this.i.scheduleVOList = this.i?.scheduleVOList?.filter((data: any) => data.displayStatus !== 'HIDE');
|
this.i.scheduleVOList = this.i?.scheduleVOList?.filter((data: any) => data.displayStatus !== 'HIDE');
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
goBack() {
|
goBack() {
|
||||||
window.history.go(-1);
|
window.history.go(-1);
|
||||||
}
|
}
|
||||||
agreement(value: any) {
|
agreement(value: any) {
|
||||||
console.log('123')
|
this.imges = this.i?.agreementFilePath;
|
||||||
console.log(value)
|
|
||||||
if(value === '1') {
|
|
||||||
this.imges = this.i?.supplementAgreement
|
|
||||||
} else if (value === '2') {
|
|
||||||
this.imges = this.i?.loadingCertificate
|
|
||||||
} else if (value === '3') {
|
|
||||||
this.imges = this.i?.unLoadingCertificate
|
|
||||||
} else if (value === '4') {
|
|
||||||
this.imges = this.i?.receiptCertificate
|
|
||||||
}
|
|
||||||
this.isVisible = true;
|
this.isVisible = true;
|
||||||
}
|
}
|
||||||
handleCancel() {
|
handleCancel() {
|
||||||
this.isVisible = false
|
this.isVisible = false;
|
||||||
}
|
}
|
||||||
handleOK() {
|
handleOK() {
|
||||||
this.isVisible = false
|
this.isVisible = false;
|
||||||
}
|
}
|
||||||
goDistance(elf: NzCardComponent) {
|
goDistance(elf: NzCardComponent) {
|
||||||
if (elf) {
|
if (elf) {
|
||||||
elf['elementRef'].nativeElement.scrollIntoView({ behavior: 'smooth', block: 'start', inline: 'start' });
|
elf['elementRef'].nativeElement.scrollIntoView({ behavior: 'smooth', block: 'start', inline: 'start' });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// *确认发车
|
// *确认发车
|
||||||
|
|
||||||
sureDepart(item: any) {
|
sureDepart(item: any) {
|
||||||
@ -136,8 +122,7 @@ goDistance(elf: NzCardComponent) {
|
|||||||
nzFooter: null
|
nzFooter: null
|
||||||
});
|
});
|
||||||
modalRef.afterClose.subscribe((result: any) => {
|
modalRef.afterClose.subscribe((result: any) => {
|
||||||
this.initData()
|
this.initData();
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 确认到车
|
// 确认到车
|
||||||
@ -153,17 +138,16 @@ goDistance(elf: NzCardComponent) {
|
|||||||
nzFooter: null
|
nzFooter: null
|
||||||
});
|
});
|
||||||
modalRef.afterClose.subscribe((result: any) => {
|
modalRef.afterClose.subscribe((result: any) => {
|
||||||
this.initData()
|
this.initData();
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取车辆轨迹
|
// 获取车辆轨迹
|
||||||
getTrajectory(){
|
getTrajectory() {
|
||||||
this.service.request(this.service.$api_get_getTrajectory, { id: this.id }).subscribe(res => {
|
this.service.request(this.service.$api_get_getTrajectory, { id: this.id }).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const points = res.trackArray;
|
const points = res.trackArray;
|
||||||
let list :any[] = [];
|
let list: any[] = [];
|
||||||
points?.forEach((item: any) => {
|
points?.forEach((item: any) => {
|
||||||
list.push({
|
list.push({
|
||||||
name: item.hgt,
|
name: item.hgt,
|
||||||
@ -172,7 +156,7 @@ goDistance(elf: NzCardComponent) {
|
|||||||
});
|
});
|
||||||
this.mapList = list;
|
this.mapList = list;
|
||||||
this.addressItems = res.cityArray;
|
this.addressItems = res.cityArray;
|
||||||
if(this.addressItems && this.addressItems.length > 0){
|
if (this.addressItems && this.addressItems.length > 0) {
|
||||||
this.addressItems.forEach(item => {
|
this.addressItems.forEach(item => {
|
||||||
item.vinOutTime = this.getLocalTime(item.vinOutTime);
|
item.vinOutTime = this.getLocalTime(item.vinOutTime);
|
||||||
});
|
});
|
||||||
@ -182,11 +166,11 @@ goDistance(elf: NzCardComponent) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取司机轨迹
|
// 获取司机轨迹
|
||||||
getDriverTrajectory(){
|
getDriverTrajectory() {
|
||||||
this.service.request(this.service.$api_get_getAppDriverPosition, { id: this.id }).subscribe(res => {
|
this.service.request(this.service.$api_get_getAppDriverPosition, { id: this.id }).subscribe(res => {
|
||||||
if (res) {
|
if (res) {
|
||||||
const points = res.tracks;
|
const points = res.tracks;
|
||||||
let list :any[] = [];
|
let list: any[] = [];
|
||||||
points?.forEach((item: any) => {
|
points?.forEach((item: any) => {
|
||||||
list.push({
|
list.push({
|
||||||
name: item.hgt,
|
name: item.hgt,
|
||||||
@ -195,7 +179,7 @@ goDistance(elf: NzCardComponent) {
|
|||||||
});
|
});
|
||||||
this.mapList = list;
|
this.mapList = list;
|
||||||
this.addressItems = [...res.enclosureDataAppTrack];
|
this.addressItems = [...res.enclosureDataAppTrack];
|
||||||
if(this.addressItems && this.addressItems.length > 0){
|
if (this.addressItems && this.addressItems.length > 0) {
|
||||||
this.addressItems.forEach(item => {
|
this.addressItems.forEach(item => {
|
||||||
item.vinOutTime = this.getLocalTime(item.gtm);
|
item.vinOutTime = this.getLocalTime(item.gtm);
|
||||||
item.cityName = item.appAdress;
|
item.cityName = item.appAdress;
|
||||||
@ -204,10 +188,10 @@ goDistance(elf: NzCardComponent) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
trajectoryChange(event:any){
|
trajectoryChange(event: any) {
|
||||||
if(event ==='car'){
|
if (event === 'car') {
|
||||||
this.getTrajectory()
|
this.getTrajectory();
|
||||||
}else if(event ==='driver'){
|
} else if (event === 'driver') {
|
||||||
this.getDriverTrajectory();
|
this.getDriverTrajectory();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user