This commit is contained in:
Taric Xin
2022-05-12 16:16:35 +08:00
parent 646081ecdd
commit 54bd5c3bb1
2 changed files with 34 additions and 26 deletions

View File

@ -18,19 +18,9 @@ module.exports = {
// secure: false, // Ignore invalid SSL certificates // secure: false, // Ignore invalid SSL certificates
// changeOrigin: true // changeOrigin: true
// } // }
// '//api': {
// target: {
// host: 'tms-api.yunduoxing.com',
// protocol: 'https:',
// port: 443
// },
// secure: false,
// changeOrigin: true,
// logLevel: 'debug'
// },
'//api': { '//api': {
target: { target: {
host: 'tms-api-dev.eascs.com', host: 'tms-api.yunduoxing.com',
protocol: 'https:', protocol: 'https:',
port: 443 port: 443
}, },
@ -38,4 +28,14 @@ module.exports = {
changeOrigin: true, changeOrigin: true,
logLevel: 'debug' logLevel: 'debug'
}, },
// '//api': {
// target: {
// host: 'tms-api-test.eascs.com',
// protocol: 'https:',
// port: 443
// },
// secure: false,
// changeOrigin: true,
// logLevel: 'debug'
// },
}; };

View File

@ -53,7 +53,9 @@ export class DatatableDataindexComponent implements OnInit, AfterViewInit {
this.service.request(this.service.$api_total_advance_deposit).subscribe((res: DataTotalVO) => { this.service.request(this.service.$api_total_advance_deposit).subscribe((res: DataTotalVO) => {
if (res) { if (res) {
this.totalAdvanceDeposit = this.formatMiniAreaData(res); this.totalAdvanceDeposit = this.formatMiniAreaData(res);
this.initAreaMap(this.AdvanceDeposit['el'].nativeElement as any, []); setTimeout(() => {
this.initAreaMap(this.AdvanceDeposit['el'].nativeElement as any, []);
}, 400);
} }
}); });
// 业绩量总额 // 业绩量总额
@ -82,8 +84,9 @@ export class DatatableDataindexComponent implements OnInit, AfterViewInit {
if (res) { if (res) {
const billTypeDatas2 = this.formatCoordinateData(res); const billTypeDatas2 = this.formatCoordinateData(res);
console.log(billTypeDatas2); console.log(billTypeDatas2);
setTimeout(() => {
this.initBillChart(this.g2custom['el'].nativeElement as any, billTypeDatas2); this.initBillChart(this.g2custom['el'].nativeElement as any, billTypeDatas2);
}, 100);
} }
}); });
// 大区业绩完成情况 // 大区业绩完成情况
@ -92,30 +95,35 @@ export class DatatableDataindexComponent implements OnInit, AfterViewInit {
// this.regionalPerformanceCompletion = res.map(item => ({ ...item, time: new Date(item.time)?.getTime() })); // this.regionalPerformanceCompletion = res.map(item => ({ ...item, time: new Date(item.time)?.getTime() }));
// this.initRegionalPerformanceChart(this.RegionalPerforman['el'].nativeElement as any, this.regionalPerformanceCompletion); // this.initRegionalPerformanceChart(this.RegionalPerforman['el'].nativeElement as any, this.regionalPerformanceCompletion);
this.regionalPerformanceCompletion = this.formatBarData(res); this.regionalPerformanceCompletion = this.formatBarData(res);
this.initBiaxialChart(this.RegionalPerforman['el'].nativeElement as any, this.regionalPerformanceCompletion, { setTimeout(() => {
y1Title: '业绩量(万)', this.initBiaxialChart(this.RegionalPerforman['el'].nativeElement as any, this.regionalPerformanceCompletion, {
y2Title: '业绩完成率', y1Title: '业绩量(万)',
y3Title: '同期业绩完成率' y2Title: '业绩完成率',
}); y3Title: '同期业绩完成率'
});
}, 100);
} }
}); });
// 订单类型比例 // 订单类型比例
this.service.request(this.service.$api_getWayBillDirectProportion).subscribe(res => { this.service.request(this.service.$api_getWayBillDirectProportion).subscribe(res => {
if (res) { if (res) {
const billTypeDatas = this.formatCoordinateData(res.map((item: any) => ({ ...item, billType: item.wayBillType }))); const billTypeDatas = this.formatCoordinateData(res.map((item: any) => ({ ...item, billType: item.wayBillType })));
console.log(billTypeDatas); setTimeout(() => {
this.initBillChart(this.BillDirectProportion['el'].nativeElement as any, billTypeDatas); this.initBillChart(this.BillDirectProportion['el'].nativeElement as any, billTypeDatas);
}, 100);
} }
}); });
// 统计订单结算金额-趋势 // 统计订单结算金额-趋势
this.service.request(this.service.$api_get_bill_payment_amount).subscribe(res => { this.service.request(this.service.$api_get_bill_payment_amount).subscribe(res => {
if (res) { if (res) {
this.salesData = this.formatBarData(res); this.salesData = this.formatBarData(res);
this.initBiaxialChart(this.SaleProportion['el'].nativeElement as any, this.salesData, { setTimeout(() => {
y1Title: '业绩量(万)', this.initBiaxialChart(this.SaleProportion['el'].nativeElement as any, this.salesData, {
y2Title: '业绩完成率', y1Title: '业绩量(万)',
y3Title: '同期业绩完成率' y2Title: '业绩完成率',
}); y3Title: '同期业绩完成率'
});
}, 100);
} }
}); });
} }