routes.js 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296
  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-gongzuotai',
  27. routes: [
  28. {
  29. path: '/workbench',
  30. redirect: '/workbench/dashboard'
  31. },
  32. {
  33. path: '/workbench/dashboard',
  34. name: 'dashboard',
  35. icon: 'icon-yibiaopan',
  36. component: './Workbench/Dashboard',
  37. access: 'authPermDataFilter'
  38. }
  39. ]
  40. },
  41. {
  42. path: '/customer',
  43. name: 'customer',
  44. icon: 'icon-kehu',
  45. routes: [
  46. {
  47. path: '/customer',
  48. redirect: '/customer/client'
  49. },
  50. {
  51. path: '/customer/client',
  52. name: 'client',
  53. icon: 'icon-kehu2',
  54. component: './Customer/Client',
  55. access: 'authRouteFilter',
  56. validatePerm: true
  57. },
  58. {
  59. path: '/customer/company',
  60. name: 'company',
  61. icon: 'icon-danwei',
  62. component: './Customer/Company',
  63. access: 'authRouteFilter',
  64. validatePerm: true
  65. },
  66. {
  67. path: '/customer/business',
  68. name: 'business',
  69. icon: 'icon-shangji',
  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-chanpin',
  86. routes: [
  87. {
  88. path: '/product',
  89. redirect: '/product/lock'
  90. },
  91. {
  92. path: '/product/lock',
  93. name: 'lock',
  94. icon: 'icon-ruanjiansuo',
  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-yunbanguanli',
  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. access: 'authRouteFilter'
  128. },
  129. {
  130. path: '/product/cloud/curing',
  131. name: 'curing',
  132. component: './Product/Cloud',
  133. access: 'authRouteFilter'
  134. },
  135. {
  136. path: '/product/cloud/highway',
  137. name: 'highway',
  138. component: './Product/Cloud',
  139. access: 'authRouteFilter'
  140. },
  141. {
  142. path: '/product/cloud/gs',
  143. name: 'gs',
  144. component: './Product/Cloud',
  145. access: 'authRouteFilter'
  146. }
  147. ]
  148. },
  149. {
  150. path: '/product/road',
  151. name: 'road',
  152. icon: 'icon-a-dasikong20',
  153. routes: [
  154. {
  155. path: '/product/road',
  156. redirect: '/product/road/personal'
  157. },
  158. {
  159. path: '/product/road/personal',
  160. name: 'personal',
  161. component: './Product/Road/Personal',
  162. access: 'authRouteFilter'
  163. },
  164. {
  165. path: '/product/road/enterprise',
  166. name: 'enterprise',
  167. component: './Product/Road/Enterprise',
  168. access: 'authRouteFilter'
  169. // validatePerm: true
  170. }
  171. ]
  172. }
  173. ]
  174. },
  175. {
  176. path: '/statistic',
  177. name: 'statistic',
  178. icon: 'icon-tongji',
  179. routes: [
  180. {
  181. path: '/statistic',
  182. redirect: '/statistic/product'
  183. },
  184. {
  185. path: '/statistic/product',
  186. name: 'product',
  187. icon: 'icon-chanpinxiaoshou',
  188. routes: [
  189. {
  190. path: '/statistic/product',
  191. redirect: '/statistic/product/usage'
  192. },
  193. {
  194. path: '/statistic/product/usage',
  195. name: 'usage',
  196. component: './Statistic/Product/SoftwareUsage',
  197. access: 'authRouteFilter',
  198. validatePerm: true
  199. },
  200. {
  201. path: '/statistic/product/aggregate',
  202. name: 'aggregate',
  203. component: './Statistic/Product/InvoiceAggregate',
  204. access: 'authRouteFilter',
  205. validatePerm: true
  206. },
  207. {
  208. path: '/statistic/product/trends',
  209. name: 'trends',
  210. component: './Statistic/Product/InvoiceTrends',
  211. access: 'authRouteFilter',
  212. validatePerm: true
  213. },
  214. {
  215. path: '/statistic/product/receivables',
  216. name: 'receivables',
  217. component: './Statistic/Product/InvoiceReceivables',
  218. access: 'authRouteFilter'
  219. }
  220. ]
  221. },
  222. {
  223. path: '/statistic/customer',
  224. name: 'customer',
  225. icon: 'icon-kehushuju',
  226. routes: [
  227. {
  228. path: '/statistic/customer',
  229. redirect: '/statistic/customer/additions'
  230. },
  231. {
  232. path: '/statistic/customer/additions',
  233. name: 'additions',
  234. component: './Statistic/Customer/CustomerAdditions',
  235. access: 'authRouteFilter'
  236. }
  237. ]
  238. }
  239. ]
  240. },
  241. {
  242. path: 'http://cld.smartcost.com.cn/saeaBorad',
  243. name: 'saeaBorad',
  244. icon: 'icon-caiwufeiyong'
  245. },
  246. {
  247. path: 'http://cld.smartcost.com.cn/invoice',
  248. name: 'invoice',
  249. icon: 'icon-kaipiaohetong'
  250. },
  251. {
  252. path: 'http://cld.smartcost.com.cn/holidayborad',
  253. name: 'holidayborad',
  254. icon: 'icon-kaoqin'
  255. },
  256. {
  257. path: '/hr',
  258. name: 'hr',
  259. icon: 'icon-renzi',
  260. routes: [
  261. {
  262. path: '/hr',
  263. redirect: '/hr/contacts'
  264. },
  265. {
  266. path: '/hr/contacts',
  267. name: 'contacts',
  268. icon: 'icon-tongxunlu',
  269. component: './Hr/Contacts'
  270. // access: 'authRouteFilter'
  271. },
  272. {
  273. path: '/hr/employee',
  274. name: 'employee',
  275. icon: 'icon-bumenyuyuangong',
  276. component: './Hr/Employee',
  277. access: 'authRouteFilter'
  278. },
  279. {
  280. path: '/hr/notification',
  281. name: 'notification',
  282. icon: 'icon-tongzhizhongxin',
  283. component: './Hr/Notification',
  284. access: 'authRouteFilter'
  285. },
  286. {
  287. path: 'http://cld.smartcost.com.cn/hr',
  288. name: 'oldHr',
  289. icon: 'icon-a-CLD10renzi'
  290. }
  291. ]
  292. },
  293. {
  294. component: './404'
  295. }
  296. ]