|
@@ -159,7 +159,7 @@
|
|
|
<CtForm v-if="showSelectPosition" ref="requestFromRef" :items="requestFormItems"></CtForm>
|
|
|
</CtDialog>
|
|
|
<!-- 发送简历-选择要发送的职位 -->
|
|
|
- <CtDialog :visible="openPositionSelectDialog" :widthType="2" titleClass="text-h6" title="请选择要投递的职位" @close="openPositionSelectDialog = false" @submit="selectPositionSubmit">
|
|
|
+ <CtDialog :visible="openPositionSelectDialog" :widthType="2" titleClass="text-h6" submitText="确认" title="请选择要投递的职位" @close="openPositionSelectDialog = false" @submit="selectPositionSubmit">
|
|
|
<div style="position: relative; min-height: 200px">
|
|
|
<v-radio-group v-model="selectJobId">
|
|
|
<div v-for="val in entPositionList" :key="val.value" class="d-flex align-center radioBox" >
|
|
@@ -648,8 +648,15 @@ const handleSubmitAttachment = async () => {
|
|
|
}
|
|
|
if (isStudent.value && (!practice?.practiceStartTime || !practice?.practiceEndTime)) return Snackbar.warning('请完善实习到岗信息')
|
|
|
|
|
|
+ pageLoading.value = true
|
|
|
+
|
|
|
// 保存附件
|
|
|
- await savePersonResumeCv(obj)
|
|
|
+ try {
|
|
|
+ await savePersonResumeCv(obj)
|
|
|
+ } catch {
|
|
|
+ pageLoading.value = false
|
|
|
+ return
|
|
|
+ }
|
|
|
|
|
|
// 简历投递至简历库
|
|
|
if (isEmployment.value !== '-1') {
|
|
@@ -660,7 +667,12 @@ const handleSubmitAttachment = async () => {
|
|
|
}
|
|
|
// 如果是学生则需要带上实习信息
|
|
|
if (practice && Object.keys(practice).length > 0) params = Object.assign(params, practice)
|
|
|
- await jobCvRelHireSend(params)
|
|
|
+ try {
|
|
|
+ await jobCvRelHireSend(params)
|
|
|
+ } catch {
|
|
|
+ pageLoading.value = false
|
|
|
+ return
|
|
|
+ }
|
|
|
} else {
|
|
|
const jobId = enRequestPositionInfo.value && enRequestPositionInfo.value?.id ? enRequestPositionInfo.value?.id : positionInfo.value.id || selectJobId.value
|
|
|
const type = (enRequestPositionInfo.value && Object.keys(enRequestPositionInfo.value).length ? enRequestPositionInfo.value.hire : positionInfo.value.hire) ? 1 : 0
|
|
@@ -672,10 +684,16 @@ const handleSubmitAttachment = async () => {
|
|
|
}
|
|
|
// 如果是学生则需要带上实习信息
|
|
|
if (practice && Object.keys(practice).length > 0) params = Object.assign(params, practice)
|
|
|
- await jobCvRelSend(params)
|
|
|
+ try {
|
|
|
+ await jobCvRelSend(params)
|
|
|
+ } catch {
|
|
|
+ pageLoading.value = false
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
handleChangeSendResumeStatus(true)
|
|
|
showUploadDialog.value = false
|
|
|
+ pageLoading.value = false
|
|
|
|
|
|
const text = {
|
|
|
remark: '发送简历',
|
|
@@ -706,6 +724,8 @@ async function handleSubmitResume () {
|
|
|
}
|
|
|
if (isStudent.value && (!practice?.practiceStartTime || !practice?.practiceEndTime)) return Snackbar.warning('请完善实习到岗信息')
|
|
|
|
|
|
+ pageLoading.value = true
|
|
|
+
|
|
|
// 简历投递至简历库
|
|
|
if (isEmployment.value !== '-1') {
|
|
|
let params = {
|
|
@@ -715,7 +735,12 @@ async function handleSubmitResume () {
|
|
|
}
|
|
|
// 如果是学生则需要带上实习信息
|
|
|
if (practice && Object.keys(practice).length > 0) params = Object.assign(params, practice)
|
|
|
- await jobCvRelHireSend(params)
|
|
|
+ try {
|
|
|
+ await jobCvRelHireSend(params)
|
|
|
+ } catch {
|
|
|
+ pageLoading.value = false
|
|
|
+ return
|
|
|
+ }
|
|
|
} else {
|
|
|
const jobId = enRequestPositionInfo.value && enRequestPositionInfo.value?.id ? enRequestPositionInfo.value?.id : positionInfo.value.id || selectJobId.value
|
|
|
const type = (enRequestPositionInfo.value && Object.keys(enRequestPositionInfo.value).length ? enRequestPositionInfo.value.hire : positionInfo.value.hire) ? 1 : 0
|
|
@@ -728,10 +753,16 @@ async function handleSubmitResume () {
|
|
|
// 如果是学生则需要带上实习信息
|
|
|
if (practice && Object.keys(practice).length > 0) params = Object.assign(params, practice)
|
|
|
|
|
|
- await jobCvRelSend(params)
|
|
|
+ try {
|
|
|
+ await jobCvRelSend(params)
|
|
|
+ } catch {
|
|
|
+ pageLoading.value = false
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
handleChangeSendResumeStatus(true)
|
|
|
showResume.value = false
|
|
|
+ pageLoading.value = false
|
|
|
|
|
|
const text = {
|
|
|
remark: '发送简历',
|
|
@@ -774,6 +805,7 @@ const handleGetMore = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 删除最近联系人
|
|
|
const handleDelete = async ({ channel }) => {
|
|
|
await deleteConversations(channel, entBaseInfo?.enterpriseId)
|
|
|
await updateConversation()
|
|
@@ -873,6 +905,7 @@ const handleRequestResumeSubmit = async () => {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// 接受面试邀请
|
|
|
const handleAgree = (val) => {
|
|
|
if (!val.id) return
|
|
|
const query = {
|
|
@@ -896,7 +929,7 @@ const handleAgree = (val) => {
|
|
|
// 拒绝面试邀请
|
|
|
const handleRefuse = (val) => {
|
|
|
if (!val.id) return
|
|
|
- Confirm(t('common.confirmTitle'), '您是否确定要拒绝此面试邀请?').then(async () => {
|
|
|
+ Confirm(t('common.confirmTitle'), '是否确定拒绝此面试邀请?').then(async () => {
|
|
|
await userInterviewInviteReject(val.id)
|
|
|
Snackbar.success(t('common.operationSuccessful'))
|
|
|
getInterviewInviteList()
|