From 43afaa6ad53ca4368fbc6426500f3f71f6f8b765 Mon Sep 17 00:00:00 2001
From: fengxiang <110431245@qq.com>
Date: Mon, 12 Mar 2018 09:02:31 +0800
Subject: [PATCH] 报表部分功能和token刷新

---
 src/app/routes/routes-routing.module.ts |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/src/app/routes/routes-routing.module.ts b/src/app/routes/routes-routing.module.ts
index 918d7de..a1d33a5 100644
--- a/src/app/routes/routes-routing.module.ts
+++ b/src/app/routes/routes-routing.module.ts
@@ -10,6 +10,7 @@
 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';
 
 
@@ -18,27 +19,30 @@
         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: 'systems', loadChildren: './systems/systems.module#SystemsModule' },
+            { path: 'reports', loadChildren: './reports/reports.module#ReportsModule' },
+            { path: 'analysis', loadChildren: './analysis/analysis.module#AnalysisModule' },
         ]
     },    // passport
     {
         path: 'passport',
         component: LayoutPassportComponent,
         children: [
-            { path: 'login', component: UserLoginComponent }
+            {data: {title: '������������'}, path: 'login', component: UserLoginComponent }
         ]
+    },    // passport
+    {
+      path: 'report',
+      component: ReportComponent,
+      data: {title: '������������'}
     },
-    { path: '**', redirectTo: 'dashboard' }
+    { path: '**', redirectTo: 'passport/login' }
 ];
 
 @NgModule({

--
Gitblit v1.8.0