routes.js 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  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. access: 'authPermDataFilter'
  32. }
  33. ]
  34. },
  35. {
  36. path: '/customer',
  37. name: 'customer',
  38. icon: 'icon-address-book-o',
  39. routes: [
  40. {
  41. path: '/customer',
  42. redirect: '/customer/client'
  43. },
  44. {
  45. path: '/customer/client',
  46. name: 'client',
  47. icon: 'icon-address-book',
  48. component: './Customer/Client',
  49. access: 'authRouteFilter',
  50. validatePerm: true
  51. },
  52. {
  53. path: '/customer/company',
  54. name: 'company',
  55. icon: 'icon-building',
  56. component: './Customer/Company',
  57. access: 'authRouteFilter',
  58. validatePerm: true
  59. },
  60. {
  61. path: '/customer/business',
  62. name: 'business',
  63. icon: 'icon-usd-circle',
  64. component: './Customer/Business',
  65. access: 'authRouteFilter',
  66. validatePerm: true
  67. }
  68. // {
  69. // path: '/customer/test',
  70. // name: 'test',
  71. // icon: 'icon-usd-circle',
  72. // component: './Customer/Test'
  73. // }
  74. ]
  75. },
  76. {
  77. path: '/product',
  78. name: 'product',
  79. icon: 'icon-box',
  80. routes: [
  81. {
  82. path: '/product',
  83. redirect: '/product/lock'
  84. },
  85. {
  86. path: '/product/lock',
  87. name: 'lock',
  88. icon: 'icon-magic',
  89. routes: [
  90. {
  91. path: '/product/lock',
  92. redirect: '/product/lock/lockstore'
  93. },
  94. {
  95. path: '/product/lock/lockstore',
  96. name: 'lockstore',
  97. component: './Product/Lock/LockStore',
  98. access: 'authRouteFilter',
  99. validatePerm: true
  100. }
  101. // {
  102. // path: '/product/lock/lockcount',
  103. // name: 'lockcount',
  104. // component: './Product/Lock/LockCount'
  105. // }
  106. ]
  107. },
  108. {
  109. path: '/product/cloud',
  110. name: 'cloud',
  111. icon: 'icon-cloud',
  112. routes: [
  113. {
  114. path: '/product/cloud',
  115. redirect: '/product/cloud/building'
  116. },
  117. {
  118. path: '/product/cloud/building',
  119. name: 'building',
  120. component: './Product/Cloud'
  121. },
  122. {
  123. path: '/product/cloud/curing',
  124. name: 'curing',
  125. component: './Product/Cloud'
  126. },
  127. {
  128. path: '/product/cloud/highway',
  129. name: 'highway',
  130. component: './Product/Cloud'
  131. },
  132. {
  133. path: '/product/cloud/gs',
  134. name: 'gs',
  135. component: './Product/Cloud'
  136. }
  137. ]
  138. }
  139. ]
  140. },
  141. {
  142. path: '/hr',
  143. name: 'hr',
  144. icon: 'icon-users',
  145. routes: [
  146. {
  147. path: '/hr',
  148. redirect: '/hr/employee'
  149. },
  150. {
  151. path: '/hr/employee',
  152. name: 'employee',
  153. icon: 'icon-users',
  154. component: './Hr/Employee',
  155. access: 'authRouteFilter'
  156. }
  157. ]
  158. },
  159. {
  160. component: './404'
  161. }
  162. ]