routes.js 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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: '/account/settings',
  19. name: 'settings',
  20. hideInMenu: true,
  21. component: './User/Account/Settings'
  22. },
  23. {
  24. path: '/workbench',
  25. name: 'workbench',
  26. icon: 'icon-chess',
  27. routes: [
  28. {
  29. path: '/workbench',
  30. redirect: '/workbench/dashboard'
  31. },
  32. {
  33. path: '/workbench/dashboard',
  34. name: 'dashboard',
  35. icon: 'icon-tachometer-alt',
  36. component: './Workbench/Dashboard',
  37. access: 'authPermDataFilter'
  38. }
  39. ]
  40. },
  41. {
  42. path: '/customer',
  43. name: 'customer',
  44. icon: 'icon-address-book-o',
  45. routes: [
  46. {
  47. path: '/customer',
  48. redirect: '/customer/client'
  49. },
  50. {
  51. path: '/customer/client',
  52. name: 'client',
  53. icon: 'icon-address-book',
  54. component: './Customer/Client',
  55. access: 'authRouteFilter',
  56. validatePerm: true
  57. },
  58. {
  59. path: '/customer/company',
  60. name: 'company',
  61. icon: 'icon-building',
  62. component: './Customer/Company',
  63. access: 'authRouteFilter',
  64. validatePerm: true
  65. },
  66. {
  67. path: '/customer/business',
  68. name: 'business',
  69. icon: 'icon-usd-circle',
  70. component: './Customer/Business',
  71. access: 'authRouteFilter',
  72. validatePerm: true
  73. }
  74. // {
  75. // path: '/customer/test',
  76. // name: 'test',
  77. // icon: 'icon-usd-circle',
  78. // component: './Customer/Test'
  79. // }
  80. ]
  81. },
  82. {
  83. path: '/product',
  84. name: 'product',
  85. icon: 'icon-box',
  86. routes: [
  87. {
  88. path: '/product',
  89. redirect: '/product/lock'
  90. },
  91. {
  92. path: '/product/lock',
  93. name: 'lock',
  94. icon: 'icon-magic',
  95. routes: [
  96. {
  97. path: '/product/lock',
  98. redirect: '/product/lock/lockstore'
  99. },
  100. {
  101. path: '/product/lock/lockstore',
  102. name: 'lockstore',
  103. component: './Product/Lock/LockStore',
  104. access: 'authRouteFilter',
  105. validatePerm: true
  106. }
  107. // {
  108. // path: '/product/lock/lockcount',
  109. // name: 'lockcount',
  110. // component: './Product/Lock/LockCount'
  111. // }
  112. ]
  113. },
  114. {
  115. path: '/product/cloud',
  116. name: 'cloud',
  117. icon: 'icon-cloud',
  118. routes: [
  119. {
  120. path: '/product/cloud',
  121. redirect: '/product/cloud/building'
  122. },
  123. {
  124. path: '/product/cloud/building',
  125. name: 'building',
  126. component: './Product/Cloud'
  127. },
  128. {
  129. path: '/product/cloud/curing',
  130. name: 'curing',
  131. component: './Product/Cloud'
  132. },
  133. {
  134. path: '/product/cloud/highway',
  135. name: 'highway',
  136. component: './Product/Cloud'
  137. },
  138. {
  139. path: '/product/cloud/gs',
  140. name: 'gs',
  141. component: './Product/Cloud'
  142. }
  143. ]
  144. }
  145. ]
  146. },
  147. {
  148. path: 'statistic',
  149. name: 'statistic',
  150. icon: 'icon-tongji',
  151. routes: [
  152. {
  153. path: '/statistic',
  154. redirect: '/statistic/product'
  155. },
  156. {
  157. path: 'product',
  158. name: 'product',
  159. icon: 'icon-chanpin',
  160. routes: [
  161. {
  162. path: '/statistic/product',
  163. redirect: '/statistic/product/software-usage'
  164. },
  165. {
  166. path: 'software-usage',
  167. name: 'software-usage',
  168. component: './Statistic/Product/SoftwareUsage'
  169. },
  170. {
  171. path: 'invoice-aggregate',
  172. name: 'invoice-aggregate',
  173. component: './Statistic/Product/InvoiceAggregate'
  174. }
  175. ]
  176. }
  177. ]
  178. },
  179. {
  180. path: '/hr',
  181. name: 'hr',
  182. icon: 'icon-users',
  183. routes: [
  184. {
  185. path: '/hr',
  186. redirect: '/hr/employee'
  187. },
  188. {
  189. path: '/hr/employee',
  190. name: 'employee',
  191. icon: 'icon-users',
  192. component: './Hr/Employee',
  193. access: 'authRouteFilter'
  194. },
  195. {
  196. path: '/hr/notification',
  197. name: 'notification',
  198. icon: 'icon-commentingo',
  199. component: './Hr/Notification',
  200. access: 'authRouteFilter'
  201. }
  202. ]
  203. },
  204. {
  205. component: './404'
  206. }
  207. ]