router.config.js 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. /**
  2. * 基础路由
  3. * @type { *[] }
  4. */
  5. export let routers = [
  6. {
  7. path: '/',
  8. redirect:'/login'
  9. },
  10. {
  11. path: '/login',
  12. component: () => import('@/views/login'),
  13. meta: {
  14. title: '登录',
  15. keepAlive: false
  16. },
  17. },
  18. {
  19. path: '/tokenlogin',
  20. component: () => import('@/views/tokenlogin'),
  21. meta: {
  22. title: '登录',
  23. keepAlive: false
  24. },
  25. },
  26. {
  27. path: '/consultInfo/:id',
  28. name: 'consultInfo',
  29. component: () => import('@/views/menu/monitoringCall/components/consultInfo'),
  30. meta: { title: '监控调阅', keepAlive: true }
  31. },
  32. // {
  33. // path: '/addInfo/:id',
  34. // name: 'addInfo',
  35. // component: () => import('@/views/menu/monitoringCall/components/addInfo'),
  36. // meta: { title: '添加监控调阅', keepAlive: false }
  37. // },
  38. // {
  39. // path: '/update/:id',
  40. // name: 'update',
  41. // component: () => import('@/views/menu/monitoringCall/components/addInfo'),
  42. // meta: { title: '编辑监控调阅', keepAlive: false }
  43. // },
  44. // {
  45. // path: '/info/:id',
  46. // name: 'info',
  47. // component: () => import('@/views/menu/monitoringCall/components/addInfo'),
  48. // meta: { title: '监控调阅详情', keepAlive: false }
  49. // },
  50. {
  51. path: '/training',
  52. name: 'training',
  53. component: () => import('@/views/menu/training/index'),
  54. meta: { title: '教育培训', keepAlive: false }
  55. },
  56. {
  57. path: '/Addtraining/:id',
  58. name: 'Addtraining',
  59. component: () => import('@/views/menu/training/components/addTraining.vue'),
  60. meta: { title: '培训登记', keepAlive: false }
  61. },
  62. {
  63. path: '/addRehearsalTask/:id',
  64. name: 'addRehearsalTask',
  65. component: () => import('@/views/menu/rehearsalTask/components/addRehearsalTask.vue'),
  66. meta: { title: '演练登记', keepAlive: false }
  67. },
  68. {
  69. path: '/personnelSignature/:id',
  70. name: 'personnelSignature',
  71. component: () => import('@/views/menu/training/components/personnelSignature.vue'),
  72. meta: { title: '培训参与人员签名', keepAlive: false }
  73. },
  74. {
  75. path: '/personnelSigninfo/:id',
  76. name: 'personnelSigninfo',
  77. component: () => import('@/views/menu/training/components/personnelSignature.vue'),
  78. meta: { title: '教育培训记录详情', keepAlive: false }
  79. },
  80. {
  81. path: '/rehearsalTasinfo/:id',
  82. name: 'rehearsalTasinfo',
  83. component: () => import('@/views/menu/rehearsalTask/components/rehearsalTaskSign.vue'),
  84. meta: { title: '演练详情', keepAlive: false }
  85. },
  86. {
  87. path: '/rehearsalTaskSign/:id',
  88. name: 'rehearsalTaskSign',
  89. component: () => import('@/views/menu/rehearsalTask/components/rehearsalTaskSign.vue'),
  90. meta: { title: '演练参与人员签名', keepAlive: false }
  91. },
  92. {
  93. path: '/commentSign/:id',
  94. name: 'commentSign',
  95. component: () => import('@/views/menu/rehearsalTask/components/rehearsalTaskSign.vue'),
  96. meta: { title: '演练详情', keepAlive: false }
  97. },
  98. {
  99. path: '/home',
  100. component: () => import('@/components/layouts/index'),
  101. redirect:'/works',
  102. meta: {
  103. title: '主页',
  104. keepAlive: false
  105. },
  106. children: [
  107. {
  108. path: '/works',
  109. name: 'works',
  110. component: () => import('@/views/home/works'),
  111. meta: { title: '工作台', keepAlive: true }
  112. },
  113. {
  114. path: '/menu',
  115. name: 'menu',
  116. component: () => import('@/views/home/menu'),
  117. meta: { title: '菜单', keepAlive: true },
  118. },
  119. {
  120. path: '/isMy',
  121. name: 'isMy',
  122. component: () => import('@/views/home/isMy'),
  123. meta: { title: '我的', keepAlive: true }
  124. },
  125. {
  126. path: '/workTime',
  127. name: 'workTime',
  128. component: () => import('@/views/menu/workTime/index'),
  129. meta: { title: '作息管理', keepAlive: false }
  130. },
  131. {
  132. path: '/nfc',
  133. name: 'nfc',
  134. component: () => import('@/views/menu/NFCmanage/index'),
  135. meta: { title: '履职登记', keepAlive: false }
  136. },
  137. {
  138. path: '/lvzhi',
  139. name: 'lvzhi',
  140. component: () => import('@/views/menu/LZRegister/index'),
  141. meta: { title: '履职登记', keepAlive: true }
  142. },
  143. {
  144. path: '/protection',
  145. name: 'protection',
  146. component: () => import('@/views/menu/protection/index'),
  147. meta: { title: '防区状态', keepAlive: false }
  148. },
  149. {
  150. path: '/protection/detail',
  151. name: 'protectionDetail',
  152. component: () => import('@/views/menu/protection/detail'),
  153. meta: { title: '防区信息', keepAlive: false }
  154. },
  155. {
  156. path: '/lz-edit',
  157. name: 'lz-edit',
  158. component: () => import('@/views/menu/LZRegister/edit'),
  159. meta: { title: '履职', keepAlive: false ,hideTabBar:true}
  160. },
  161. {
  162. path: '/monitoringCall',
  163. name: 'monitoringCall',
  164. component: () => import('@/views/menu/monitoringCall/index'),
  165. meta: { title: '监控调阅', keepAlive: true }
  166. },
  167. {
  168. path: '/rehearsalTask',
  169. name: 'rehearsalTask',
  170. component: () => import('@/views/menu/rehearsalTask/index'),
  171. meta: { title: '演练登记', keepAlive: true }
  172. },
  173. {
  174. path: '/rehearsaloptimal',
  175. name: 'rehearsaloptimal',
  176. component: () => import('@/views/menu/rehearsalTask/optimal'),
  177. meta: { title: '优秀案例管理', keepAlive: true }
  178. },
  179. {
  180. path: '/rehearsallearning',
  181. name: 'rehearsallearning',
  182. component: () => import('@/views/menu/rehearsalTask/learning'),
  183. meta: { title: '优秀案例学习', keepAlive: true }
  184. },
  185. {
  186. path: '/educationStatistics',
  187. name: 'educationStatistics',
  188. component: () => import('@/views/menu/educationStatistics/index'),
  189. meta: { title: '教育培训统计报表', keepAlive: false }
  190. },
  191. {
  192. path: '/drillStatistics',
  193. name: 'drillStatistics',
  194. component: () => import('@/views/menu/drillStatistics/index'),
  195. meta: { title: '演练统计排名', keepAlive: false }
  196. },
  197. {
  198. path: '/securityCheckRegister',
  199. name: 'securityCheckRegister',
  200. component: () => import('@/views/menu/securityCheckRegister/index'),
  201. meta: { title: '安全检查登记', keepAlive: true }
  202. },
  203. {
  204. path: '/securityDetail',
  205. name: 'securityDetail',
  206. component: () => import('@/views/menu/securityCheckRegister/detail'),
  207. meta: { title: '安全检查详情', keepAlive: false }
  208. },
  209. {
  210. path: '/addCheckRegister',
  211. name: 'addCheckRegister',
  212. component: () => import('@/views/menu/securityCheckRegister/addCheck'),
  213. meta: { title: '添加检查内容', keepAlive: false ,hideTabBar:true}
  214. },
  215. {
  216. path: '/addWorker',
  217. name: 'addWorker',
  218. component: () => import('@/views/menu/securityCheckRegister/addWorker'),
  219. meta: { title: '选择授权人员', keepAlive: false ,hideTabBar:true}
  220. },
  221. {
  222. path: '/problemItem',
  223. name: 'problemItem',
  224. component: () => import('@/views/menu/problemItem/index'),
  225. meta: { title: '隐患问题清单', keepAlive: true }
  226. },
  227. {
  228. path: '/problemDetail',
  229. name: 'problemDetail',
  230. component: () => import('@/views/menu/problemItem/detail'),
  231. meta: { title: '隐患问题详情', keepAlive: false }
  232. },
  233. ],
  234. },
  235. ]