|
@@ -484,7 +484,9 @@ export class MainComponent implements OnInit {
|
484
|
484
|
}
|
485
|
485
|
// 统计
|
486
|
486
|
toNewStatistics(): void {
|
487
|
|
- this.router.navigateByUrl("newStatistics/maintenanceStatistics/incidentStatistics");
|
|
487
|
+ let menus = JSON.parse(localStorage.getItem("menu"));
|
|
488
|
+ let firstMenu = menus.find((item) => item.type == "newStatistics");
|
|
489
|
+ this.router.navigateByUrl(`newStatistics/${firstMenu.link}/${firstMenu.childrens[0].link}`);
|
488
|
490
|
}
|
489
|
491
|
// 大屏端或视图端
|
490
|
492
|
screenType;
|