12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- import { NgModule } from "@angular/core";
- import { mapToCanActivate, RouterModule, Routes } from "@angular/router";
- import { PageUserComponent } from "../nav-admin/page-user/page-user.component";
- import { UserEditComponent } from "../nav-admin/user-edit/user-edit.component";
- import { PageProcessComponent } from "./page-process/page-process.component";
- import { ProcessListComponent } from "./page-process/process-list/process-list.component";
- import { PageRoleComponent } from "./page-role/page-role.component";
- import { PageTextbookComponent } from "./page-textbook/page-textbook.component";
- import { SubmittedComponent } from "./submitted/submitted.component";
- import { AuthGuard } from "./auth.guard";
- import { ActivityComponent } from "./activity/activity.component";
- import { ReviewEditComponent } from "./activity/review-edit/review-edit.component";
- import { CollectFileComponent } from "./collect-file/collect-file.component";
- const routes: Routes = [
- {
- path: '',
- redirectTo:'manage/textbook',
- pathMatch: "full",
- },
- {
- path: 'manage',
- canActivate: mapToCanActivate([AuthGuard]),
- children:[
- {
- path: 'process', //流程申报
- component: ProcessListComponent,
- },
- {
- path: 'process/page', //流程详情
- component: PageProcessComponent,
- },
- {
- path: 'textbook', //全部教材
- component: PageTextbookComponent,
- },
- {
- path: 'user', //用户列表
- component: PageUserComponent,
- },
- {
- path: 'user/edit', //用户管理&编辑
- component: UserEditComponent,
- },
- {
- path: 'role', //组织列表
- component: PageRoleComponent,
- },
- {
- path: 'submitted/:id', //组织列表
- component: SubmittedComponent,
- },
- {
- path: 'activity/:id', //评审活动
- component: ActivityComponent,
- },
- {
- path: 'review-edit/:id', //评审活动
- component: ReviewEditComponent,
- },
-
- {
- path: 'collect', //本社教材源文件
- component: CollectFileComponent,
- },
- ]
- }
- ];
- @NgModule({
- imports: [RouterModule.forChild(routes)],
- exports: [RouterModule],
- })
- export class NavProContactRoutingModule {}
|