guest.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. /**
  2. * meta 参数说明
  3. * form:表单路由,存在或ture,也要后台配置,前端校验
  4. * mode:功能入口路由,存在或ture,也要后台配置,前端校验
  5. */
  6. const routesGuest = [
  7. /***访客***/
  8. {
  9. path: '/guest',
  10. component: () => import('../views/Layout.vue'),
  11. children: [
  12. //邀请者
  13. {
  14. path: 'from',
  15. component: () => import('../views/Layout.vue'),
  16. children: [
  17. //邀请记录
  18. {
  19. path: 'list',
  20. name: 'GuestFromList',
  21. component: () => import('../views/Guest/From/List.vue'),
  22. meta: {
  23. requireAuth: false,
  24. role: [],
  25. title: '邀请记录',
  26. }
  27. },
  28. //邀请访客
  29. {
  30. path: 'add',
  31. name: 'GuestFromAdd',
  32. component: () => import('../views/Guest/From/Add.vue'),
  33. meta: {
  34. requireAuth: false,
  35. role: [],
  36. title: '邀请访客',
  37. form: true
  38. }
  39. },
  40. //邀请函详情
  41. {
  42. path: 'info',
  43. name: 'GuestFromInfo',
  44. component: () => import('../views/Guest/From/Info.vue'),
  45. meta: {
  46. requireAuth: false,
  47. role: [],
  48. title: '访客详情',
  49. }
  50. },
  51. ]
  52. },
  53. //受邀者
  54. {
  55. path: 'to',
  56. component: () => import('../views/Layout.vue'),
  57. children: [
  58. //访问邀请函
  59. {
  60. path: 'info',
  61. name: 'GuestToInfo',
  62. component: () => import('../views/Guest/To/Info.vue'),
  63. meta: {
  64. requireAuth: false,
  65. role: [],
  66. title: '访问邀请函',
  67. }
  68. },
  69. ]
  70. },
  71. //扫码通行
  72. {
  73. path: 'current',
  74. component: () => import('../views/Layout.vue'),
  75. children: [
  76. //扫码通行
  77. {
  78. path: 'info',
  79. name: 'GuestCurrentInfo',
  80. component: () => import('../views/Guest/Current/Info.vue'),
  81. meta: {
  82. requireAuth: false,
  83. role: [],
  84. title: '访问邀请函',
  85. }
  86. },
  87. //访客身份信息(注册)
  88. {
  89. path: 'add',
  90. name: 'GuestCurrentAdd',
  91. component: () => import('../views/Guest/Current/Add.vue'),
  92. meta: {
  93. requireAuth: false,
  94. role: [],
  95. title: '访客身份信息',
  96. }
  97. },
  98. ]
  99. },
  100. ],
  101. }
  102. ]
  103. export default routesGuest