common.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. /**
  2. * meta 参数说明
  3. * form:表单路由,存在或ture,也要后台配置,前端校验
  4. * mode:功能入口路由,存在或ture,也要后台配置,前端校验
  5. */
  6. const routesCommon = [
  7. /***公共***/
  8. {
  9. path: '/common',
  10. component: () => import('../views/Layout.vue'),
  11. children: [
  12. //消息
  13. {
  14. path: 'notice',
  15. component: () => import('../views/Layout.vue'),
  16. children: [
  17. //消息列表
  18. {
  19. path: '',
  20. name: 'CommonNotice',
  21. component: () => import('../views/Common/Notice/Home.vue'),
  22. meta: {
  23. requireAuth: false,
  24. role: [],
  25. title: '消息列表',
  26. }
  27. },
  28. //消息详情
  29. {
  30. path: 'info',
  31. name: 'CommonNoticeInfo',
  32. component: () => import('../views/Common/Notice/Info.vue'),
  33. meta: {
  34. requireAuth: false,
  35. role: [],
  36. title: '消息详情',
  37. }
  38. },
  39. //发送通知
  40. {
  41. path: 'send',
  42. name: 'CommonNoticeSend',
  43. component: () => import('../views/Common/Notice/Send.vue'),
  44. meta: {
  45. requireAuth: true,
  46. role: [],
  47. title: '发送通知',
  48. mode: true
  49. }
  50. },
  51. ]
  52. },
  53. //健康
  54. {
  55. path: 'health',
  56. component: () => import('../views/Layout.vue'),
  57. children: [
  58. //健康证
  59. {
  60. path: 'cert',
  61. name: 'CommonHealthCert',
  62. component: () => import('../views/Common/Health/Cert.vue'),
  63. meta: {
  64. requireAuth: true,
  65. role: [],
  66. title: '健康证',
  67. mode: true
  68. }
  69. },
  70. //测温记录
  71. {
  72. path: 'temperatureRecord',
  73. name: 'CommonHealthTemperatureRecord',
  74. component: () => import('../views/Common/Health/TemperatureRecord.vue'),
  75. meta: {
  76. requireAuth: true,
  77. role: [],
  78. title: '测温记录',
  79. mode: true
  80. }
  81. },
  82. //测温详情
  83. {
  84. path: 'temperatureInfo',
  85. name: 'CommonHealthTemperatureInfo',
  86. component: () => import('@/views/Common/Health/TemperatureInfo.vue'),
  87. meta: {
  88. requireAuth: true,
  89. role: [],
  90. title: '测温详情',
  91. }
  92. },
  93. ]
  94. },
  95. //设备
  96. {
  97. path: 'device',
  98. component: () => import('../views/Layout.vue'),
  99. children: [
  100. //设备列表
  101. {
  102. path: 'list',
  103. name: 'CommonDeviceList',
  104. component: () => import('@/views/Common/Device/List.vue'),
  105. meta: {
  106. requireAuth: true,
  107. role: [],
  108. title: '设备列表',
  109. mode: true
  110. }
  111. },
  112. //手机开门
  113. {
  114. path: 'openDoor',
  115. name: 'CommonDeviceOpenDoor',
  116. component: () => import('../views/Common/Device/OpenDoor.vue'),
  117. meta: {
  118. requireAuth: true,
  119. role: [],
  120. title: '手机开门',
  121. mode: true
  122. }
  123. },
  124. ],
  125. },
  126. ],
  127. }
  128. ]
  129. export default routesCommon