routes.js 3.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. export default [
  2. {
  3. path: '/user',
  4. component: '../layouts/UserLayout',
  5. routes: [
  6. {
  7. name: 'login',
  8. path: '/user/login',
  9. component: './user/login',
  10. },
  11. ],
  12. },
  13. {
  14. path: '/',
  15. component: '../layouts/SecurityLayout',
  16. routes: [
  17. {
  18. path: '/',
  19. component: '../layouts/BasicLayout',
  20. authority: ['admin', 'user'],
  21. routes: [
  22. {
  23. path: '/',
  24. redirect: '/welcome',
  25. },
  26. {
  27. path: '/welcome',
  28. name: 'welcome',
  29. icon: 'smile',
  30. component: './Welcome',
  31. },
  32. {
  33. path: '/admin',
  34. name: 'admin',
  35. icon: 'crown',
  36. component: './Admin',
  37. authority: ['admin'],
  38. routes: [
  39. {
  40. path: '/admin/sub-page',
  41. name: 'sub-page',
  42. icon: 'smile',
  43. component: './Welcome',
  44. authority: ['admin'],
  45. },
  46. ],
  47. },
  48. {
  49. path: '/building',
  50. name: '项目管理',
  51. icon: 'control',
  52. component: '../layouts/BlankLayout',
  53. routes: [
  54. {
  55. path: '/building/list',
  56. name: '项目列表',
  57. component: './building/List',
  58. },
  59. {
  60. path: '/building/add',
  61. name: '项目维护',
  62. component: './building/Edit',
  63. hideInMenu: true,
  64. },
  65. {
  66. path: '/building/type',
  67. name: '项目类型',
  68. component: './building/type/index',
  69. },
  70. {
  71. path: '/building/type/edi',
  72. name: '项目类型编辑',
  73. hideInMenu: true,
  74. component: './building/type/edi',
  75. },
  76. {
  77. path: '/building/Developers',
  78. name: '品牌开发商',
  79. component: './building/Developers',
  80. },
  81. {
  82. path: '/building/Developers/Edit',
  83. name: '品牌开发商编辑',
  84. hideInMenu: true,
  85. component: './building/Developers/Edit',
  86. },
  87. ],
  88. },
  89. {
  90. path: '/customer',
  91. name: '客户管理',
  92. component: '../layouts/BlankLayout',
  93. routes: [
  94. {
  95. path: '/customer/customer/list',
  96. name: '客户列表',
  97. component: './customer/customer/index',
  98. },
  99. {
  100. path: '/customer/customerlist/list',
  101. name: '客户列表old',
  102. component: './customer/customerlist/index copy.jsx',
  103. },
  104. {
  105. path: '/customer/customerlist/customerDetail',
  106. name: '私客详情',
  107. hideInMenu: true,
  108. component: './customer/customerlist/customerDetail',
  109. },
  110. {
  111. path: '/customer/drift/list',
  112. name: '游客列表',
  113. component: './customer/drift/index',
  114. },
  115. {
  116. path: '/customer/customerlist/publicCustomerDetail',
  117. name: '公客详情',
  118. hideInMenu: true,
  119. component: './customer/customerlist/publicCustomerDetail',
  120. },
  121. ],
  122. },
  123. {
  124. component: './404',
  125. },
  126. ],
  127. },
  128. {
  129. component: './404',
  130. },
  131. ],
  132. },
  133. {
  134. component: './404',
  135. },
  136. ]