app-routing.module.ts 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. import { NgModule } from '@angular/core';
  2. import { Routes, RouterModule } from '@angular/router';
  3. // 护士端权限
  4. import { NurseGuard } from './guard/nurse.guard';
  5. // 服务台权限
  6. import { FuwutaiGuard } from './guard/fuwutai.guard';
  7. // 管理端权限
  8. import { MainGuard } from './guard/main.guard';
  9. // 药房端权限
  10. import { PharmacyGuard } from './guard/pharmacy.guard';
  11. // 标本视图权限
  12. import { SpecimenView2Guard } from './guard/SpecimenView2Guard.guard';
  13. // 标本间端权限
  14. import { SpecimenRoomViewGuard } from './guard/SpecimenRoomViewGuard.guard';
  15. // 病理科权限
  16. import { PathologyGuard } from './guard/Pathology.guard';
  17. // 全局业务查看权限
  18. import { DisinfectionSupplyGuard } from './guard/DisinfectionSupplyGuard.guard';
  19. // 事件配置查看权限
  20. import { IncidentConfigGuard } from './guard/IncidentConfig.guard';
  21. // 三方配置查看权限
  22. import { OtherConfigGuard } from './guard/OtherConfig.guard';
  23. //业务页面控制查看权限
  24. import { PageConfigGuard } from './guard/PageConfig.guard';
  25. // 护士端控制查看权限
  26. import { NurseConfigGuard } from './guard/nurseConfig.guard';
  27. // 数据生成查看权限
  28. import { DataGenerateGuard } from './guard/DataGenerate.guard';
  29. //系统配置查看权限
  30. import { SystemConfigGuard } from './guard/SystemConfig.guard';
  31. // 故障实时播报权限
  32. import { RealtimeBroadcastGuard } from './guard/realtimeBroadcast.guard';
  33. import { InspectClosedLoopViewGuard } from './guard/inspectClosedLoopView.guard';
  34. const routes: Routes = [
  35. // 默认
  36. {
  37. path: '',
  38. redirectTo: 'login',
  39. pathMatch: 'full'
  40. },
  41. // 登录
  42. {
  43. path: 'login',
  44. loadChildren: () => import('./views/login/login.module').then(m => m.LoginModule)
  45. },
  46. // 登录
  47. {
  48. path: 'login/:hosId',
  49. loadChildren: () => import('./views/login/login.module').then(m => m.LoginModule)
  50. },
  51. // 管理端
  52. {
  53. path: 'main',
  54. loadChildren: () => import('./views/main/main.module').then(m => m.MainModule),
  55. canActivate: [MainGuard],
  56. },
  57. // 调度台
  58. {
  59. path: 'dispatchingDesk',
  60. loadChildren: () => import('./views/fuwutai/fuwutai.module').then(m => m.FuwutaiModule),
  61. canActivate: [FuwutaiGuard],
  62. },
  63. // 护士端
  64. {
  65. path: 'nurse',
  66. loadChildren: () => import('./views/hushijiandan/hushijiandan.module').then(m => m.HushijiandanModule),
  67. canActivate: [NurseGuard],
  68. },
  69. // 药房端
  70. {
  71. path: 'pharmacy',
  72. loadChildren: () => import('./views/pharmacy/pharmacy.module').then(m => m.PharmacyModule),
  73. canActivate: [PharmacyGuard]
  74. },
  75. // 药房端2
  76. {
  77. path: 'pharmacy2',
  78. loadChildren: () => import('./views/pharmacy2/pharmacy2.module').then(m => m.Pharmacy2Module),
  79. canActivate: [PharmacyGuard]
  80. },
  81. // 标本视图
  82. {
  83. path: 'specimenView2',
  84. loadChildren: () => import('./views/specimen-view2/specimen-view2.module').then(m => m.SpecimenView2Module),
  85. canActivate: [SpecimenView2Guard]
  86. },
  87. // 标本间端
  88. {
  89. path: 'specimenRoomView',
  90. loadChildren: () => import('./views/specimen-room-view/specimen-room-view.module').then(m => m.SpecimenRoomViewModule),
  91. canActivate: [SpecimenRoomViewGuard]
  92. },
  93. // 病理科端
  94. {
  95. path: 'pathology',
  96. loadChildren: () => import('./views/pathology/pathology.module').then(m => m.PathologyModule),
  97. canActivate: [PathologyGuard]
  98. },
  99. // 病理科端-扫描条码
  100. {
  101. path: 'pathologyScan',
  102. loadChildren: () => import('./views/pathologyScan/pathologyScan.module').then(m => m.PathologyScanModule),
  103. },
  104. // 门诊病理采样端
  105. {
  106. path: 'pathologySample',
  107. loadChildren: () => import('./views/pathology-sample/pathology-sample.module').then(m => m.PathologySampleModule),
  108. },
  109. // 病理交接本
  110. {
  111. path: 'pathologyCommunicationBook',
  112. loadChildren: () => import('./views/pathology-communication-book/pathology-communication-book.module').then(m => m.PathologyCommunicationBookModule),
  113. },
  114. // 交接本核对页
  115. {
  116. path: 'pathologyCheck',
  117. loadChildren: () => import('./views/pathology-check/pathology-check.module').then(m => m.PathologyCheckModule),
  118. },
  119. // 全局业务查看
  120. {
  121. path: 'disinfectionSupply',
  122. loadChildren: () => import('./views/disinfection-supply/disinfection-supply.module').then(m => m.DisinfectionSupplyModule),
  123. canActivate: [DisinfectionSupplyGuard]
  124. },
  125. // 事件配置查看
  126. {
  127. path: 'incidentConfig',
  128. loadChildren: () => import('./views/incident-config/incident-config.module').then(m => m.IncidentConfigModule),
  129. canActivate: [IncidentConfigGuard]
  130. },
  131. // 三方配置查看
  132. {
  133. path: 'otherConfig',
  134. loadChildren: () => import('./views/other-config/other-config.module').then(m => m.OtherConfigModule),
  135. canActivate: [OtherConfigGuard]
  136. },
  137. // 系统配置
  138. {
  139. path: 'systemConfig',
  140. loadChildren: () => import('./views/system-config/system-config.module').then(m => m.SystemConfigModule),
  141. canActivate: [SystemConfigGuard]
  142. },
  143. // 业务页面控制查看
  144. {
  145. path: 'pageConfig',
  146. loadChildren: () => import('./views/page-config/page-config.module').then(m => m.PageConfigModule),
  147. canActivate: [PageConfigGuard]
  148. },
  149. // 护士端控制查看
  150. {
  151. path: 'nurseConfig',
  152. loadChildren: () => import('./views/nurse-config/nurse-config.module').then(m => m.NurseConfigModule),
  153. canActivate: [NurseConfigGuard]
  154. },
  155. // 数据生成查看
  156. {
  157. path: 'dataGenerate',
  158. loadChildren: () => import('./views/data-generate/data-generate.module').then(m => m.DataGenerateModule),
  159. canActivate: [DataGenerateGuard]
  160. },
  161. // 问卷预览
  162. {
  163. path: "preview",
  164. loadChildren: () => import("./views/preview/preview.module").then((m) => m.PreviewModule),
  165. },
  166. // 洗涤批次视图
  167. {
  168. path: 'washingBatchView',
  169. loadChildren: () => import('./views/washing-batch-view/washing-batch-view.module').then(m => m.WashingBatchViewModule),
  170. },
  171. {
  172. // 发药批次-配置
  173. path: 'dispensingDetail/:id',
  174. loadChildren: () => import('./views/dispensing-detail/dispensing-detail.module').then(m => m.DispensingDetailModule),
  175. },
  176. // 洗涤批次视图
  177. {
  178. path: 'inspectionPlanConfig/:id',
  179. loadChildren: () => import('./views/inspection-plan-config/inspection-plan-config.module').then(m => m.InspectionPlanConfigModule),
  180. },
  181. {
  182. // 故障管理-知识库-新增/编辑
  183. path: 'repositoryManageAdd/:id',
  184. loadChildren: () => import('./views/repository-manage-add/repository-manage-add.module').then(m => m.RepositoryManageAddModule),
  185. },
  186. // 故障实时播报
  187. {
  188. path: 'realtimeBroadcast',
  189. loadChildren: () => import('./views/realtime-broadcast/realtime-broadcast.module').then(m => m.RealtimeBroadcastModule),
  190. canActivate: [RealtimeBroadcastGuard]
  191. },
  192. // 新版统计
  193. {
  194. path: "newStatistics",
  195. loadChildren: () => import("./views/new-statistics/new-statistics.module").then((m) => m.NewStatisticsModule),
  196. },
  197. // 批量发起陪检
  198. {
  199. path: 'batchInspection',
  200. loadChildren: () => import('./views/batch-inspection/batch-inspection.module').then(m => m.BatchInspectionModule),
  201. },
  202. // 陪检闭环视图
  203. {
  204. path: 'inspectClosedLoopView',
  205. loadChildren: () => import('./views/inspect-closed-loop-view/inspect-closed-loop-view.module').then(m => m.InspectClosedLoopViewModule),
  206. canActivate: [InspectClosedLoopViewGuard]
  207. },
  208. // 标本打包
  209. {
  210. path: 'batchSpecimen',
  211. loadChildren: () => import('./views/batch-specimen/batch-specimen.module').then(m => m.BatchSpecimenModule),
  212. },
  213. // 临时路由
  214. {
  215. path: "redirect",
  216. redirectTo: '/',
  217. pathMatch: 'full'
  218. },
  219. // 管理端首页
  220. {
  221. path: '**',
  222. redirectTo: 'main/home'
  223. },
  224. ];
  225. @NgModule({
  226. imports: [RouterModule.forRoot(routes)],
  227. exports: [RouterModule]
  228. })
  229. export class AppRoutingModule { }