| | |
| | | path: '', |
| | | component: LayoutDefaultComponent, |
| | | children: [ |
| | | { path: '', redirectTo: 'dashboard/v1', pathMatch: 'full' }, |
| | | { path: 'dashboard', redirectTo: 'dashboard/v1', pathMatch: 'full' }, |
| | | { 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: '', redirectTo: 'dashboard/workplace', pathMatch: 'full' }, |
| | | { path: 'dashboard', redirectTo: 'dashboard/workplace', pathMatch: 'full' }, |
| | | { path: 'dashboard/workplace', component: DashboardWorkplaceComponent, data: { translate: 'dashboard_workplace' } }, |
| | | |
| | | { path: 'users', loadChildren: './users/users.module#UsersModule' }, |
| | | { path: 'devices', loadChildren: './devices/devices.module#DevicesModule' }, |
| | | { path: 'sensors', loadChildren: './sensors/sensors.module#SensorsModule' }, |
| | |
| | | path: 'passport', |
| | | component: LayoutPassportComponent, |
| | | children: [ |
| | | {data:{title:'登录页面'}, path: 'login', component: UserLoginComponent } |
| | | {data: {title: '登录页面'}, path: 'login', component: UserLoginComponent } |
| | | ] |
| | | }, // passport |
| | | { |
| | | path: 'report', |
| | | component: ReportComponent, |
| | | data:{title:'对比报表'} |
| | | data: {title: '对比报表'} |
| | | }, |
| | | { path: '**', redirectTo: 'passport/login' } |
| | | ]; |