router.config.js 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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: '/personnelSignature/:id',
  64. name: 'personnelSignature',
  65. component: () => import('@/views/menu/training/components/personnelSignature.vue'),
  66. meta: { title: '培训参与人员签名', keepAlive: false }
  67. },
  68. {
  69. path: '/home',
  70. component: () => import('@/components/layouts/index'),
  71. redirect:'/works',
  72. meta: {
  73. title: '主页',
  74. keepAlive: false
  75. },
  76. children: [
  77. {
  78. path: '/works',
  79. name: 'works',
  80. component: () => import('@/views/home/works'),
  81. meta: { title: '工作台', keepAlive: true }
  82. },
  83. {
  84. path: '/menu',
  85. name: 'menu',
  86. component: () => import('@/views/home/menu'),
  87. meta: { title: '菜单', keepAlive: true },
  88. },
  89. {
  90. path: '/isMy',
  91. name: 'isMy',
  92. component: () => import('@/views/home/isMy'),
  93. meta: { title: '我的', keepAlive: true }
  94. },
  95. {
  96. path: '/workTime',
  97. name: 'workTime',
  98. component: () => import('@/views/menu/workTime/index'),
  99. meta: { title: '作息管理', keepAlive: false }
  100. },
  101. {
  102. path: '/nfc',
  103. name: 'nfc',
  104. component: () => import('@/views/menu/NFCmanage/index'),
  105. meta: { title: '履职登记', keepAlive: false }
  106. },
  107. {
  108. path: '/lvzhi',
  109. name: 'lvzhi',
  110. component: () => import('@/views/menu/LZRegister/index'),
  111. meta: { title: '履职登记', keepAlive: false }
  112. },
  113. {
  114. path: '/protection',
  115. name: 'protection',
  116. component: () => import('@/views/menu/protection/index'),
  117. meta: { title: '防区状态', keepAlive: false }
  118. },
  119. {
  120. path: '/protection/detail',
  121. name: 'protectionDetail',
  122. component: () => import('@/views/menu/protection/detail'),
  123. meta: { title: '防区信息', keepAlive: false }
  124. },
  125. {
  126. path: '/lz-edit',
  127. name: 'lz-edit',
  128. component: () => import('@/views/menu/LZRegister/edit'),
  129. meta: { title: '履职', keepAlive: false ,hideTabBar:true}
  130. },
  131. {
  132. path: '/monitoringCall',
  133. name: 'monitoringCall',
  134. component: () => import('@/views/menu/monitoringCall/index'),
  135. meta: { title: '监控调阅', keepAlive: true }
  136. },
  137. {
  138. path: '/educationStatistics',
  139. name: 'educationStatistics',
  140. component: () => import('@/views/menu/educationStatistics/index'),
  141. meta: { title: '教育培训统计报表', keepAlive: false }
  142. },
  143. ],
  144. },
  145. ]