enterprise.js 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  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. },
  59. {
  60. path: '/recruit/enterprise/talentRecruitment',
  61. redirect: '/recruit/enterprise/search',
  62. component: Layout,
  63. name: 'Talent Recruitment',
  64. meta: {
  65. title: '人才招聘',
  66. enName: 'Talent Recruitment',
  67. icon: 'mdi-account-settings-outline'
  68. },
  69. children: [
  70. {
  71. path: '/recruit/enterprise/search',
  72. meta: {
  73. title: '找人',
  74. enName: 'Search People',
  75. },
  76. component: () => import('@/views/recruit/enterprise/search/index.vue')
  77. },
  78. {
  79. path: '/recruit/enterprise/interviewManagement',
  80. meta: {
  81. title: '面试',
  82. enName: 'Interview'
  83. },
  84. component: () => import('@/views/recruit/enterprise/interviewManagement/index.vue')
  85. },
  86. {
  87. path: '/recruit/enterprise/chatTools',
  88. meta: {
  89. title: '沟通',
  90. enName: 'Communication',
  91. },
  92. component: () => import('@/views/recruit/enterprise/chatTools/index.vue')
  93. },
  94. {
  95. path: '/recruit/enterprise/resume',
  96. meta: {
  97. title: '简历',
  98. enName: 'Resume'
  99. },
  100. component: () => import('@/views/recruit/enterprise/resume/index.vue')
  101. }
  102. ]
  103. },
  104. {
  105. path: '/recruit/enterprise/talentPool',
  106. component: Layout,
  107. name: 'Elite Reserve',
  108. meta: {
  109. title: '精英储备',
  110. enName: 'Job Management',
  111. icon: 'mdi-account-supervisor-circle'
  112. },
  113. children: [
  114. {
  115. path: '/recruit/enterprise/talentPool',
  116. show: true,
  117. component: () => import('@/views/recruit/enterprise/talentPool/index.vue')
  118. },
  119. {
  120. path: '/recruit/enterprise/talentPool/details/:id',
  121. show: true, // 侧边栏不展示
  122. component: () => import('@/views/recruit/enterprise/talentPool/components/details'),
  123. name: 'talentPoolDetails',
  124. meta: {
  125. title: '人才详情',
  126. hideSide: true
  127. }
  128. },
  129. ]
  130. },
  131. {
  132. path: '/recruit/enterprise/hirePosition',
  133. component: Layout,
  134. name: 'crowdSourcing',
  135. meta: {
  136. title: '全员猎聘',
  137. enName: 'Crowd Sourcing',
  138. icon: 'mdi-account-star-outline',
  139. hireJob: true
  140. },
  141. children: [
  142. {
  143. path: '/recruit/enterprise/hirePosition',
  144. show: true,
  145. meta: {
  146. title: '全员猎聘'
  147. },
  148. component: () => import('@/views/recruit/enterprise/hirePosition/index.vue')
  149. },
  150. {
  151. path: '/recruit/enterprise/hirePosition/add',
  152. show: true,
  153. meta: {
  154. title: '新增职位'
  155. },
  156. component: () => import('@/views/recruit/enterprise/hirePosition/components/add.vue')
  157. },
  158. {
  159. path: '/recruit/enterprise/hirePosition/edit',
  160. show: true,
  161. meta: {
  162. title: '职位编辑'
  163. },
  164. component: () => import('@/views/recruit/enterprise/hirePosition/components/add.vue')
  165. }
  166. ]
  167. },
  168. {
  169. path: '/recruit/enterprise/talentMap',
  170. component: Layout,
  171. name: 'Talent Map',
  172. meta: {
  173. title: '人才地图',
  174. enName: 'Talent Map',
  175. icon: 'mdi-map-check',
  176. isPersonMap: true
  177. },
  178. children: [
  179. {
  180. path: '/recruit/enterprise/talentMap',
  181. show: true,
  182. component: () => import('@/views/recruit/enterprise/talentMap/index.vue')
  183. }
  184. ]
  185. },
  186. {
  187. path: '/recruit/enterprise/statistics/overallAnalysis',
  188. component: Layout,
  189. name: 'enterpriseStatistics',
  190. meta: {
  191. title: '统计分析',
  192. enName: 'Statistics',
  193. icon: 'mdi-chart-arc'
  194. },
  195. children: [
  196. {
  197. path: '/recruit/enterprise/statistics/overallAnalysis',
  198. show: true,
  199. component: () => import('@/views/recruit/enterprise/statistics/overallAnalysis.vue')
  200. }
  201. ]
  202. },
  203. {
  204. path: '/recruit/enterprise/systemManagement',
  205. component: Layout,
  206. redirect: '/recruit/enterprise/systemManagement/userManagement',
  207. name: 'systemManagement',
  208. meta: {
  209. title: '系统管理',
  210. enName: 'system Management',
  211. icon: 'mdi-cog-outline',
  212. isAdmin: true // 企业管理员菜单
  213. },
  214. children: [
  215. // 集团
  216. {
  217. path: '/recruit/enterprise/systemManagement/groupAccount',
  218. meta: {
  219. title: '集团账户',
  220. enName: 'Group Account '
  221. },
  222. component: () => import('@/views/recruit/enterprise/systemManagement/groupAccount/index.vue')
  223. },
  224. // 邀请生成链接页面(非邀请页)
  225. {
  226. path: '/recruit/enterprise/systemManagement/groupAccount/invite/:type',
  227. show: true,
  228. meta: {
  229. hideSide: true,
  230. title: '邀请',
  231. enName: 'Invite'
  232. },
  233. component: () => import('@/views/recruit/enterprise/systemManagement/groupAccount/invite.vue')
  234. },
  235. // {
  236. // path: '/recruit/enterprise/systemManagement/userManagement',
  237. // meta: {
  238. // title: '用户管理',
  239. // enName: 'User Management '
  240. // },
  241. // component: () => import('@/views/recruit/enterprise/systemManagement/userManagement/index.vue')
  242. // },
  243. // 岗位管理
  244. // {
  245. // path: '/recruit/enterprise/systemManagement/postManagement',
  246. // meta: {
  247. // title: '岗位管理',
  248. // enName: 'Post Management '
  249. // },
  250. // component: () => import('@/views/recruit/enterprise/systemManagement/postManagement/index.vue')
  251. // },
  252. {
  253. path: '/recruit/enterprise/systemManagement/postManagement/add',
  254. show: true,
  255. meta: {
  256. title: '新增岗位'
  257. },
  258. component: () => import('@/views/recruit/enterprise/systemManagement/postManagement/save.vue')
  259. },
  260. {
  261. path: '/recruit/enterprise/systemManagement/postManagement/edit',
  262. show: true,
  263. meta: {
  264. title: '岗位编辑'
  265. },
  266. component: () => import('@/views/recruit/enterprise/systemManagement/postManagement/save.vue')
  267. },
  268. // 企业信息
  269. {
  270. path: '/recruit/enterprise/entInfoSetting',
  271. meta: {
  272. title: '企业信息',
  273. enName: 'Group Account '
  274. },
  275. component: () => import('@/views/recruit/enterprise/entInfoSetting/index.vue')
  276. },
  277. // 员工信息
  278. {
  279. path: '/recruit/enterprise/staffInfoSetting',
  280. meta: {
  281. title: '员工信息',
  282. enName: 'Group Account '
  283. },
  284. component: () => import('@/views/recruit/enterprise/staffInfoSetting/index.vue')
  285. },
  286. {
  287. path: '/recruit/enterprise/staffChangePassword',
  288. show: true,
  289. meta: {
  290. title: '修改登录密码',
  291. },
  292. component: () => import('@/views/recruit/enterprise/staffChangePassword/index.vue')
  293. },
  294. ]
  295. },
  296. {
  297. component: Layout,
  298. path: '/recruit/enterprise/financialCenter',
  299. redirect: '/recruit/enterprise/membershipPackage',
  300. name: 'enterpriseMemberCenter',
  301. meta: {
  302. title: '财务中心',
  303. enName: 'system Management',
  304. icon: 'mdi-finance',
  305. // isAdmin: true // 企业管理员菜单
  306. },
  307. children: [
  308. // {
  309. // path: '/recruit/enterprise/membershipPackage',
  310. // meta: {
  311. // title: '会员权益',
  312. // enName: 'Membership Benefits'
  313. // },
  314. // component: () => import('@/views/recruit/enterprise/membershipPackage/index.vue')
  315. // },
  316. // {
  317. // path: '/recruit/enterprise/tradingOrder',
  318. // meta: {
  319. // title:'订单管理',
  320. // enName: 'Order management'
  321. // },
  322. // component: () => import('@/views/recruit/enterprise/tradingOrder/index.vue')
  323. // },
  324. {
  325. path: '/recruit/enterprise/invoiceManagement',
  326. meta: {
  327. title: '发票抬头管理',
  328. enName: 'Invoice Management '
  329. },
  330. component: () => import('@/views/recruit/enterprise/invoiceManagement/index.vue')
  331. }
  332. ]
  333. },
  334. {
  335. path: '/recruit/enterprise/jobFair',
  336. component: Layout,
  337. name: 'jobFair',
  338. show: true, // 暂时隐藏
  339. meta: {
  340. title: '双选会',
  341. enName: 'Job Fair',
  342. icon: 'mdi-account-filter-outline'
  343. },
  344. children: [
  345. {
  346. path: '/recruit/enterprise/jobFair',
  347. show: true,
  348. meta: {
  349. title: '双选会',
  350. enName: 'Job Fair'
  351. },
  352. component: () => import('@/views/recruit/enterprise/jobFair/index.vue')
  353. },
  354. {
  355. path: '/recruit/enterprise/jobFair/details/:id',
  356. show: true,
  357. meta: {
  358. title: '双选会详情',
  359. enName: 'Job Fair Details'
  360. },
  361. // component: () => import('@/views/recruit/enterprise/jobFair/details.vue'),
  362. children: [
  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/details.vue'),
  371. },
  372. {
  373. path: '/recruit/enterprise/jobFair/details/:id/edit',
  374. show: true,
  375. meta: {
  376. title: '职位编辑',
  377. enName: 'Job Fair Edit'
  378. },
  379. component: () => import('@/views/recruit/enterprise/jobFair/editJob.vue')
  380. }
  381. ]
  382. },
  383. ]
  384. }
  385. ]
  386. export default enterprise