routes.js 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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: 'authRouteFilterWithPerm'
  56. },
  57. {
  58. path: '/customer/company',
  59. name: 'company',
  60. icon: 'icon-danwei',
  61. component: './Customer/Company',
  62. access: 'authRouteFilterWithPerm'
  63. },
  64. {
  65. path: '/customer/business',
  66. name: 'business',
  67. icon: 'icon-shangji',
  68. component: './Customer/Business',
  69. access: 'authRouteFilterWithPerm'
  70. }
  71. // {
  72. // path: '/customer/test',
  73. // name: 'test',
  74. // icon: 'icon-usd-circle',
  75. // component: './Customer/Test'
  76. // }
  77. ]
  78. },
  79. {
  80. path: '/product',
  81. name: 'product',
  82. icon: 'icon-chanpin',
  83. routes: [
  84. {
  85. path: '/product',
  86. redirect: '/product/lock'
  87. },
  88. {
  89. path: '/product/lock',
  90. name: 'lock',
  91. icon: 'icon-ruanjiansuo',
  92. routes: [
  93. {
  94. path: '/product/lock',
  95. redirect: '/product/lock/lockstore'
  96. },
  97. {
  98. path: '/product/lock/lockstore',
  99. name: 'lockstore',
  100. component: './Product/Lock/LockStore',
  101. access: 'authRouteFilterWithPerm'
  102. }
  103. // {
  104. // path: '/product/lock/lockcount',
  105. // name: 'lockcount',
  106. // component: './Product/Lock/LockCount'
  107. // }
  108. ]
  109. },
  110. {
  111. path: '/product/cloud',
  112. name: 'cloud',
  113. icon: 'icon-yunbanguanli',
  114. routes: [
  115. {
  116. path: '/product/cloud',
  117. redirect: '/product/cloud/building'
  118. },
  119. {
  120. path: '/product/cloud/building',
  121. name: 'building',
  122. component: './Product/Cloud',
  123. access: 'authRouteFilter'
  124. },
  125. {
  126. path: '/product/cloud/curing',
  127. name: 'curing',
  128. component: './Product/Cloud',
  129. access: 'authRouteFilter'
  130. },
  131. {
  132. path: '/product/cloud/highway',
  133. name: 'highway',
  134. component: './Product/Cloud',
  135. access: 'authRouteFilter'
  136. },
  137. {
  138. path: '/product/cloud/gs',
  139. name: 'gs',
  140. component: './Product/Cloud',
  141. access: 'authRouteFilter'
  142. }
  143. ]
  144. },
  145. {
  146. path: '/product/road',
  147. name: 'road',
  148. icon: 'icon-a-dasikong20',
  149. routes: [
  150. {
  151. path: '/product/road',
  152. redirect: '/product/road/personal'
  153. },
  154. {
  155. path: '/product/road/personal',
  156. name: 'personal',
  157. component: './Product/Road/Personal',
  158. access: 'authRouteFilter'
  159. },
  160. {
  161. path: '/product/road/enterprise',
  162. name: 'enterprise',
  163. component: './Product/Road/Enterprise',
  164. access: 'authRouteFilter'
  165. //
  166. }
  167. ]
  168. }
  169. ]
  170. },
  171. {
  172. path: '/statistic',
  173. name: 'statistic',
  174. icon: 'icon-tongji',
  175. routes: [
  176. {
  177. path: '/statistic',
  178. redirect: '/statistic/product'
  179. },
  180. {
  181. path: '/statistic/product',
  182. name: 'product',
  183. icon: 'icon-chanpinxiaoshou',
  184. routes: [
  185. {
  186. path: '/statistic/product',
  187. redirect: '/statistic/product/usage'
  188. },
  189. {
  190. path: '/statistic/product/usage',
  191. name: 'usage',
  192. component: './Statistic/Product/SoftwareUsage',
  193. access: 'authRouteFilterWithPerm'
  194. },
  195. {
  196. path: '/statistic/product/aggregate',
  197. name: 'aggregate',
  198. component: './Statistic/Product/InvoiceAggregate',
  199. access: 'authRouteFilterWithPerm'
  200. },
  201. {
  202. path: '/statistic/product/trends',
  203. name: 'trends',
  204. component: './Statistic/Product/InvoiceTrends',
  205. access: 'authRouteFilterWithPerm'
  206. },
  207. {
  208. path: '/statistic/product/receivables',
  209. name: 'receivables',
  210. component: './Statistic/Product/InvoiceReceivables',
  211. access: 'authRouteFilter'
  212. }
  213. ]
  214. },
  215. {
  216. path: '/statistic/customer',
  217. name: 'customer',
  218. icon: 'icon-kehushuju',
  219. routes: [
  220. {
  221. path: '/statistic/customer',
  222. redirect: '/statistic/customer/additions'
  223. },
  224. {
  225. path: '/statistic/customer/additions',
  226. name: 'additions',
  227. component: './Statistic/Customer/CustomerAdditions',
  228. access: 'authRouteFilter'
  229. },
  230. {
  231. path: '/statistic/customer/source',
  232. name: 'source',
  233. component: './Statistic/Customer/Source',
  234. access: 'authRouteFilter'
  235. },
  236. {
  237. path: '/statistic/customer/nature',
  238. name: 'nature',
  239. component: './Statistic/Customer/Nature',
  240. access: 'authRouteFilter'
  241. }
  242. ]
  243. }
  244. ]
  245. },
  246. {
  247. path: 'http://cld.smartcost.com.cn/saeaBorad',
  248. name: 'saeaBorad',
  249. icon: 'icon-caiwufeiyong'
  250. },
  251. {
  252. path: 'http://cld.smartcost.com.cn/invoice',
  253. name: 'invoice',
  254. icon: 'icon-kaipiaohetong'
  255. },
  256. {
  257. path: 'http://cld.smartcost.com.cn/holidayborad',
  258. name: 'holidayborad',
  259. icon: 'icon-kaoqin'
  260. },
  261. {
  262. path: '/hr',
  263. name: 'hr',
  264. icon: 'icon-renzi',
  265. routes: [
  266. {
  267. path: '/hr',
  268. redirect: '/hr/contacts'
  269. },
  270. {
  271. path: '/hr/contacts',
  272. name: 'contacts',
  273. icon: 'icon-tongxunlu',
  274. component: './Hr/Contacts'
  275. },
  276. {
  277. path: '/hr/employee',
  278. name: 'employee',
  279. icon: 'icon-bumenyuyuangong',
  280. component: './Hr/Employee',
  281. access: 'authRouteFilter'
  282. },
  283. {
  284. path: '/hr/notification',
  285. name: 'notification',
  286. icon: 'icon-tongzhizhongxin',
  287. component: './Hr/Notification',
  288. access: 'authRouteFilter'
  289. },
  290. {
  291. path: 'http://cld.smartcost.com.cn/hr',
  292. name: 'oldHr',
  293. icon: 'icon-a-CLD10renzi'
  294. }
  295. ]
  296. },
  297. {
  298. component: './404'
  299. }
  300. ]