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) }