From 928d55a8fde33200bb1ca4016ce5b86e9a1118a8 Mon Sep 17 00:00:00 2001 From: fengxiang <110431245@qq.com> Date: Tue, 16 Jan 2018 16:57:13 +0800 Subject: [PATCH] 组织配置 --- src/app/routes/systems/systems.module.ts | 31 ++++++++++++++++++++++++++----- 1 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/app/routes/systems/systems.module.ts b/src/app/routes/systems/systems.module.ts index d645b78..eae0bff 100644 --- a/src/app/routes/systems/systems.module.ts +++ b/src/app/routes/systems/systems.module.ts @@ -1,32 +1,53 @@ +import { FormBuilder } from '@angular/forms'; +import { _HttpClient } from '@delon/theme'; import { Component, OnInit } from '@angular/core'; import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { RouterModule, Routes } from '@angular/router'; import { SharedModule } from '@shared/shared.module'; - import { AccountComponent } from './account/account.component'; +import { AccountEditComponent } from './account/account-edit/account-edit.component'; +import { OrganizationComponent } from './organization/organization.component'; +import { PipeModule } from '@business/pipe/pipe.module'; +import { OrganizationEditComponent } from './organization/organization-edit/organization-edit.component'; +import { ToolsService } from '@business/services/util/tools.service'; +import { OrganizationService } from '@business/services/http/organization.service'; +import { AreacodeService } from '@business/services/http/areacode.service'; +import { OrganizationConfigComponent } from './organization/organization-config/organization-config.component'; +import { OrganizationListComponent } from './organization/organization-list/organization-list.component'; +import { SensorsService } from '@business/services/http/sensors.service'; +import { BusinessModule } from '@business/business.module'; const routes: Routes = [ { path: '', children: [ - { path: 'account', component: AccountComponent } + { path: 'account', component: AccountComponent }, + { path: 'organization', component: OrganizationComponent } ] } ]; -const COMPONENTS_NOROUNT = [ ]; +const COMPONENTS_NOROUNT = [ AccountEditComponent, OrganizationEditComponent ]; @NgModule({ imports: [ + // ������������������������������������ + PipeModule, CommonModule, SharedModule, - RouterModule.forChild(routes) + RouterModule.forChild(routes), + BusinessModule ], declarations: [ ...COMPONENTS_NOROUNT, - AccountComponent + AccountComponent, + AccountEditComponent, + OrganizationComponent, + OrganizationConfigComponent, + OrganizationListComponent ], + providers: [ToolsService, SensorsService,OrganizationService, _HttpClient, FormBuilder, AreacodeService], entryComponents: COMPONENTS_NOROUNT }) export class SystemsModule { } -- Gitblit v1.8.0