|
|
@ -17,7 +17,7 @@ export class EhartsStatisticsComponent implements OnInit { |
|
|
|
constructor(private adapter: DateAdapter<any>,private http:HttpClient,public snackBar: MatSnackBar,private route:ActivatedRoute,private router:Router) { } |
|
|
|
constructor(private adapter: DateAdapter<any>,private http:HttpClient,public snackBar: MatSnackBar,private route:ActivatedRoute,private router:Router) { } |
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
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.idName = this.route.snapshot.queryParams.name || '' |
|
|
|
this.adapter.setLocale('CH') |
|
|
|
this.adapter.setLocale('CH') |
|
|
|
this.getList() |
|
|
|
this.getList() |
|
|
@ -103,7 +103,7 @@ export class EhartsStatisticsComponent implements OnInit { |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.verticalPosition = 'top'; |
|
|
|
config.duration = 3000 |
|
|
|
config.duration = 3000 |
|
|
|
this.snackBar.open('选择时间不能大于现在时间段','确定',config); |
|
|
|
this.snackBar.open('选择时间不能大于现在时间段','确定',config); |
|
|
|
this.startTime = new FormControl( new Date() ) |
|
|
|
this.startTime = new FormControl( new Date(new Date().toLocaleDateString()) ) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.startTime = new FormControl(e.value) |
|
|
|
this.startTime = new FormControl(e.value) |
|
|
|
} |
|
|
|
} |
|
|
|