router.config.js 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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: '/rehearsalTaskSign/:id',
  82. name: 'rehearsalTaskSign',
  83. component: () => import('@/views/menu/rehearsalTask/components/rehearsalTaskSign.vue'),
  84. meta: { title: '演练登记签名', keepAlive: false }
  85. },
  86. {
  87. path: '/home',
  88. component: () => import('@/components/layouts/index'),
  89. redirect:'/works',
  90. meta: {
  91. title: '主页',
  92. keepAlive: false
  93. },
  94. children: [
  95. {
  96. path: '/works',
  97. name: 'works',
  98. component: () => import('@/views/home/works'),
  99. meta: { title: '工作台', keepAlive: true }
  100. },
  101. {
  102. path: '/menu',
  103. name: 'menu',
  104. component: () => import('@/views/home/menu'),
  105. meta: { title: '菜单', keepAlive: true },
  106. },
  107. {
  108. path: '/isMy',
  109. name: 'isMy',
  110. component: () => import('@/views/home/isMy'),
  111. meta: { title: '我的', keepAlive: true }
  112. },
  113. {
  114. path: '/workTime',
  115. name: 'workTime',
  116. component: () => import('@/views/menu/workTime/index'),
  117. meta: { title: '作息管理', keepAlive: false }
  118. },
  119. {
  120. path: '/nfc',
  121. name: 'nfc',
  122. component: () => import('@/views/menu/NFCmanage/index'),
  123. meta: { title: '履职登记', keepAlive: false }
  124. },
  125. {
  126. path: '/lvzhi',
  127. name: 'lvzhi',
  128. component: () => import('@/views/menu/LZRegister/index'),
  129. meta: { title: '履职登记', keepAlive: true }
  130. },
  131. {
  132. path: '/protection',
  133. name: 'protection',
  134. component: () => import('@/views/menu/protection/index'),
  135. meta: { title: '防区状态', keepAlive: false }
  136. },
  137. {
  138. path: '/protection/detail',
  139. name: 'protectionDetail',
  140. component: () => import('@/views/menu/protection/detail'),
  141. meta: { title: '防区信息', keepAlive: false }
  142. },
  143. {
  144. path: '/lz-edit',
  145. name: 'lz-edit',
  146. component: () => import('@/views/menu/LZRegister/edit'),
  147. meta: { title: '履职', keepAlive: false ,hideTabBar:true}
  148. },
  149. {
  150. path: '/monitoringCall',
  151. name: 'monitoringCall',
  152. component: () => import('@/views/menu/monitoringCall/index'),
  153. meta: { title: '监控调阅', keepAlive: true }
  154. },
  155. {
  156. path: '/rehearsalTask',
  157. name: 'rehearsalTask',
  158. component: () => import('@/views/menu/rehearsalTask/index'),
  159. meta: { title: '演练登记', keepAlive: true }
  160. },
  161. {
  162. path: '/educationStatistics',
  163. name: 'educationStatistics',
  164. component: () => import('@/views/menu/educationStatistics/index'),
  165. meta: { title: '教育培训统计报表', keepAlive: false }
  166. },
  167. {
  168. path: '/securityCheckRegister',
  169. name: 'securityCheckRegister',
  170. component: () => import('@/views/menu/securityCheckRegister/index'),
  171. meta: { title: '安全检查登记', keepAlive: false }
  172. },
  173. {
  174. path: '/problemItem',
  175. name: 'problemItem',
  176. component: () => import('@/views/menu/problemItem/index'),
  177. meta: { title: '隐患问题清单', keepAlive: false }
  178. },
  179. {
  180. path: '/problemDetail',
  181. name: 'problemDetail',
  182. component: () => import('@/views/menu/problemItem/detail'),
  183. meta: { title: '隐患问题详情', keepAlive: false }
  184. },
  185. ],
  186. },
  187. ]