From 7047fc75d8d33ad7608c05f655e760f4e824808b Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Fri, 13 Jul 2018 10:08:33 +0800 Subject: [PATCH] 提交修改 --- src/app/routes/routes.module.ts | 53 +++++++++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 47 insertions(+), 6 deletions(-) diff --git a/src/app/routes/routes.module.ts b/src/app/routes/routes.module.ts index a621ee2..2653f7a 100644 --- a/src/app/routes/routes.module.ts +++ b/src/app/routes/routes.module.ts @@ -1,10 +1,51 @@ +import { UserLoginComponent } from './passport/login/login.component'; +import { DateService } from '@business/services/util/date.service'; +import { _HttpClient } from '@delon/theme'; import { NgModule } from '@angular/core'; -import { CommonModule } from '@angular/common'; +import { RouterModule } from '@angular/router'; + +import { SharedModule } from '@shared/shared.module'; +import { RouteRoutingModule } from './routes-routing.module'; +import { environment } from '@env/environment'; +// dashboard pages +import { DashboardV1Component } from './dashboard/v1/v1.component'; +import { DashboardAnalysisComponent } from './dashboard/analysis/analysis.component'; +import { DashboardMonitorComponent } from './dashboard/monitor/monitor.component'; +import { DashboardWorkplaceComponent } from './dashboard/workplace/workplace.component'; +import { ForecastingWarningComponent } from './forecasting-warning/forecasting-warning.component'; +import { ReportComponent } from './report/report.component'; +import { PollutionManagementComponent } from './pollution/management/management.component'; + +// Statics +import 'rxjs/add/observable/throw'; + +// Operators +import 'rxjs/add/operator/catch'; +import 'rxjs/add/operator/debounceTime'; +import 'rxjs/add/operator/distinctUntilChanged'; +import 'rxjs/add/operator/map'; +import 'rxjs/add/operator/switchMap'; +import 'rxjs/add/operator/toPromise'; +import 'rxjs/add/operator/filter'; +import 'rxjs/add/operator/last'; +import 'rxjs/add/operator/delay'; @NgModule({ - imports: [ - CommonModule - ], - declarations: [] + imports: [ SharedModule, RouteRoutingModule ], + declarations: [ + DashboardV1Component, + DashboardAnalysisComponent, + DashboardMonitorComponent, + DashboardWorkplaceComponent, + UserLoginComponent, + ReportComponent, + ForecastingWarningComponent, + PollutionManagementComponent + ], + providers: [ + _HttpClient, + DateService + ] }) -export class RoutesModule { } + +export class RoutesModule {} -- Gitblit v1.8.0