routes.js 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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/company'
  43. },
  44. {
  45. path: '/customer/company',
  46. name: 'company',
  47. icon: 'icon-building',
  48. component: './Customer/Company',
  49. access: 'authRouteFilter',
  50. validatePerm: true
  51. },
  52. {
  53. path: '/customer/client',
  54. name: 'client',
  55. icon: 'icon-address-book',
  56. component: './Customer/Client',
  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: 'build',
  120. // component: './Product/Cloud/Building'
  121. // },
  122. // {
  123. // path: '/product/cloud/curing',
  124. // name: 'curing',
  125. // component: './Product/Cloud/Curing'
  126. // }
  127. // ]
  128. // }
  129. ]
  130. },
  131. {
  132. path: '/hr',
  133. name: 'hr',
  134. icon: 'icon-users',
  135. routes: [
  136. {
  137. path: '/hr',
  138. redirect: '/hr/employee'
  139. },
  140. {
  141. path: '/hr/employee',
  142. name: 'employee',
  143. icon: 'icon-users',
  144. component: './Hr/Employee',
  145. access: 'authRouteFilter'
  146. }
  147. ]
  148. },
  149. {
  150. component: './404'
  151. }
  152. ]