| | |
| | | path: '', |
| | | component: LayoutComponent, |
| | | children: [ |
| | | { path: '', redirectTo: 'dashboard/v1', pathMatch: 'full' }, |
| | | { path: '', redirectTo: 'dashboard/analysis', pathMatch: 'full' }, |
| | | { path: 'dashboard', redirectTo: 'dashboard/v1', pathMatch: 'full' }, |
| | | |
| | | |
| | | { path: 'users', loadChildren: './users/users.module#UsersModule' }, |
| | | { path: 'devices', loadChildren: './devices/devices.module#DevicesModule' }, |
| | | { path: 'sensors', loadChildren: './sensors/sensors.module#SensorsModule' }, |
| | | { path: 'systems', loadChildren: './systems/systems.module#SystemsModule' }, |
| | | |
| | | { path: 'dashboard/v1', component: DashboardV1Component, data: { translate: 'dashboard_v1' } }, |
| | | { path: 'dashboard/analysis', component: DashboardAnalysisComponent, data: { translate: 'dashboard_analysis' } }, |
| | | { path: 'dashboard/monitor', component: DashboardMonitorComponent, data: { translate: 'dashboard_monitor' } }, |
| | | { path: 'dashboard/workplace', component: DashboardWorkplaceComponent, data: { translate: 'dashboard_workplace' } } |
| | | |
| | | ] |
| | | }, |
| | | // 全屏布局 |
| | | { |
| | | path: 'data-v', |
| | | component: LayoutFullScreenComponent, |
| | | children: [ |
| | | { path: '', loadChildren: './data-v/data-v.module#DataVModule' } |
| | | ] |
| | | }, |
| | | { path: '**', redirectTo: 'dashboard' } |