routes.js 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  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/type',
  61. name: '项目类型',
  62. component: './building/type/index',
  63. },
  64. {
  65. path: '/building/type/edi',
  66. name: '项目类型编辑',
  67. hideInMenu: true,
  68. component: './building/type/edi',
  69. },
  70. {
  71. path: '/building/Developers',
  72. name: '品牌开发商',
  73. component: './building/Developers',
  74. },
  75. {
  76. path: '/building/Developers/Edit',
  77. name: '品牌开发商编辑',
  78. hideInMenu: true,
  79. component: './building/Developers/Edit',
  80. },
  81. ],
  82. },
  83. {
  84. path: '/customer',
  85. name: '客户管理',
  86. component: '../layouts/BlankLayout',
  87. routes: [
  88. {
  89. path: '/customer/customer/list',
  90. name: '客户列表',
  91. component: './customer/customer/index',
  92. },
  93. {
  94. path: '/customer/customerlist/list',
  95. name: '客户列表old',
  96. component: './customer/customerlist/index copy.jsx',
  97. },
  98. {
  99. path: '/customer/customerlist/customerDetail',
  100. name: '私客详情',
  101. hideInMenu: true,
  102. component: './customer/customerlist/customerDetail',
  103. },
  104. {
  105. path: '/customer/drift/list',
  106. name: '游客列表',
  107. component: './customer/drift/index',
  108. },
  109. {
  110. path: '/customer/customerlist/publicCustomerDetail',
  111. name: '公客详情',
  112. hideInMenu: true,
  113. component: './customer/customerlist/publicCustomerDetail',
  114. },
  115. ],
  116. },
  117. {
  118. component: './404',
  119. },
  120. ],
  121. },
  122. {
  123. component: './404',
  124. },
  125. ],
  126. },
  127. {
  128. component: './404',
  129. },
  130. ]