|
|
|
@ -27,10 +27,12 @@ export class RealMonitoringComponent implements OnInit {
|
|
|
|
|
constructor(private router: Router, public EchartsData: EchartsDataService, private route: ActivatedRoute, public snackBar: MatSnackBar) { } |
|
|
|
|
|
|
|
|
|
addtime = String(new Date().getFullYear()) + '-01'//添加时间
|
|
|
|
|
endtime = String(new Date().getFullYear()) + '-0' + String(new Date().getMonth() + 1) |
|
|
|
|
endtime = String(new Date().getFullYear()) + '-01'
|
|
|
|
|
/* addtime=String(new Date().getFullYear()+new Date().getMonth()) |
|
|
|
|
endtime=String(new Date().getFullYear()+new Date().getMonth()) */ |
|
|
|
|
ngOnInit(): void { |
|
|
|
|
console.log(String(new Date().getFullYear()),String(new Date().getMonth())); |
|
|
|
|
console.log(this.addtime,this.endtime) |
|
|
|
|
window.setTimeout(() => { |
|
|
|
|
this.getechartsdata(true) |
|
|
|
|
}, 0) |
|
|
|
|