|
@@ -318,6 +318,10 @@ if (!IM) {
|
|
|
console.log('IM is disconnected')
|
|
|
}
|
|
|
|
|
|
+// 参与招聘会的职位进入需传递招聘会id
|
|
|
+const jobFairId = ref('')
|
|
|
+if (route.query?.jobFairId) jobFairId.value = route.query.jobFairId
|
|
|
+
|
|
|
// 职位进入
|
|
|
if (route.query.id) {
|
|
|
const api = route.query.enterprise ? getPositionDetails : getBaseInfo // getBaseInfo getUserInfo
|
|
@@ -568,12 +572,16 @@ const handleSubmitAttachment = async () => {
|
|
|
} else {
|
|
|
const jobId = enRequestPositionInfo.value && enRequestPositionInfo.value?.id ? enRequestPositionInfo.value?.id : positionInfo.value.id
|
|
|
const type = (enRequestPositionInfo.value && Object.keys(enRequestPositionInfo.value).length ? enRequestPositionInfo.value.hire : positionInfo.value.hire) ? 1 : 0
|
|
|
- await jobCvRelSend({
|
|
|
+ const params = {
|
|
|
jobId,
|
|
|
title: obj.title,
|
|
|
url: obj.url,
|
|
|
type
|
|
|
- })
|
|
|
+ }
|
|
|
+ // 参与招聘会的职位需传递招聘会id
|
|
|
+ if (jobFairId.value) params.jobFairId = jobFairId.value
|
|
|
+
|
|
|
+ await jobCvRelSend(params)
|
|
|
}
|
|
|
handleChangeSendResumeStatus(true)
|
|
|
showUploadDialog.value = false
|
|
@@ -608,12 +616,16 @@ async function handleSubmitResume () {
|
|
|
} else {
|
|
|
const jobId = enRequestPositionInfo.value && enRequestPositionInfo.value?.id ? enRequestPositionInfo.value?.id : positionInfo.value.id
|
|
|
const type = (enRequestPositionInfo.value && Object.keys(enRequestPositionInfo.value).length ? enRequestPositionInfo.value.hire : positionInfo.value.hire) ? 1 : 0
|
|
|
- await jobCvRelSend({
|
|
|
+ const params = {
|
|
|
jobId,
|
|
|
title: _info.title,
|
|
|
url: _info.url,
|
|
|
type
|
|
|
- })
|
|
|
+ }
|
|
|
+ // 参与招聘会的职位需传递招聘会id
|
|
|
+ if (jobFairId.value) params.jobFairId = jobFairId.value
|
|
|
+
|
|
|
+ await jobCvRelSend(params)
|
|
|
}
|
|
|
handleChangeSendResumeStatus(true)
|
|
|
showResume.value = false
|