fix bug
This commit is contained in:
		| @ -138,9 +138,9 @@ export class DatatableFinancetableComponent implements OnInit { | ||||
|  | ||||
|   } | ||||
|   changeDataNext() { | ||||
|     if(this.mode === 'year') { | ||||
|     if(this.modeNext === 'year') { | ||||
|       this.dateFormat = 'yyyy' | ||||
|     } else if(this.mode === 'month') { | ||||
|     } else if(this.modeNext === 'month') { | ||||
|       this.dateFormat = 'yyyy-MM' | ||||
|     } | ||||
|   } | ||||
| @ -148,9 +148,9 @@ export class DatatableFinancetableComponent implements OnInit { | ||||
|     if(result === null) { | ||||
|       return | ||||
|     } | ||||
|     if(this.mode === 'year') { | ||||
|     if(this.modeNext === 'year') { | ||||
|       this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy') + '-01-01 00:00:00'] | ||||
|     } else if(this.mode === 'month') { | ||||
|     } else if(this.modeNext === 'month') { | ||||
|       this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy-MM') + '-01 00:00:00'] | ||||
|     } | ||||
|     this.initPillarData(); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user