fix bug
This commit is contained in:
@ -22,7 +22,7 @@ export class DatatableOperationtableComponent implements OnInit {
|
||||
date: any = null;
|
||||
defineDate = [];
|
||||
time: any = ['2022-01-01 00:00:00']
|
||||
dateFormat = 'yyyy-MM-dd';
|
||||
dateFormat = 'yyyy';
|
||||
dateNext: any = null;
|
||||
modeNext = 'year';
|
||||
timeNext: any = ['2022-01-01 00:00:00']
|
||||
@ -31,7 +31,6 @@ export class DatatableOperationtableComponent implements OnInit {
|
||||
|
||||
interManlist: any = []
|
||||
chartData: any = {}
|
||||
flag: boolean = false;
|
||||
columns: STColumn[] = [
|
||||
{ title: '运营主体', index: 'networkTransporterName', className: 'text-center' },
|
||||
{ title: '订单数', index: 'zsl', className: 'text-center' },
|
||||
@ -84,11 +83,10 @@ export class DatatableOperationtableComponent implements OnInit {
|
||||
type,
|
||||
enterpriseInfoId: this.enterpriseInfoId
|
||||
};
|
||||
this.flag = flag ? flag : false
|
||||
this.service.request(this.service.$api_operationalReportHistogram, params).subscribe(res => {
|
||||
if (res) {
|
||||
this.chartData = res
|
||||
if(this.flag) {
|
||||
if(flag) { // 除第一次加载外
|
||||
this.pillar.reRender()
|
||||
this.curve.reRender()
|
||||
}
|
||||
@ -152,5 +150,6 @@ export class DatatableOperationtableComponent implements OnInit {
|
||||
} else if(this.mode === 'month') {
|
||||
this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy-MM') + '-01 00:00:00']
|
||||
}
|
||||
this.initPillarData(true)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user