enterprise.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398
  1. // 企业路由信息
  2. import Layout from '@/layout/enterprise.vue'
  3. const enterprise = [
  4. {
  5. path: '/enterprise', // 企业账号登录时,缺省进去企业路由,防止用户在地址栏直接输入地址访问其他页面(不可删,permission中用到)
  6. show: true,
  7. redirect: '/recruit/enterprise',
  8. },
  9. // { 不能重定向,用于切换企业登录拦截
  10. // path: '/enterpriseVerification', // 切换企业后先校验是否具备必填信息
  11. // show: true,
  12. // meta: {
  13. // loginType: 'enterprise'
  14. // }
  15. // // redirect: '/enterprise',
  16. // },
  17. {
  18. path: '/recruit/enterprise',
  19. show: true,
  20. redirect: '/recruit/enterprise/position',
  21. },
  22. {
  23. path: '/recruit/enterprise/position',
  24. component: Layout,
  25. name: 'jobManagement',
  26. meta: {
  27. title: '职位管理',
  28. enName: 'Job Management',
  29. icon: 'mdi-format-list-bulleted-square'
  30. },
  31. children: [
  32. {
  33. path: '/recruit/enterprise/position',
  34. show: true,
  35. meta: {
  36. title: '职位列表',
  37. enName: 'Job list'
  38. },
  39. component: () => import('@/views/recruit/enterprise/positionManagement/index.vue')
  40. },
  41. {
  42. path: '/recruit/enterprise/position/add',
  43. show: true,
  44. meta: {
  45. title: '新增职位'
  46. },
  47. component: () => import('@/views/recruit/enterprise/positionManagement/components/add.vue')
  48. },
  49. {
  50. path: '/recruit/enterprise/position/edit',
  51. show: true,
  52. meta: {
  53. title: '职位编辑'
  54. },
  55. component: () => import('@/views/recruit/enterprise/positionManagement/components/add.vue')
  56. },
  57. {
  58. path: '/recruit/enterprise/position/details',
  59. show: true,
  60. meta: {
  61. hideSide: true,
  62. title: '职位详情',
  63. enName: 'Position Details'
  64. },
  65. component: () => import('@/views/recruit/enterprise/positionManagement/components/details.vue')
  66. },
  67. ]
  68. },
  69. {
  70. path: '/recruit/enterprise/talentRecruitment',
  71. redirect: '/recruit/enterprise/search',
  72. component: Layout,
  73. name: 'Talent Recruitment',
  74. meta: {
  75. title: '人才招聘',
  76. enName: 'Talent Recruitment',
  77. icon: 'mdi-account-settings-outline'
  78. },
  79. children: [
  80. {
  81. path: '/recruit/enterprise/search',
  82. meta: {
  83. title: '找人',
  84. enName: 'Search People',
  85. },
  86. component: () => import('@/views/recruit/enterprise/search/index.vue')
  87. },
  88. {
  89. path: '/recruit/enterprise/interviewManagement',
  90. meta: {
  91. title: '面试',
  92. enName: 'Interview'
  93. },
  94. component: () => import('@/views/recruit/enterprise/interviewManagement/index.vue')
  95. },
  96. {
  97. path: '/recruit/enterprise/chatTools',
  98. meta: {
  99. title: '沟通',
  100. enName: 'Communication',
  101. },
  102. component: () => import('@/views/recruit/enterprise/chatTools/index.vue')
  103. },
  104. {
  105. path: '/recruit/enterprise/resume',
  106. meta: {
  107. title: '简历',
  108. enName: 'Resume'
  109. },
  110. component: () => import('@/views/recruit/enterprise/resume/index.vue')
  111. }
  112. ]
  113. },
  114. {
  115. path: '/recruit/enterprise/talentPool',
  116. component: Layout,
  117. name: 'Elite Reserve',
  118. meta: {
  119. title: '精英储备',
  120. enName: 'Job Management',
  121. icon: 'mdi-account-supervisor-circle'
  122. },
  123. children: [
  124. {
  125. path: '/recruit/enterprise/talentPool',
  126. show: true,
  127. component: () => import('@/views/recruit/enterprise/talentPool/index.vue')
  128. },
  129. {
  130. path: '/recruit/enterprise/talentPool/details/:id',
  131. show: true, // 侧边栏不展示
  132. component: () => import('@/views/recruit/enterprise/talentPool/components/details'),
  133. name: 'talentPoolDetails',
  134. meta: {
  135. title: '人才详情',
  136. hideSide: true
  137. }
  138. },
  139. ]
  140. },
  141. {
  142. path: '/recruit/enterprise/hirePosition',
  143. component: Layout,
  144. name: 'crowdSourcing',
  145. meta: {
  146. title: '全员猎聘',
  147. enName: 'Crowd Sourcing',
  148. icon: 'mdi-account-star-outline',
  149. hireJob: true
  150. },
  151. children: [
  152. {
  153. path: '/recruit/enterprise/hirePosition',
  154. show: true,
  155. meta: {
  156. title: '全员猎聘'
  157. },
  158. component: () => import('@/views/recruit/enterprise/hirePosition/index.vue')
  159. },
  160. {
  161. path: '/recruit/enterprise/hirePosition/add',
  162. show: true,
  163. meta: {
  164. title: '新增职位'
  165. },
  166. component: () => import('@/views/recruit/enterprise/hirePosition/components/add.vue')
  167. },
  168. {
  169. path: '/recruit/enterprise/hirePosition/edit',
  170. show: true,
  171. meta: {
  172. title: '职位编辑'
  173. },
  174. component: () => import('@/views/recruit/enterprise/hirePosition/components/add.vue')
  175. }
  176. ]
  177. },
  178. {
  179. path: '/recruit/enterprise/talentMap',
  180. component: Layout,
  181. name: 'Talent Map',
  182. meta: {
  183. title: '人才地图',
  184. enName: 'Talent Map',
  185. icon: 'mdi-map-check',
  186. isPersonMap: true
  187. },
  188. children: [
  189. {
  190. path: '/recruit/enterprise/talentMap',
  191. show: true,
  192. component: () => import('@/views/recruit/enterprise/talentMap/index.vue')
  193. }
  194. ]
  195. },
  196. {
  197. path: '/recruit/enterprise/statistics/overallAnalysis',
  198. component: Layout,
  199. name: 'enterpriseStatistics',
  200. meta: {
  201. title: '统计分析',
  202. enName: 'Statistics',
  203. icon: 'mdi-chart-arc'
  204. },
  205. children: [
  206. {
  207. path: '/recruit/enterprise/statistics/overallAnalysis',
  208. show: true,
  209. component: () => import('@/views/recruit/enterprise/statistics/overallAnalysis.vue')
  210. }
  211. ]
  212. },
  213. {
  214. path: '/recruit/enterprise/systemManagement',
  215. component: Layout,
  216. redirect: '/recruit/enterprise/systemManagement/userManagement',
  217. name: 'systemManagement',
  218. meta: {
  219. title: '系统管理',
  220. enName: 'system Management',
  221. icon: 'mdi-cog-outline',
  222. isAdmin: true // 企业管理员菜单
  223. },
  224. children: [
  225. // 集团
  226. {
  227. path: '/recruit/enterprise/systemManagement/groupAccount',
  228. meta: {
  229. title: '集团账户',
  230. enName: 'Group Account '
  231. },
  232. component: () => import('@/views/recruit/enterprise/systemManagement/groupAccount/index.vue')
  233. },
  234. // 邀请生成链接页面(非邀请页)
  235. {
  236. path: '/recruit/enterprise/systemManagement/groupAccount/invite/:type',
  237. show: true,
  238. meta: {
  239. hideSide: true,
  240. title: '邀请',
  241. enName: 'Invite'
  242. },
  243. component: () => import('@/views/recruit/enterprise/systemManagement/groupAccount/invite.vue')
  244. },
  245. // {
  246. // path: '/recruit/enterprise/systemManagement/userManagement',
  247. // meta: {
  248. // title: '用户管理',
  249. // enName: 'User Management '
  250. // },
  251. // component: () => import('@/views/recruit/enterprise/systemManagement/userManagement/index.vue')
  252. // },
  253. // 岗位管理
  254. // {
  255. // path: '/recruit/enterprise/systemManagement/postManagement',
  256. // meta: {
  257. // title: '岗位管理',
  258. // enName: 'Post Management '
  259. // },
  260. // component: () => import('@/views/recruit/enterprise/systemManagement/postManagement/index.vue')
  261. // },
  262. {
  263. path: '/recruit/enterprise/systemManagement/postManagement/add',
  264. show: true,
  265. meta: {
  266. title: '新增岗位'
  267. },
  268. component: () => import('@/views/recruit/enterprise/systemManagement/postManagement/save.vue')
  269. },
  270. {
  271. path: '/recruit/enterprise/systemManagement/postManagement/edit',
  272. show: true,
  273. meta: {
  274. title: '岗位编辑'
  275. },
  276. component: () => import('@/views/recruit/enterprise/systemManagement/postManagement/save.vue')
  277. },
  278. // 企业信息
  279. {
  280. path: '/recruit/enterprise/entInfoSetting',
  281. meta: {
  282. title: '企业信息',
  283. enName: 'Group Account '
  284. },
  285. component: () => import('@/views/recruit/enterprise/entInfoSetting/index.vue')
  286. },
  287. // 员工信息
  288. {
  289. path: '/recruit/enterprise/staffInfoSetting',
  290. meta: {
  291. title: '员工信息',
  292. enName: 'Group Account '
  293. },
  294. component: () => import('@/views/recruit/enterprise/staffInfoSetting/index.vue')
  295. },
  296. {
  297. path: '/recruit/enterprise/staffChangePassword',
  298. show: true,
  299. meta: {
  300. title: '修改登录密码',
  301. },
  302. component: () => import('@/views/recruit/enterprise/staffChangePassword/index.vue')
  303. },
  304. ]
  305. },
  306. {
  307. component: Layout,
  308. path: '/recruit/enterprise/financialCenter',
  309. redirect: '/recruit/enterprise/membershipPackage',
  310. name: 'enterpriseMemberCenter',
  311. meta: {
  312. title: '财务中心',
  313. enName: 'system Management',
  314. icon: 'mdi-finance',
  315. // isAdmin: true // 企业管理员菜单
  316. },
  317. children: [
  318. // {
  319. // path: '/recruit/enterprise/membershipPackage',
  320. // meta: {
  321. // title: '会员权益',
  322. // enName: 'Membership Benefits'
  323. // },
  324. // component: () => import('@/views/recruit/enterprise/membershipPackage/index.vue')
  325. // },
  326. // {
  327. // path: '/recruit/enterprise/tradingOrder',
  328. // meta: {
  329. // title:'订单管理',
  330. // enName: 'Order management'
  331. // },
  332. // component: () => import('@/views/recruit/enterprise/tradingOrder/index.vue')
  333. // },
  334. {
  335. path: '/recruit/enterprise/invoiceManagement',
  336. meta: {
  337. title: '发票抬头管理',
  338. enName: 'Invoice Management '
  339. },
  340. component: () => import('@/views/recruit/enterprise/invoiceManagement/index.vue')
  341. }
  342. ]
  343. },
  344. {
  345. path: '/recruit/enterprise/jobFair',
  346. component: Layout,
  347. name: 'jobFair',
  348. meta: {
  349. title: '招聘会',
  350. enName: 'Job Fair',
  351. icon: 'mdi-account-filter-outline'
  352. },
  353. children: [
  354. {
  355. path: '/recruit/enterprise/jobFair',
  356. show: true,
  357. meta: {
  358. title: '招聘会',
  359. enName: 'Job Fair'
  360. },
  361. component: () => import('@/views/recruit/enterprise/jobFair/index.vue')
  362. },
  363. {
  364. path: '/recruit/enterprise/jobFair/details/:id',
  365. show: true,
  366. meta: {
  367. title: '招聘会详情',
  368. enName: 'Job Fair Details'
  369. },
  370. component: () => import('@/views/recruit/enterprise/jobFair/detailsBox.vue'),
  371. children: [
  372. {
  373. path: '/recruit/enterprise/jobFair/details/:id',
  374. show: true,
  375. meta: {
  376. title: '招聘会详情',
  377. enName: 'Job Fair Details'
  378. },
  379. component: () => import('@/views/recruit/enterprise/jobFair/details.vue'),
  380. },
  381. {
  382. path: '/recruit/enterprise/jobFair/details/:id/edit',
  383. show: true,
  384. meta: {
  385. title: '职位编辑',
  386. enName: 'Job Fair Edit'
  387. },
  388. component: () => import('@/views/recruit/enterprise/jobFair/editJob.vue')
  389. }
  390. ]
  391. },
  392. ]
  393. }
  394. ]
  395. export default enterprise