|
|
|
import { NgModule } from '@angular/core';
|
|
|
|
import { RouterModule, Routes } from '@angular/router';
|
|
|
|
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 { OrComponent } from './system-management/or/or.component';
|
|
|
|
import { RoleComponent } from './system-management/role/role.component';
|
|
|
|
import { SystemManagementComponent } from './system-management/system-management.component';
|
|
|
|
import { UserComponent } from './system-management/user/user.component';
|
|
|
|
import { DaMonthlyTaskOverviewComponent } from './task/da-monthly-task-overview/da-monthly-task-overview.component';
|
|
|
|
import { DaOneselfPlanComponent } from './task/da-oneself-plan/da-oneself-plan.component';
|
|
|
|
import { DaSubordinateAuditComponent } from './task/da-subordinate-audit/da-subordinate-audit.component';
|
|
|
|
import { StationTaskApplyComponent } from './task/station-task-apply/station-task-apply.component';
|
|
|
|
import { StationTaskExecutionComponent } from './task/station-task-execution/station-task-execution.component';
|
|
|
|
import { StationWeeklyPlanComponent } from './task/station-weekly-plan/station-weekly-plan.component';
|
|
|
|
import { TaskComponent } from './task/task.component';
|
|
|
|
import { ZhiAuditComponent } from './task/zhi-audit/zhi-audit.component';
|
|
|
|
import { ZhiIndicatorsComponent } from './task/zhi-indicators/zhi-indicators.component';
|
|
|
|
|
|
|
|
const routes: Routes = [
|
|
|
|
{
|
|
|
|
path: 'basicInfo', component: BasicInfoComponent,
|
|
|
|
children: [
|
|
|
|
{ path: '', redirectTo: '/basicInfo/unit', pathMatch: 'full' },
|
|
|
|
{
|
|
|
|
path: 'unit',
|
|
|
|
component: UnitComponent
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'unit/details',
|
|
|
|
component: UnitDetailsComponent
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'task', component: TaskComponent,
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'indicators',
|
|
|
|
component: ZhiIndicatorsComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'audit',
|
|
|
|
component: ZhiAuditComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'monthlytaskoverview',
|
|
|
|
component: DaMonthlyTaskOverviewComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'subordinateaudit',
|
|
|
|
component: DaSubordinateAuditComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'oneselfplan',
|
|
|
|
component: DaOneselfPlanComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'taskexecution',
|
|
|
|
component: StationTaskExecutionComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'taskapply',
|
|
|
|
component: StationTaskApplyComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'weeklyplan',
|
|
|
|
component: StationWeeklyPlanComponent,
|
|
|
|
}
|
|
|
|
],
|
|
|
|
},
|
|
|
|
{ path: 'statistic', component: StatisticAnalysisComponent },
|
|
|
|
{
|
|
|
|
path: 'system', component: SystemManagementComponent,
|
|
|
|
children: [
|
|
|
|
{ path: '', redirectTo: '/system/role', pathMatch: 'full' },
|
|
|
|
{
|
|
|
|
path: 'role',
|
|
|
|
component: RoleComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'user',
|
|
|
|
component: UserComponent,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'or',
|
|
|
|
component: OrComponent,
|
|
|
|
}
|
|
|
|
],
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
|
|
|
@NgModule({
|
|
|
|
imports: [RouterModule.forChild(routes)],
|
|
|
|
exports: [RouterModule]
|
|
|
|
})
|
|
|
|
export class HomeRoutingModule { }
|