|
|
@ -1,6 +1,8 @@ |
|
|
|
import { NgModule } from '@angular/core'; |
|
|
|
import { NgModule } from '@angular/core'; |
|
|
|
import { RouterModule, Routes } from '@angular/router'; |
|
|
|
import { RouterModule, Routes } from '@angular/router'; |
|
|
|
import { BasicInfoComponent } from './basic-info/basic-info.component'; |
|
|
|
import { BasicInfoComponent } from './basic-info/basic-info.component'; |
|
|
|
|
|
|
|
import { UnitDetailsComponent } from './basic-info/unit-details/unit-details.component'; |
|
|
|
|
|
|
|
import { UnitComponent } from './basic-info/unit/unit.component'; |
|
|
|
import { StatisticAnalysisComponent } from './statistic-analysis/statistic-analysis.component'; |
|
|
|
import { StatisticAnalysisComponent } from './statistic-analysis/statistic-analysis.component'; |
|
|
|
import { OrComponent } from './system-management/or/or.component'; |
|
|
|
import { OrComponent } from './system-management/or/or.component'; |
|
|
|
import { RoleComponent } from './system-management/role/role.component'; |
|
|
|
import { RoleComponent } from './system-management/role/role.component'; |
|
|
@ -9,17 +11,29 @@ import { UserComponent } from './system-management/user/user.component'; |
|
|
|
import { TaskComponent } from './task/task.component'; |
|
|
|
import { TaskComponent } from './task/task.component'; |
|
|
|
|
|
|
|
|
|
|
|
const routes: Routes = [ |
|
|
|
const routes: Routes = [ |
|
|
|
{ path: 'basicInfo', component: BasicInfoComponent }, |
|
|
|
{ |
|
|
|
|
|
|
|
path: 'basicInfo', component: BasicInfoComponent, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
{ path: '', redirectTo: '/basicInfo/unit', pathMatch: 'full' }, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
path: 'unit', |
|
|
|
|
|
|
|
component: UnitComponent, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
] |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
path: 'unit/details', |
|
|
|
|
|
|
|
component: UnitDetailsComponent |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
}, |
|
|
|
{ path: 'task', component: TaskComponent }, |
|
|
|
{ path: 'task', component: TaskComponent }, |
|
|
|
{ path: 'statistic', component: StatisticAnalysisComponent }, |
|
|
|
{ path: 'statistic', component: StatisticAnalysisComponent }, |
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'system', component: SystemManagementComponent, |
|
|
|
path: 'system', component: SystemManagementComponent, |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
{ |
|
|
|
{ path: '', redirectTo: '/system/role', pathMatch: 'full' }, |
|
|
|
path: '', |
|
|
|
|
|
|
|
redirectTo: '/homePage/system/role', |
|
|
|
|
|
|
|
pathMatch: 'full' |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
{ |
|
|
|
{ |
|
|
|
path: 'role', |
|
|
|
path: 'role', |
|
|
|
component: RoleComponent, |
|
|
|
component: RoleComponent, |
|
|
|