|
@@ -3,21 +3,21 @@ import { adminGuard, operatorManagerGuard, superAdminGuard } from './admin.guard
|
|
|
|
|
|
|
|
const operationsChildren: Routes = [
|
|
const operationsChildren: Routes = [
|
|
|
{ path: '', pathMatch: 'full', redirectTo: 'dashboard' },
|
|
{ path: '', pathMatch: 'full', redirectTo: 'dashboard' },
|
|
|
- { path: 'dashboard', data: { title: '工作台', parentUrl: null }, loadComponent: () => import('./pages/admin-dashboard.component').then((module) => module.AdminDashboardComponent) },
|
|
|
|
|
|
|
+ { path: 'dashboard', data: { title: '工作台', parentUrl: null, preloadOperationsMenu: true }, loadComponent: () => import('./pages/admin-dashboard.component').then((module) => module.AdminDashboardComponent) },
|
|
|
{ path: 'users', pathMatch: 'full', redirectTo: 'members' },
|
|
{ path: 'users', pathMatch: 'full', redirectTo: 'members' },
|
|
|
{ path: 'users/:objectId', redirectTo: 'members/:objectId' },
|
|
{ path: 'users/:objectId', redirectTo: 'members/:objectId' },
|
|
|
- { path: 'members', data: { title: '会员管理', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/operations-users.component').then((module) => module.OperationsUsersComponent) },
|
|
|
|
|
|
|
+ { path: 'members', data: { title: '会员管理', parentUrl: '/admin/dashboard', preloadOperationsMenu: true }, loadComponent: () => import('./pages/operations-users.component').then((module) => module.OperationsUsersComponent) },
|
|
|
{ path: 'members/:objectId', data: { title: '会员详情', parentUrl: '/admin/members', parentTitle: '会员管理' }, loadComponent: () => import('./pages/operations-user-detail.component').then((module) => module.OperationsUserDetailComponent) },
|
|
{ path: 'members/:objectId', data: { title: '会员详情', parentUrl: '/admin/members', parentTitle: '会员管理' }, loadComponent: () => import('./pages/operations-user-detail.component').then((module) => module.OperationsUserDetailComponent) },
|
|
|
- { path: 'stores', data: { title: '门店管理', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/operations-stores.component').then((module) => module.OperationsStoresComponent) },
|
|
|
|
|
|
|
+ { path: 'stores', data: { title: '门店管理', parentUrl: '/admin/dashboard', preloadOperationsMenu: true }, loadComponent: () => import('./pages/operations-stores.component').then((module) => module.OperationsStoresComponent) },
|
|
|
{ path: 'stores/:objectId', data: { title: '门店详情', parentUrl: '/admin/stores', parentTitle: '门店管理' }, loadComponent: () => import('./pages/operations-store-detail.component').then((module) => module.OperationsStoreDetailComponent) },
|
|
{ path: 'stores/:objectId', data: { title: '门店详情', parentUrl: '/admin/stores', parentTitle: '门店管理' }, loadComponent: () => import('./pages/operations-store-detail.component').then((module) => module.OperationsStoreDetailComponent) },
|
|
|
- { path: 'schedule', data: { title: '排课中心', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/operations-schedule.component').then((module) => module.OperationsScheduleComponent) },
|
|
|
|
|
- { path: 'learning-reports', data: { title: '学习报表', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/operations-learning-reports.component').then((module) => module.OperationsLearningReportsComponent) },
|
|
|
|
|
|
|
+ { path: 'schedule', data: { title: '排课中心', parentUrl: '/admin/dashboard', preloadOperationsMenu: true }, loadComponent: () => import('./pages/operations-schedule.component').then((module) => module.OperationsScheduleComponent) },
|
|
|
|
|
+ { path: 'learning-reports', data: { title: '学习报表', parentUrl: '/admin/dashboard', preloadOperationsMenu: true }, loadComponent: () => import('./pages/operations-learning-reports.component').then((module) => module.OperationsLearningReportsComponent) },
|
|
|
{ path: 'appointments', pathMatch: 'full', redirectTo: 'schedule' },
|
|
{ path: 'appointments', pathMatch: 'full', redirectTo: 'schedule' },
|
|
|
- { path: 'coaches', data: { title: '陪练老师', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/operations-coaches.component').then((module) => module.OperationsCoachesComponent) },
|
|
|
|
|
|
|
+ { path: 'coaches', data: { title: '陪练老师', parentUrl: '/admin/dashboard', preloadOperationsMenu: true }, loadComponent: () => import('./pages/operations-coaches.component').then((module) => module.OperationsCoachesComponent) },
|
|
|
{ path: 'coaches/:objectId', data: { title: '老师详情', parentUrl: '/admin/coaches', parentTitle: '陪练老师' }, loadComponent: () => import('./pages/operations-coach-detail.component').then((module) => module.OperationsCoachDetailComponent) },
|
|
{ path: 'coaches/:objectId', data: { title: '老师详情', parentUrl: '/admin/coaches', parentTitle: '陪练老师' }, loadComponent: () => import('./pages/operations-coach-detail.component').then((module) => module.OperationsCoachDetailComponent) },
|
|
|
- { path: 'payroll', data: { title: '工资结算', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/operations-payroll.component').then((module) => module.OperationsPayrollComponent) },
|
|
|
|
|
- { path: 'vocabulary', data: { title: '词库管理', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/operations-vocabulary.component').then((module) => module.OperationsVocabularyComponent) },
|
|
|
|
|
- { path: 'special-training', data: { title: '专项训练', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/operations-special-training.component').then((module) => module.OperationsSpecialTrainingComponent) },
|
|
|
|
|
|
|
+ { path: 'payroll', data: { title: '工资结算', parentUrl: '/admin/dashboard', preloadOperationsMenu: true }, loadComponent: () => import('./pages/operations-payroll.component').then((module) => module.OperationsPayrollComponent) },
|
|
|
|
|
+ { path: 'vocabulary', data: { title: '词库管理', parentUrl: '/admin/dashboard', preloadOperationsMenu: true }, loadComponent: () => import('./pages/operations-vocabulary.component').then((module) => module.OperationsVocabularyComponent) },
|
|
|
|
|
+ { path: 'special-training', data: { title: '专项训练', parentUrl: '/admin/dashboard', preloadOperationsMenu: true }, loadComponent: () => import('./pages/operations-special-training.component').then((module) => module.OperationsSpecialTrainingComponent) },
|
|
|
{ path: 'operator-accounts', data: { title: '运营账号管理', parentUrl: '/admin/dashboard' }, canActivate: [operatorManagerGuard], loadComponent: () => import('./pages/operator-accounts.component').then(module => module.OperatorAccountsComponent) },
|
|
{ path: 'operator-accounts', data: { title: '运营账号管理', parentUrl: '/admin/dashboard' }, canActivate: [operatorManagerGuard], loadComponent: () => import('./pages/operator-accounts.component').then(module => module.OperatorAccountsComponent) },
|
|
|
{ path: 'change-password', data: { title: '修改密码', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/admin-change-password.component').then((module) => module.AdminChangePasswordComponent) },
|
|
{ path: 'change-password', data: { title: '修改密码', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/admin-change-password.component').then((module) => module.AdminChangePasswordComponent) },
|
|
|
{ path: 'forbidden', data: { title: '无访问权限', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/admin-forbidden.component').then((module) => module.AdminForbiddenComponent) },
|
|
{ path: 'forbidden', data: { title: '无访问权限', parentUrl: '/admin/dashboard' }, loadComponent: () => import('./pages/admin-forbidden.component').then((module) => module.AdminForbiddenComponent) },
|