diff --git a/src/app/routes/datatable/components/financetable/financetable.component.ts b/src/app/routes/datatable/components/financetable/financetable.component.ts index fb0e6081..5201e4cb 100644 --- a/src/app/routes/datatable/components/financetable/financetable.component.ts +++ b/src/app/routes/datatable/components/financetable/financetable.component.ts @@ -59,6 +59,7 @@ export class DatatableFinancetableComponent implements OnInit { } else { this.type = 4 } + let params: any = { time: this.time, type: this.type @@ -76,11 +77,11 @@ export class DatatableFinancetableComponent implements OnInit { initPillarData(){ let type = 1 - if(this.mode === 'year') { - type = 1 - } else if(this.mode === 'month') { - type = 2 - } + if (this.modeNext === 'year') { + this.type = 1 + } else if (this.modeNext === 'month') { + this.type = 2 + } const params: any = { time: this.timeNext, type,