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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. import type { AppRouteRecordRaw, AppRouteModule } from '@/router/types';
  2. import { HomeOutlined } from '@ant-design/icons-vue';
  3. import { routerList } from './routerList';
  4. // 权限管理
  5. const PermissionRoute : AppRouteRecordRaw = {
  6. path: '/permission',
  7. name: 'permission',
  8. component: routerList.Permission,
  9. meta: {
  10. title: '权限管理',
  11. icon: HomeOutlined
  12. },
  13. children: [
  14. {
  15. path: '/role',
  16. name: 'role',
  17. component: routerList.ROLE,
  18. meta: {
  19. title: '角色管理',
  20. icon: HomeOutlined
  21. }
  22. },
  23. {
  24. path: '/account',
  25. name: 'account',
  26. component: routerList.Account,
  27. meta: {
  28. title: '账号管理',
  29. icon: HomeOutlined
  30. }
  31. },
  32. {
  33. path: '/permission/list',
  34. name: 'list',
  35. component: routerList.List,
  36. meta: {
  37. title: '权限管理',
  38. icon: HomeOutlined
  39. }
  40. }
  41. ]
  42. };
  43. // 企业相关
  44. const CompanyRoute : AppRouteRecordRaw = {
  45. path: '/company',
  46. name: 'company',
  47. component: routerList.Company,
  48. meta: {
  49. title: '企业管理',
  50. icon: HomeOutlined
  51. },
  52. children: [{
  53. path: '/member',
  54. name: 'member',
  55. component: routerList.Member,
  56. meta: {
  57. title: '企业列表',
  58. icon: HomeOutlined
  59. },
  60. },
  61. {
  62. path: '/vip',
  63. name: 'vip',
  64. component: routerList.Vip,
  65. meta: {
  66. title: 'VIP管理',
  67. icon: HomeOutlined
  68. },
  69. },
  70. {
  71. path: '/department',
  72. name: 'department',
  73. component: routerList.Department,
  74. meta: {
  75. title: '部门管理',
  76. icon: HomeOutlined
  77. },
  78. },
  79. {
  80. path: '/job',
  81. name: 'job',
  82. component: routerList.Job,
  83. meta: {
  84. title: '职位管理',
  85. icon: HomeOutlined
  86. },
  87. },
  88. ]
  89. };
  90. // 家政
  91. const HomemakeRoute : AppRouteRecordRaw = {
  92. path: '/homemake',
  93. name: 'homemake',
  94. component: routerList.Homemake,
  95. meta: {
  96. title: '家政管理',
  97. icon: HomeOutlined
  98. },
  99. children: [{
  100. path: '/homemake/type',
  101. name: 'homemakeType',
  102. component: routerList.HomemakeType,
  103. meta: {
  104. title: '家政类型',
  105. icon: HomeOutlined
  106. },
  107. },
  108. {
  109. path: '/homemake/position',
  110. name: 'homemakePosition',
  111. component: routerList.HomemakePosition,
  112. meta: {
  113. title: '职位申请',
  114. icon: HomeOutlined
  115. },
  116. },
  117. {
  118. path: '/homemake/demand',
  119. name: 'homemakeDemand',
  120. component: routerList.HomemakeDemand,
  121. meta: {
  122. title: '家政需求',
  123. icon: HomeOutlined
  124. },
  125. },
  126. {
  127. path: '/homemake/appointment',
  128. name: 'homemakeAppointment',
  129. component: routerList.HomemakeAppointment,
  130. meta: {
  131. title: '家政预定',
  132. icon: HomeOutlined
  133. },
  134. },
  135. ]
  136. };
  137. // 求职者管理
  138. const JokSeekerRoute : AppRouteRecordRaw = {
  139. path: '/job/seeker',
  140. name: 'jobSeeker',
  141. component: routerList.JobSeeker,
  142. meta: {
  143. title: '求职者管理',
  144. icon: HomeOutlined
  145. },
  146. children: [
  147. {
  148. path: '/resume',
  149. name: 'jobResume',
  150. component: routerList.JobResume,
  151. meta: {
  152. title: '简历列表',
  153. icon: HomeOutlined
  154. },
  155. },
  156. ]
  157. };
  158. // 招聘会管理
  159. const JokFairRoute : AppRouteRecordRaw = {
  160. path: '/job/fair',
  161. name: 'jobFair',
  162. component: routerList.JokFair,
  163. meta: {
  164. title: '招聘会管理',
  165. icon: HomeOutlined
  166. },
  167. children: [
  168. {
  169. path: '/job/fair/list',
  170. name: 'jobFairList',
  171. component: routerList.JobFairList,
  172. meta: {
  173. title: '招聘会列表',
  174. icon: HomeOutlined
  175. },
  176. },
  177. // {
  178. // path: '/job/fair/company',
  179. // name: 'jobFairCompany',
  180. // component: routerList.JobFairCompany,
  181. // meta: {
  182. // title: '参与企业',
  183. // icon: HomeOutlined
  184. // },
  185. // },
  186. ]
  187. };
  188. // 资讯管理
  189. const InformationRoute : AppRouteRecordRaw = {
  190. path: '/information',
  191. name: 'information',
  192. component: routerList.Information,
  193. meta: {
  194. title: '资讯管理',
  195. icon: HomeOutlined
  196. },
  197. children: [
  198. {
  199. path: '/section',
  200. name: 'section',
  201. component: routerList.InformationSection,
  202. meta: {
  203. title: '栏目/频道',
  204. icon: HomeOutlined
  205. },
  206. },
  207. {
  208. path: '/article',
  209. name: 'article',
  210. component: routerList.InformationArticle,
  211. meta: {
  212. title: '文章列表',
  213. icon: HomeOutlined
  214. },
  215. }
  216. ],
  217. };
  218. // 广告管理
  219. const AdvertisementRoute : AppRouteRecordRaw = {
  220. path: '/advertisement',
  221. name: 'advertisement',
  222. component: routerList.Advertisement,
  223. meta: {
  224. title: '广告/活动管理',
  225. icon: HomeOutlined
  226. },
  227. children: [
  228. {
  229. path: '/advertisement/list',
  230. name: 'advertisementList',
  231. component: routerList.AdvertisementList,
  232. meta: {
  233. title: '广告/活动列表',
  234. icon: HomeOutlined
  235. },
  236. },
  237. {
  238. path: '/put/in',
  239. name: 'putIn',
  240. component: routerList.AdvertisementPutin,
  241. meta: {
  242. title: '广告/活动投放',
  243. icon: HomeOutlined
  244. },
  245. }
  246. ],
  247. };
  248. // 活动管理
  249. const ActivityRoute : AppRouteRecordRaw = {
  250. path: '/activity',
  251. name: 'activity',
  252. component: routerList.Activity,
  253. meta: {
  254. title: '活动管理',
  255. icon: HomeOutlined
  256. },
  257. children: [
  258. // {
  259. // path: '/activity/list',
  260. // name: 'activityList',
  261. // component: routerList.ActivityList,
  262. // meta: {
  263. // title: '活动列表',
  264. // icon: HomeOutlined
  265. // },
  266. // },
  267. {
  268. path: '/activity/address',
  269. name: 'activityAddress',
  270. component: routerList.ActivityAddress,
  271. meta: {
  272. title: '活动地址',
  273. icon: HomeOutlined
  274. },
  275. }
  276. ],
  277. };
  278. // 统计
  279. const StatisticsRoute : AppRouteRecordRaw = {
  280. path: '/statistics',
  281. name: 'statistics',
  282. component: routerList.Statistics,
  283. meta: {
  284. title: '统计管理',
  285. icon: HomeOutlined
  286. },
  287. children: [
  288. {
  289. path: '/statistics/resume',
  290. name: 'statisticsResume',
  291. component: routerList.StatisticsResume,
  292. meta: {
  293. title: '简历统计',
  294. icon: HomeOutlined
  295. },
  296. children: [
  297. {
  298. path: '/statistics/resume/major',
  299. name: 'statisticsResumeMajor',
  300. component: routerList.StatisticsResumeMajor,
  301. meta: {
  302. title: '专业',
  303. icon: HomeOutlined
  304. },
  305. },
  306. {
  307. path: '/statistics/resume/age/sex',
  308. name: 'statisticsResumeAgeSex',
  309. component: routerList.StatisticsResumeAgeSex,
  310. meta: {
  311. title: '年龄与性别',
  312. icon: HomeOutlined
  313. },
  314. },
  315. {
  316. path: '/statistics/resume/certificate/skill',
  317. name: 'statisticsResumeCertificateSkill',
  318. component: routerList.StatisticsResumeCertificateSkill,
  319. meta: {
  320. title: '技能证书',
  321. icon: HomeOutlined
  322. },
  323. },
  324. {
  325. path: '/statistics/resume/education',
  326. name: 'statisticsResumeEducation',
  327. component: routerList.StatisticsResumeEducation,
  328. meta: {
  329. title: '学历',
  330. icon: HomeOutlined
  331. },
  332. },
  333. {
  334. path: '/statistics/resume/holidays/accommodation',
  335. name: 'statisticsResumeHolidaysAccommodation',
  336. component: routerList.StatisticsResumeHolidaysAccommodation,
  337. meta: {
  338. title: '节假日与食宿',
  339. icon: HomeOutlined
  340. },
  341. },
  342. {
  343. path: '/statistics/resume/job/intention',
  344. name: 'statisticsResumeJobIntention',
  345. component: routerList.StatisticsResumeJobIntention,
  346. meta: {
  347. title: '求职意向',
  348. icon: HomeOutlined
  349. },
  350. },
  351. {
  352. path: '/statistics/resume/title/skill',
  353. name: 'statisticsResumeTitleSkill',
  354. component: routerList.StatisticsResumeTitleSkill,
  355. meta: {
  356. title: '职称与技能',
  357. icon: HomeOutlined
  358. },
  359. },
  360. {
  361. path: '/statistics/resume/work/experience',
  362. name: 'statisticsResumeWorkExperience',
  363. component: routerList.StatisticsResumeWorkExperience,
  364. meta: {
  365. title: '工作经验',
  366. icon: HomeOutlined
  367. },
  368. },
  369. ],
  370. },
  371. {
  372. path: '/statistics/company',
  373. name: 'statisticsCompany',
  374. component: routerList.StatisticsCompany,
  375. meta: {
  376. title: '企业统计',
  377. icon: HomeOutlined
  378. },
  379. children: [
  380. {
  381. path: '/statistics/company/job',
  382. name: 'statisticsCompanyJob',
  383. component: routerList.StatisticsCompanyJob,
  384. meta: {
  385. title: '职位',
  386. icon: HomeOutlined
  387. },
  388. },
  389. ]
  390. }
  391. ],
  392. };
  393. export const routesModuleList : AppRouteModule[] = [CompanyRoute,HomemakeRoute, JokSeekerRoute, JokFairRoute, InformationRoute, AdvertisementRoute, ActivityRoute, StatisticsRoute,PermissionRoute];