From 1b2dd81fed658c78d97b24fa3fccf8524bbcf3bc Mon Sep 17 00:00:00 2001 From: wangshiming Date: Tue, 19 Apr 2022 17:48:29 +0800 Subject: [PATCH] fix bug --- .../compliance/customer/customer.component.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/app/routes/datatable/components/compliance/customer/customer.component.ts b/src/app/routes/datatable/components/compliance/customer/customer.component.ts index 00fefb7d..067f73c7 100644 --- a/src/app/routes/datatable/components/compliance/customer/customer.component.ts +++ b/src/app/routes/datatable/components/compliance/customer/customer.component.ts @@ -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 });