diff --git a/proxy.conf.js b/proxy.conf.js index 6a0a73cf..0b7a386b 100644 --- a/proxy.conf.js +++ b/proxy.conf.js @@ -18,6 +18,16 @@ module.exports = { // secure: false, // Ignore invalid SSL certificates // changeOrigin: true // } + // '//api': { + // target: { + // host: 'tms-api.yunduoxing.com', + // protocol: 'https:', + // port: 443 + // }, + // secure: false, + // changeOrigin: true, + // logLevel: 'debug' + // }, '//api': { target: { host: 'tms-api-test.eascs.com', diff --git a/src/app/routes/commom/less/trajectory.less b/src/app/routes/commom/less/trajectory.less new file mode 100644 index 00000000..17519018 --- /dev/null +++ b/src/app/routes/commom/less/trajectory.less @@ -0,0 +1,48 @@ +:host::ng-deep { + .text-truncate { + white-space: normal; + } + + .map_st { + max-height: 350px; + max-width : 360px; + position : absolute; + top : 20px; + right : 49px; + } + + .map_radio { + position : absolute; + top : 20px; + left : 20px; + background : #F4F4F5; + box-shadow : 0px 2px 8px 1px rgb(0 0 0 / 10%); + border-radius: 4px 4px 4px 4px; + + .ant-radio-button-wrapper { + background: #F4F4F5; + border : unset; + } + + .ant-radio-button-wrapper-checked { + color : #CF3834; + background: #ffffff; + } + + .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled)::before { + background-color: #d9d9d9; + } + } +} + +.detail_title { + font-size : 16px; + font-weight: 500; + color : #252A3D; + line-height: 24px; + + span { + color : #E60012; + font-weight: 700; + } +} \ No newline at end of file diff --git a/src/app/routes/datatable/reporting/components/view-track/view-track.component.ts b/src/app/routes/datatable/reporting/components/view-track/view-track.component.ts index 5b136434..f78e3b56 100644 --- a/src/app/routes/datatable/reporting/components/view-track/view-track.component.ts +++ b/src/app/routes/datatable/reporting/components/view-track/view-track.component.ts @@ -4,20 +4,17 @@ import format from 'date-fns/format'; import { NzModalRef } from 'ng-zorro-antd/modal'; import { OrderManagementService } from 'src/app/routes/order-management/services/order-management.service'; - @Component({ selector: 'app-datatable-view-track', - templateUrl: './view-track.component.html', + templateUrl: './view-track.component.html' }) export class DatatableReportingvViewTrackComponent implements OnInit { - mapList: any[] = []; //地图点位数据组 - addressItems: any[] = []; //打点地址数据组 - trajectory = "car"; + mapList: any[] = []; //地图点位数据组 + addressItems: any[] = []; //打点地址数据组 + trajectory = 'car'; pois: any[] = []; id = ''; - constructor(public service: OrderManagementService, private modalRef: NzModalRef, public router: Router) { - - } + constructor(public service: OrderManagementService, private modalRef: NzModalRef, public router: Router) {} ngOnInit(): void { if (this.trajectory === 'car') { @@ -27,11 +24,7 @@ export class DatatableReportingvViewTrackComponent implements OnInit { } } - - - selectTab(e: any) { - - } + selectTab(e: any) {} close(): void { this.modalRef.destroy(); @@ -58,8 +51,6 @@ export class DatatableReportingvViewTrackComponent implements OnInit { } } }); - - } // 获取司机轨迹 @@ -75,12 +66,16 @@ export class DatatableReportingvViewTrackComponent implements OnInit { }); }); this.mapList = list; - this.addressItems = [...res.enclosureDataAppTrack]; - if (this.addressItems && this.addressItems.length > 0) { - this.addressItems.forEach(item => { - item.parkBte = item.parkBte ? this.getLocalTime(item.parkBte) : ''; - item.cityName = item.appAdress; + const addressItems = [...res.tracks]; + if (addressItems) { + addressItems.forEach(item => { + // item.parkBte = item.gtm; + item.parkBte = this.getLocalTime(item.gtm); + item.parkAdr = item.appAdress; }); + this.addressItems = [...addressItems]; + } else { + this.addressItems = []; } } }); @@ -88,5 +83,4 @@ export class DatatableReportingvViewTrackComponent implements OnInit { getLocalTime(time: any) { return format(new Date(parseInt(time)), 'yyyy-MM-dd HH:mm:ss'); } - } diff --git a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts index e9668879..a2895ba9 100644 --- a/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts +++ b/src/app/routes/menu-manager/components/api-auth/auth-drawer/auth-drawer.component.ts @@ -30,7 +30,7 @@ export class AuthDrawerComponent implements OnInit { constructor(public service: MenuManagerService, private modal: NzModalService) {} ngOnInit(): void { - this.loadFunctions(); + // this.loadFunctions(); } beforeReq = (requestOptions: STRequestOptions) => { diff --git a/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.html b/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.html index 85febdb2..edfb57a6 100644 --- a/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.html +++ b/src/app/routes/order-management/components/bulk-detail-change/bulk-detail-change.component.html @@ -21,47 +21,44 @@