From 834859a4f7eb17c13089a9e22206cfc7cfbfb4c4 Mon Sep 17 00:00:00 2001
From: xufenglei <xufenglei>
Date: Sat, 24 Feb 2018 11:41:55 +0800
Subject: [PATCH] 报表相关
---
src/app/routes/routes-routing.module.ts | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/src/app/routes/routes-routing.module.ts b/src/app/routes/routes-routing.module.ts
index 891e3f5..016b94a 100644
--- a/src/app/routes/routes-routing.module.ts
+++ b/src/app/routes/routes-routing.module.ts
@@ -10,6 +10,8 @@
import { DashboardAnalysisComponent } from './dashboard/analysis/analysis.component';
import { DashboardMonitorComponent } from './dashboard/monitor/monitor.component';
import { DashboardWorkplaceComponent } from './dashboard/workplace/workplace.component';
+import { ReportComponent } from './report/report.component';
+import { UserLoginComponent } from 'app/routes/passport/login/login.component';
const routes: Routes = [
@@ -28,9 +30,21 @@
{ path: 'devices', loadChildren: './devices/devices.module#DevicesModule' },
{ path: 'sensors', loadChildren: './sensors/sensors.module#SensorsModule' },
{ path: 'systems', loadChildren: './systems/systems.module#SystemsModule' },
+ { path: 'reports', loadChildren: './reports/reports.module#ReportsModule' },
]
+ }, // passport
+ {
+ path: 'passport',
+ component: LayoutPassportComponent,
+ children: [
+ { path: 'login', component: UserLoginComponent }
+ ]
+ }, // passport
+ {
+ path: 'report',
+ component: ReportComponent
},
- { path: '**', redirectTo: 'dashboard' }
+ { path: '**', redirectTo: 'passport/login' }
];
@NgModule({
--
Gitblit v1.8.0