routes.js 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. export default [
  2. {
  3. path: '/user',
  4. component: '../layouts/UserLayout',
  5. routes: [
  6. {
  7. name: 'login',
  8. path: '/user/login',
  9. component: './user/login'
  10. }
  11. ]
  12. },
  13. {
  14. path: '/',
  15. component: '../layouts/SecurityLayout',
  16. routes: [
  17. {
  18. path: '/',
  19. component: '../layouts/BasicLayout',
  20. authority: ['admin', 'user'],
  21. routes: [
  22. // {
  23. // path: '/',
  24. // redirect: '/welcome',
  25. // },
  26. // {
  27. // path: '/welcome',
  28. // name: 'welcome',
  29. // (icon: 'smile'),
  30. // component: './Welcome',
  31. // },
  32. {
  33. path: '/workbench',
  34. name: 'workbench',
  35. icon: 'table-lamp',
  36. routes: [
  37. {
  38. path: '/workbench/workbench',
  39. name: 'workbench',
  40. icon: 'list',
  41. component: './Workbench/workbench'
  42. }
  43. ]
  44. },
  45. {
  46. path: '/customer',
  47. name: 'customer',
  48. icon: 'address-book',
  49. routes: [
  50. {
  51. path: '/customer/contact',
  52. name: 'contact',
  53. icon: 'user-business',
  54. component: './Customer/Contact'
  55. },
  56. {
  57. path: '/customer/company',
  58. name: 'company',
  59. icon: 'city',
  60. component: './Customer/Company'
  61. },
  62. {
  63. path: '/customer/finance',
  64. name: 'finance',
  65. icon: 'finance',
  66. component: './Customer/Finance'
  67. },
  68. {
  69. path: '/customer/test',
  70. name: 'test',
  71. icon: 'alarm',
  72. component: './Customer/Test'
  73. }
  74. ]
  75. },
  76. {
  77. path: '/product',
  78. name: 'product',
  79. icon: 'ad-product',
  80. routes: [
  81. {
  82. path: '/product/lock',
  83. name: 'lock',
  84. icon: 'disk-one',
  85. routes: [
  86. {
  87. path: '/product/lock/lockstore',
  88. name: 'lockstore',
  89. component: './Product/Lock/Lockstore'
  90. },
  91. {
  92. path: '/product/lock/lockcount',
  93. name: 'lockcount',
  94. component: './Product/Lock/Lockcount'
  95. }
  96. ]
  97. },
  98. {
  99. path: '/product/cloud',
  100. name: 'cloud',
  101. icon: 'network-drive',
  102. routes: [
  103. {
  104. path: '/product/cloud/building',
  105. name: 'build',
  106. component: './Product/Cloud/Building'
  107. },
  108. {
  109. path: '/product/cloud/curing',
  110. name: 'curing',
  111. component: './Product/Cloud/Curing'
  112. }
  113. ]
  114. }
  115. ]
  116. }
  117. // {
  118. // path: '/admin',
  119. // name: 'admin',
  120. // icon: 'crown',
  121. // component: './Admin',
  122. // authority: ['admin'],
  123. // routes: [
  124. // {
  125. // path: '/admin/sub-page',
  126. // name: 'sub-page',
  127. // icon: 'smile',
  128. // component: './Welcome',
  129. // authority: ['admin'],
  130. // },
  131. // ],
  132. // },
  133. // {
  134. // name: 'list.table-list',
  135. // icon: 'table',
  136. // path: '/list',
  137. // component: './ListTableList',
  138. // },
  139. // {
  140. // component: './404',
  141. // },
  142. ]
  143. },
  144. {
  145. component: './404'
  146. }
  147. ]
  148. },
  149. {
  150. component: './404'
  151. }
  152. ]