router.config.js 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  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: '/evaluate/:id',
  94. name: 'evaluate',
  95. component: () => import('@/views/menu/resumptionEvaluate/evaluate.vue'),
  96. meta: { title: '评价', keepAlive: false }
  97. },
  98. {
  99. path: '/commentSign/:id',
  100. name: 'commentSign',
  101. component: () => import('@/views/menu/rehearsalTask/components/rehearsalTaskSign.vue'),
  102. meta: { title: '演练详情', keepAlive: false }
  103. },
  104. {
  105. path: '/cockpit',
  106. name: 'cockpit',
  107. component: () => import('@/views/menu/cockpit/index.vue'),
  108. meta: { title: '驾驶舱', keepAlive: false ,hideTabBar:false}
  109. },
  110. {
  111. path: '/home',
  112. component: () => import('@/components/layouts/index'),
  113. redirect:'/works',
  114. meta: {
  115. title: '主页',
  116. keepAlive: false
  117. },
  118. children: [
  119. {
  120. path: '/works',
  121. name: 'works',
  122. component: () => import('@/views/home/works'),
  123. meta: { title: '工作台', keepAlive: false }
  124. },
  125. {
  126. path: '/menu',
  127. name: 'menu',
  128. component: () => import('@/views/home/menu'),
  129. meta: { title: '菜单', keepAlive: false },
  130. },
  131. {
  132. path: '/isMy',
  133. name: 'isMy',
  134. component: () => import('@/views/home/isMy'),
  135. meta: { title: '我的', keepAlive: true }
  136. },
  137. {
  138. path: '/message',
  139. name: 'message',
  140. component: () => import('@/views/menu/message/index'),
  141. meta: { title: '消息中心', keepAlive: false }
  142. },
  143. {
  144. path: '/workTime',
  145. name: 'workTime',
  146. component: () => import('@/views/menu/workTime/index'),
  147. meta: { title: '作息管理', keepAlive: false }
  148. },
  149. {
  150. path: '/nfc',
  151. name: 'nfc',
  152. component: () => import('@/views/menu/NFCmanage/index'),
  153. meta: { title: 'NFC管理', keepAlive: false }
  154. },
  155. {
  156. path: '/protection',
  157. name: 'protection',
  158. component: () => import('@/views/menu/protection/index'),
  159. meta: { title: '布撤防状态登记', keepAlive: false }
  160. },
  161. {
  162. path: '/protection/detail',
  163. name: 'protectionDetail',
  164. component: () => import('@/views/menu/protection/detail'),
  165. meta: { title: '控制器信息', keepAlive: false }
  166. },
  167. {
  168. path: '/monitoringCall',
  169. name: 'monitoringCall',
  170. component: () => import('@/views/menu/monitoringCall/index'),
  171. meta: { title: '监控调阅', keepAlive: false }
  172. },
  173. {
  174. path: '/resumptionEvaluate',
  175. name: 'resumptionEvaluate',
  176. component: () => import('@/views/menu/resumptionEvaluate/index'),
  177. meta: { title: '外包履职评价', keepAlive: false }
  178. },
  179. {
  180. path: '/rehearsalTask',
  181. name: 'rehearsalTask',
  182. component: () => import('@/views/menu/rehearsalTask/index'),
  183. meta: { title: '演练登记', keepAlive: false }
  184. },
  185. {
  186. path: '/rehearsaloptimal',
  187. name: 'rehearsaloptimal',
  188. component: () => import('@/views/menu/rehearsalTask/optimal'),
  189. meta: { title: '优秀案例管理', keepAlive: false }
  190. },
  191. {
  192. path: '/rehearsallearning',
  193. name: 'rehearsallearning',
  194. component: () => import('@/views/menu/rehearsalTask/learning'),
  195. meta: { title: '优秀案例学习', keepAlive: false }
  196. },
  197. {
  198. path: '/educationStatistics',
  199. name: 'educationStatistics',
  200. component: () => import('@/views/menu/educationStatistics/index'),
  201. meta: { title: '教育培训统计报表', keepAlive: false }
  202. },
  203. {
  204. path: '/drillStatistics',
  205. name: 'drillStatistics',
  206. component: () => import('@/views/menu/drillStatistics/index'),
  207. meta: { title: '演练统计排名', keepAlive: false }
  208. },
  209. {
  210. path: '/securityCheckRegister',
  211. name: 'securityCheckRegister',
  212. component: () => import('@/views/menu/securityCheckRegister/index'),
  213. meta: { title: '安全检查登记', keepAlive: false }
  214. },
  215. {
  216. path: '/securityDetail',
  217. name: 'securityDetail',
  218. component: () => import('@/views/menu/securityCheckRegister/detail'),
  219. meta: { title: '安全检查详情', keepAlive: false ,hideTabBar:true}
  220. },
  221. {
  222. path: '/addWorker',
  223. name: 'addWorker',
  224. component: () => import('@/views/menu/securityCheckRegister/addWorker'),
  225. meta: { title: '选择授权人员', keepAlive: false ,hideTabBar:true}
  226. },
  227. {
  228. path: '/problemItem',
  229. name: 'problemItem',
  230. component: () => import('@/views/menu/problemItem/index'),
  231. meta: { title: '隐患问题清单', keepAlive: false }
  232. },
  233. {
  234. path: '/problemDetail',
  235. name: 'problemDetail',
  236. component: () => import('@/views/menu/problemItem/detail'),
  237. meta: { title: '隐患问题详情', keepAlive: false }
  238. },
  239. {
  240. path: '/resumption',
  241. name: 'resumption',
  242. component: () => import('@/views/menu/resumption/list.vue'),
  243. meta: { title: '履职登记', keepAlive: true }
  244. },
  245. {
  246. path: '/resumption_detail',
  247. name: 'resumption_detail',
  248. component: () => import('@/views/menu/resumption/detail.vue'),
  249. meta: { title: '履职', keepAlive: false ,hideTabBar:true}
  250. },
  251. {
  252. path: '/safetyBook',
  253. name: 'safetyBook',
  254. component: () => import('@/views/menu/safetyBook/index.vue'),
  255. meta: { title: '安全责任书', keepAlive: false ,hideTabBar:false}
  256. },
  257. {
  258. path: '/safetyBookDetail',
  259. name: 'safetyBookDetail',
  260. component: () => import('@/views/menu/safetyBook/detail.vue'),
  261. meta: { title: '责任书详情', keepAlive: false ,hideTabBar:true}
  262. },
  263. {
  264. path: '/visitRegister',
  265. name: 'visitRegister',
  266. component: () => import('@/views/menu/visitRegister/index.vue'),
  267. meta: { title: '出入事项申请', keepAlive: false ,hideTabBar:false}
  268. },
  269. {
  270. path: '/visitAdd',
  271. name: 'visitAdd',
  272. component: () => import('@/views/menu/visitRegister/add.vue'),
  273. meta: { title: '新增申请', keepAlive: false ,hideTabBar:true}
  274. },
  275. {
  276. path: '/visitDetail',
  277. name: 'visitDetail',
  278. component: () => import('@/views/menu/visitRegister/detail.vue'),
  279. meta: { title: '申请详情', keepAlive: false ,hideTabBar:true}
  280. },
  281. {
  282. path: '/visitCheck',
  283. name: 'visitCheck',
  284. component: () => import('@/views/menu/visitCheck/index.vue'),
  285. meta: { title: '出入事项审批', keepAlive: false ,hideTabBar:false}
  286. },
  287. {
  288. path: '/visitCheckDetail',
  289. name: 'visitCheckDetail',
  290. component: () => import('@/views/menu/visitCheck/detail.vue'),
  291. meta: { title: '事项审批', keepAlive: false ,hideTabBar:true}
  292. },
  293. {
  294. path: '/visitRecord',
  295. name: 'visitRecord',
  296. component: () => import('@/views/menu/visitRecord/index.vue'),
  297. meta: { title: '出入登记', keepAlive: false ,hideTabBar:false}
  298. },
  299. {
  300. path: '/visitRecordDetail',
  301. name: 'visitRecordDetail',
  302. component: () => import('@/views/menu/visitRecord/detail.vue'),
  303. meta: { title: '出入人员登记', keepAlive: false ,hideTabBar:true}
  304. },
  305. ],
  306. },
  307. ]