common.js 2.5 KB

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