routes.js 3.2 KB

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