From f3baf73acafde1cc946cc24069d919d9ded4d493 Mon Sep 17 00:00:00 2001
From: cpf <1105965053@qq.com>
Date: Mon, 13 Jul 2020 15:24:52 +0800
Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E6=AD=A3]=20=E4=BF=AE=E6=AD=A3?=
=?UTF-8?q?=E6=8C=89=E6=97=B6=E9=97=B4=E6=9F=A5=E8=AF=A2BUG?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/app/ui/eharts-statistics/eharts-statistics.component.html | 2 +-
src/app/ui/eharts-statistics/eharts-statistics.component.ts | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/app/ui/eharts-statistics/eharts-statistics.component.html b/src/app/ui/eharts-statistics/eharts-statistics.component.html
index 32e74be..375550c 100644
--- a/src/app/ui/eharts-statistics/eharts-statistics.component.html
+++ b/src/app/ui/eharts-statistics/eharts-statistics.component.html
@@ -5,7 +5,7 @@
-
+
diff --git a/src/app/ui/eharts-statistics/eharts-statistics.component.ts b/src/app/ui/eharts-statistics/eharts-statistics.component.ts
index cb805ff..49f14bb 100644
--- a/src/app/ui/eharts-statistics/eharts-statistics.component.ts
+++ b/src/app/ui/eharts-statistics/eharts-statistics.component.ts
@@ -17,7 +17,7 @@ export class EhartsStatisticsComponent implements OnInit {
constructor(private adapter: DateAdapter
,private http:HttpClient,public snackBar: MatSnackBar,private route:ActivatedRoute,private router:Router) { }
ngOnInit(): void {
- this.idCard = this.route.snapshot.queryParams.id || '370304199609261910'
+ this.idCard = this.route.snapshot.queryParams.id || ''
this.idName = this.route.snapshot.queryParams.name || ''
this.adapter.setLocale('CH')
this.getList()
@@ -103,7 +103,7 @@ export class EhartsStatisticsComponent implements OnInit {
config.verticalPosition = 'top';
config.duration = 3000
this.snackBar.open('选择时间不能大于现在时间段','确定',config);
- this.startTime = new FormControl( new Date() )
+ this.startTime = new FormControl( new Date(new Date().toLocaleDateString()) )
} else {
this.startTime = new FormControl(e.value)
}