fix bug
This commit is contained in:
		| @ -1,10 +1,9 @@ | ||||
| import { Component, ElementRef, OnInit, ViewChild, NgZone } from '@angular/core'; | ||||
| import { Component, OnInit, ViewChild, NgZone } from '@angular/core'; | ||||
| import { STColumn, STComponent } from '@delon/abc/st'; | ||||
| import { DatePipe, _HttpClient } from '@delon/theme'; | ||||
| import { differenceInCalendarDays } from 'date-fns'; | ||||
| import { DataService } from '../../../services/data.service'; | ||||
| import { Chart } from '@antv/g2'; | ||||
| import { BusitablePillarComponent } from './pillar/pillar.component'; | ||||
| import { BusitablePillarComponent } from '../pillar/pillar.component'; | ||||
| import { BusitableCurveComponent } from './curve/curve.component'; | ||||
|  | ||||
| @Component({ | ||||
| @ -36,11 +35,11 @@ export class DatatableBusiindexComponent implements OnInit { | ||||
|     { title: '合伙人数', index: 'partnerNumber', className: 'text-center' }, | ||||
|     { title: '客户数', index: 'enterpriseNumbe', className: 'text-center' }, | ||||
|     { title: '订单数', index: 'zsl', className: 'text-center' }, | ||||
|     { title: '客户预存款', index: 'czcgje', className: 'text-center' }, | ||||
|     { title: '客户预存款', index: 'czcgje', className: 'text-right', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.czcgje }) } }, | ||||
|     { title: '业绩量', index: 'yisje', className: 'text-center' }, | ||||
|     { title: '已收附加费', index: 'yisfjf', className: 'text-center' }, | ||||
|     { title: '已收附加费', index: 'yisfjf', className: 'text-right', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.yisfjf }) } }, | ||||
|     { title: '平均附加费率', index: 'fjfl', className: 'text-center' }, | ||||
|     { title: '已开票金额', index: 'ykpje', className: 'text-center' } | ||||
|     { title: '已开票金额', index: 'ykpje', className: 'text-right', type: 'widget', widget: { type: 'currency-chy', params: ({ record }) => ({ value: record.ykpje }) } }, | ||||
|   ]; | ||||
|   /** | ||||
|    * 查询参数 | ||||
| @ -119,11 +118,16 @@ export class DatatableBusiindexComponent implements OnInit { | ||||
|     } | ||||
|   } | ||||
|   onChangeNext(result: any) { | ||||
|     if(result === null) { | ||||
|       return | ||||
|     } | ||||
|     if(this.mode === 'year') { | ||||
|       this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy') + '-01-01 00:00:00'] | ||||
|     } else if(this.mode === 'month') { | ||||
|       this.timeNext = [this.datePipe.transform(this.dateNext, 'yyyy-MM') + '-01 00:00:00'] | ||||
|     } | ||||
|      | ||||
|     | ||||
|     this.flag = true | ||||
|     this.initData() | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user