fix bug
This commit is contained in:
@ -5,7 +5,7 @@ import { SFComponent } from '@delon/form';
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-03-30 13:55:41
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-04-15 17:40:53
|
||||
* @LastEditTime : 2022-04-19 17:45:44
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\routes\\datatable\\components\\compliance\\customer\\customer.component.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -125,15 +125,15 @@ export class DatatableComplianceCustomerComponent implements OnInit {
|
||||
ngOnInit(): void {}
|
||||
onChange(result: any) {
|
||||
if (this.mode === 'year') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy') + '-01-01 00:00:00'];
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy')];
|
||||
} else if (this.mode === 'month') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM') + '-01 00:00:00'];
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM')];
|
||||
} else if (this.mode === 'date') {
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd') + ' 00:00:00'];
|
||||
this.time = [this.datePipe.transform(this.date, 'yyyy-MM-dd')];
|
||||
} else {
|
||||
this.time = [
|
||||
this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd') + '00:00:00',
|
||||
this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd') + ' 00:00:00'
|
||||
this.datePipe.transform(this.defineDate[0], 'yyyy-MM-dd'),
|
||||
this.datePipe.transform(this.defineDate[1], 'yyyy-MM-dd')
|
||||
];
|
||||
}
|
||||
this.st.reload({ ...this.reqParams });
|
||||
|
||||
Reference in New Issue
Block a user