You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

routes.ts 4.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. import access from "@/access";
  2. export default [
  3. { path: '/login', component: './Login', layout: false, access: 'login' },
  4. {
  5. path: '/',
  6. redirect: '/home',
  7. },
  8. {
  9. path: '/login',
  10. component: './Login',
  11. layout: false
  12. },
  13. {
  14. name: '数据总览',
  15. path: '/home',
  16. component: './Home',
  17. access: 'home',
  18. },
  19. {
  20. name: '企业管理',
  21. access: 'company',
  22. path: '/company',
  23. routes: [
  24. {
  25. name: '所有企业',
  26. path: '/company/list',
  27. component: './Company/List',
  28. access: 'member',
  29. },
  30. {
  31. name: 'VIP列表',
  32. path: '/company/vip',
  33. component: './Company/Vip',
  34. access: 'vip',
  35. },
  36. {
  37. name: '部门管理',
  38. path: '/company/department',
  39. component: './Company/Department',
  40. access: 'department',
  41. },
  42. {
  43. name: '职位管理',
  44. path: '/company/post',
  45. component: './Company/Post',
  46. access: 'job',
  47. }
  48. ]
  49. },
  50. {
  51. name: '求职者管理',
  52. access: 'jobSeeker',
  53. path: '/jobseeker',
  54. routes: [
  55. {
  56. name: '简历列表',
  57. path: '/jobseeker/list',
  58. component: './Jobseeker/List',
  59. access: 'jobResume',
  60. },
  61. {
  62. name: '求职者账号列表',
  63. path: '/jobseeker/account',
  64. component: './Jobseeker/Account',
  65. access: 'customerList',
  66. }
  67. ]
  68. },
  69. {
  70. name: '招聘会管理',
  71. access: 'jobFair',
  72. path: '/fair',
  73. routes: [
  74. {
  75. name: '招聘会列表',
  76. path: '/fair/list',
  77. component: './Fair/List',
  78. access: 'jobFairList',
  79. },
  80. // {
  81. // name: '参与企业列表',
  82. // path: '/fair/company',
  83. // component: './Fair/Company',
  84. // access: 'jobFairCompany',
  85. // }
  86. ]
  87. },
  88. {
  89. name: '新闻资讯',
  90. access: 'information',
  91. path: '/information',
  92. routes: [
  93. {
  94. name: '栏目/频道',
  95. path: '/information/section',
  96. component: './Information/Section',
  97. access: 'section',
  98. },
  99. {
  100. name: '文章列表',
  101. path: '/information/article',
  102. component: './Information/Article',
  103. access: 'article',
  104. }
  105. ]
  106. },
  107. {
  108. name: '广告/活动管理',
  109. access: 'advertisement',
  110. path: '/advertisement',
  111. routes: [
  112. {
  113. name: '广告/活动列表',
  114. path: '/advertisement/list',
  115. component: './Advertisement/List',
  116. access: 'advertisementList',
  117. },
  118. {
  119. name: '广告/活动投放',
  120. path: '/advertisement/putin',
  121. component: './Advertisement/Putin',
  122. access: 'putIn',
  123. }
  124. ]
  125. },
  126. {
  127. name: '春节引流活动管理',
  128. access: 'activity',
  129. path: '/activity',
  130. routes: [
  131. {
  132. name: '活动门店',
  133. path: '/activity/list',
  134. component: './Activity/List',
  135. access: 'activityAddress',
  136. }
  137. ]
  138. },
  139. {
  140. name: '账号权限',
  141. path: '/permission',
  142. access: 'permission',
  143. routes: [
  144. {
  145. name: '权限管理',
  146. path: '/permission/list',
  147. component: './Permission/List',
  148. access: 'list',
  149. },
  150. {
  151. name: '角色管理',
  152. path: '/permission/role',
  153. component: './Permission/Role',
  154. access: 'role',
  155. },
  156. {
  157. name: '账号管理',
  158. path: '/permission/account',
  159. component: './Permission/Account',
  160. access: 'account',
  161. }
  162. ]
  163. },
  164. {
  165. name: '系统管理',
  166. path: '/setting',
  167. access: 'setting',
  168. routes: [
  169. {
  170. name: '系统设置',
  171. path: '/setting/system',
  172. component: './Setting/System',
  173. access: 'other',
  174. },
  175. {
  176. name: '字典设置',
  177. path: '/setting/dictionary',
  178. component: './Setting/Dictionary',
  179. access: 'dictionaryList',
  180. },
  181. {
  182. name: '分词器',
  183. path: '/setting/other',
  184. component: './Setting/Other',
  185. access: 'otherTokenizer',
  186. }
  187. ]
  188. },
  189. {
  190. name: '反馈管理',
  191. path: '/feedback/list',
  192. component: './Feedback',
  193. access: 'feedback',
  194. },
  195. {
  196. name: '公共户口管理',
  197. path: '/publichouse/list',
  198. component: './Publichouse',
  199. access: 'publichouse',
  200. },
  201. // {
  202. // name: '统计管理',
  203. // path: '/setting',
  204. // routes: [
  205. // {
  206. // name: '系统设置',
  207. // path: '/setting/system',
  208. // component: './Setting/System',
  209. // },
  210. // {
  211. // name: '字典设置',
  212. // path: '/setting/dictionary',
  213. // component: './Setting/Dictionary'
  214. // },
  215. // {
  216. // name: '分词器',
  217. // path: '/setting/other',
  218. // component: './Setting/Other',
  219. // }
  220. // ]
  221. // }
  222. ]