routes.js 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. export default [
  2. {
  3. path: '/',
  4. component: '../layouts/BlankLayout',
  5. routes: [
  6. {
  7. path: '/user',
  8. component: '../layouts/UserLayout',
  9. routes: [
  10. {
  11. name: 'login',
  12. path: '/user/login',
  13. component: './user/login'
  14. }
  15. ]
  16. },
  17. {
  18. path: '/',
  19. component: '../layouts/SecurityLayout',
  20. routes: [
  21. {
  22. path: '/',
  23. component: '../layouts/BasicLayout',
  24. authority: ['admin', 'client_access'],
  25. routes: [
  26. {
  27. path: '/',
  28. redirect: '/customer/contact'
  29. },
  30. {
  31. path: '/workbench',
  32. name: 'workbench',
  33. icon: 'icon-chess',
  34. routes: [
  35. {
  36. path: '/workbench',
  37. redirect: '/workbench/dashboard'
  38. },
  39. {
  40. path: '/workbench/dashboard',
  41. name: 'dashboard',
  42. icon: 'icon-tachometer-alt',
  43. component: './workbench/Dashboard'
  44. }
  45. ]
  46. },
  47. {
  48. path: '/customer',
  49. name: 'customer',
  50. icon: 'icon-address-book-o',
  51. routes: [
  52. {
  53. path: '/customer',
  54. redirect: '/customer/contact',
  55. authority: ['admin', 'client_access']
  56. },
  57. {
  58. path: '/customer/contact',
  59. name: 'contact',
  60. icon: 'icon-address-book',
  61. component: './customer/Contact',
  62. authority: ['admin', 'client_access']
  63. },
  64. {
  65. path: '/customer/company',
  66. name: 'company',
  67. icon: 'icon-building',
  68. component: './customer/Company',
  69. authority: ['admin', 'company_access']
  70. },
  71. {
  72. path: '/customer/business',
  73. name: 'business',
  74. icon: 'icon-usd-circle',
  75. component: './customer/Business'
  76. },
  77. {
  78. path: '/customer/test',
  79. name: 'test',
  80. icon: 'icon-usd-circle',
  81. component: './customer/Test'
  82. }
  83. ]
  84. },
  85. {
  86. path: '/product',
  87. name: 'product',
  88. icon: 'icon-box',
  89. routes: [
  90. {
  91. path: '/product',
  92. redirect: '/product/lock'
  93. },
  94. {
  95. path: '/product/lock',
  96. name: 'lock',
  97. icon: 'icon-magic',
  98. routes: [
  99. {
  100. path: '/product/lock',
  101. redirect: '/product/lock/lockstore'
  102. },
  103. {
  104. path: '/product/lock/lockstore',
  105. name: 'lockstore',
  106. component: './product/lock/Lockstore'
  107. },
  108. {
  109. path: '/product/lock/lockcount',
  110. name: 'lockcount',
  111. component: './product/lock/Lockcount'
  112. }
  113. ]
  114. },
  115. {
  116. path: '/product/cloud',
  117. name: 'cloud',
  118. icon: 'icon-cloud',
  119. routes: [
  120. {
  121. path: '/product/cloud',
  122. redirect: '/product/cloud/building'
  123. },
  124. {
  125. path: '/product/cloud/building',
  126. name: 'build',
  127. component: './product/cloud/Building'
  128. },
  129. {
  130. path: '/product/cloud/curing',
  131. name: 'curing',
  132. component: './product/cloud/Curing'
  133. }
  134. ]
  135. }
  136. ]
  137. },
  138. {
  139. path: '/staff',
  140. name: 'staff',
  141. icon: 'icon-users',
  142. routes: [
  143. {
  144. path: '/staff',
  145. redirect: '/staff/employee'
  146. },
  147. {
  148. path: '/staff/employee',
  149. name: 'employee',
  150. icon: 'icon-users',
  151. component: './Staff/Employee'
  152. }
  153. ]
  154. }
  155. ]
  156. }
  157. ]
  158. }
  159. ]
  160. },
  161. {
  162. component: './404'
  163. }
  164. ]