routes.js 3.6 KB

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