Procházet zdrojové kódy

简历投递:参与招聘会的职位需带招聘会id

Xiao_123 před 3 měsíci
rodič
revize
ec5e897699

+ 16 - 4
src/views/recruit/components/message/index.vue

@@ -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

+ 2 - 0
src/views/recruit/personal/position/components/details.vue

@@ -513,6 +513,8 @@ const toDetails = async (info) => {
     if (info.contact.enterpriseId) {
       url += `&enterprise=${info.contact.enterpriseId}`
     }
+    // 参与招聘会的职位需传递招聘会id
+    if (jobFairId.value) url+= `&jobFairId=${jobFairId.value}`
 
     window.open(url)
   } catch (error) {