routes.js 3.0 KB

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