| | |
| | | import { CoordinatesPickerComponent } from 'app/routes/map/coordinates-picker/coordinates-picker.component'; |
| | | import { MapModule } from 'app/routes/map/map.module'; |
| | | import { CoorPickerService } from 'app/routes/map/coordinates-picker/coordinates-picker.service'; |
| | | const COMPONENTS_NOROUNT = [AdjustConfigComponent, DeviceEditComponent, VersionEditComponent, MonitorPointEditComponent, VersionSensorConfigComponent ]; |
| | | const COMPONENTS_NOROUNT = [AdjustConfigComponent, DeviceEditComponent, VersionEditComponent, MonitorPointEditComponent, VersionSensorConfigComponent]; |
| | | |
| | | const routes: Routes = [ |
| | | { |
| | |
| | | MonitorPointComponent, |
| | | ...COMPONENTS_NOROUNT |
| | | ], |
| | | exports: [ |
| | | COMPONENTS_NOROUNT |
| | | ], |
| | | providers: [CoorPickerService, DeviceAdjustValueService, OrganizationService, VersionService, |
| | | SensorsService, AreacodeService, MonitorPointService, |
| | | _HttpClient, FormBuilder, DeviceService, OperateUserService, ToolsService], |
| | |
| | | import { NgModule } from '@angular/core'; |
| | | import { CommonModule } from '@angular/common'; |
| | | import { CoordinatesPickerComponent } from './coordinates-picker/coordinates-picker.component'; |
| | | import { Routes, RouterModule } from '@angular/router'; |
| | | // import { Routes, RouterModule } from '@angular/router'; |
| | | import { BaiduMapModule } from 'angular2-baidu-map'; |
| | | import { AqmModule } from 'angular-qq-maps'; |
| | | // import { AqmModule } from 'angular-qq-maps'; |
| | | import { SharedModule } from '@shared/shared.module'; |
| | | |
| | | |
| | |
| | | import { NzTreeModule } from 'ng-tree-antd'; |
| | | import { NgxEchartsModule } from 'ngx-echarts'; |
| | | import { DeviceMaintenanceComponent } from './device-maintenance/device-maintenance.component'; |
| | | import { DevicesModule } from '../devices/devices.module'; |
| | | const COMPONENTS_NOROUNT = []; |
| | | const COMPONENTS_IMPORT = [AdjustConfigComponent, DeviceEditComponent, |
| | | VersionEditComponent, MonitorPointEditComponent, |
| | | VersionSensorConfigComponent ]; |
| | | |
| | | const routes: Routes = [ |
| | | { |
| | |
| | | CommonModule, |
| | | SharedModule, |
| | | MapModule, |
| | | RouterModule.forChild(routes) |
| | | RouterModule.forChild(routes), |
| | | DevicesModule |
| | | ], |
| | | declarations: [ |
| | | DataAuditComponent, |
| | | DeviceStatusComponent, |
| | | DeviceMaintenanceComponent, |
| | | ...COMPONENTS_NOROUNT |
| | | ...COMPONENTS_NOROUNT |
| | | ], |
| | | providers: [CoorPickerService, DeviceAdjustValueService, OrganizationService, VersionService, |
| | | SensorsService, AreacodeService, MonitorPointService, |
| | | _HttpClient, FormBuilder, DeviceService, OperateUserService, ToolsService], |
| | | entryComponents: [...COMPONENTS_NOROUNT,...COMPONENTS_IMPORT] |
| | | entryComponents: [...COMPONENTS_NOROUNT] |
| | | }) |
| | | export class OperationModule { } |