routes.js 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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. routes: [
  25. {
  26. path: '/',
  27. redirect: '/workbench'
  28. },
  29. {
  30. path: '/workbench',
  31. name: 'workbench',
  32. icon: 'icon-chess',
  33. routes: [
  34. {
  35. path: '/workbench',
  36. redirect: '/workbench/dashboard'
  37. },
  38. {
  39. path: '/workbench/dashboard',
  40. name: 'dashboard',
  41. icon: 'icon-tachometer-alt',
  42. component: './Workbench/Dashboard'
  43. }
  44. ]
  45. },
  46. {
  47. path: '/customer',
  48. name: 'customer',
  49. icon: 'icon-address-book-o',
  50. routes: [
  51. {
  52. path: '/customer',
  53. redirect: '/customer/client',
  54. authority: ['admin', 'client_access']
  55. },
  56. {
  57. path: '/customer/client',
  58. name: 'client',
  59. icon: 'icon-address-book',
  60. component: './Customer/Client',
  61. authority: ['admin', 'client_access']
  62. },
  63. {
  64. path: '/customer/company',
  65. name: 'company',
  66. icon: 'icon-building',
  67. component: './Customer/Company',
  68. authority: ['admin', 'company_access']
  69. },
  70. {
  71. path: '/customer/business',
  72. name: 'business',
  73. icon: 'icon-usd-circle',
  74. component: './Customer/Business',
  75. authority: ['admin', 'business_access']
  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. authority: ['admin', 'department_access']
  147. },
  148. {
  149. path: '/staff/employee',
  150. name: 'employee',
  151. icon: 'icon-users',
  152. component: './Staff/Employee',
  153. authority: ['admin', 'department_access']
  154. }
  155. ]
  156. }
  157. ]
  158. }
  159. ]
  160. }
  161. ]
  162. },
  163. {
  164. component: './404'
  165. }
  166. ]