From 94b658b834f2883fdfd4fcaaae6e5aeb90b41f26 Mon Sep 17 00:00:00 2001 From: wangshiming Date: Mon, 18 Apr 2022 20:10:38 +0800 Subject: [PATCH] fix bug --- .../components/financetable/financetable.component.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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,