1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
| import { NgModule } from '@angular/core';
| import { SharedModule } from '@shared/shared.module';
| import { PipeModule } from '@business/pipe/pipe.module';
| import { NzTreeModule } from 'ng-tree-antd';
| import { NgxEchartsModule } from 'ngx-echarts';
| import { CommonModule } from '@angular/common';
| import { RouterModule, Routes } from '@angular/router';
| import { AnalysisComponent } from './analysis/analysis.component';
| import { CalendarComponent } from './calendar/calendar.component';
| import { MonitorpointComponent } from './monitorpoint/monitorpoint.component';
| import { NzCalendarModule } from 'ng-zorro-antd';
|
| const routes: Routes = [
| {
| path: '',
| children: [
| { path: 'analysis', component: AnalysisComponent},
| { path: 'calendar', component: CalendarComponent },
| { path: 'monitorpoint', component: MonitorpointComponent }
| ]
| }
| ];
|
| const COMPONENT_NOROUNT = [];
|
| @NgModule({
| imports: [
| // 管道模块必须当前模块导入
| PipeModule,
| NzTreeModule,
| NgxEchartsModule,
| CommonModule,
| SharedModule,
| NzCalendarModule,
| RouterModule.forChild(routes)
| ],
| declarations: [
| ...COMPONENT_NOROUNT,
| AnalysisComponent,
| CalendarComponent,
| MonitorpointComponent
| ],
| entryComponents: COMPONENT_NOROUNT
| })
| export class StatisticsModule { }
|
|