|
@@ -187,7 +187,7 @@
|
|
</div>
|
|
</div>
|
|
</v-radio-group>
|
|
</v-radio-group>
|
|
</div>
|
|
</div>
|
|
- <studentDeliveryForm v-if="baseInfo?.type && Number(baseInfo?.type) === 1" ref="studentDeliveryFormRef" />
|
|
|
|
|
|
+ <studentDeliveryForm v-if="isStudent" ref="studentDeliveryFormRef" />
|
|
</CtDialog>
|
|
</CtDialog>
|
|
<Loading :visible="pageLoading" />
|
|
<Loading :visible="pageLoading" />
|
|
</template>
|
|
</template>
|
|
@@ -242,6 +242,7 @@ const pageSize = ref(1)
|
|
const hasMore = ref(false)
|
|
const hasMore = ref(false)
|
|
const studentDeliveryFormRef = ref()
|
|
const studentDeliveryFormRef = ref()
|
|
const baseInfo = ref(localStorage.getItem('baseInfo') ? JSON.parse(localStorage.getItem('baseInfo')) : {})
|
|
const baseInfo = ref(localStorage.getItem('baseInfo') ? JSON.parse(localStorage.getItem('baseInfo')) : {})
|
|
|
|
+const isStudent = ref(baseInfo.value?.type && Number(baseInfo.value.type) === 1)
|
|
|
|
|
|
const positionList = ref([])
|
|
const positionList = ref([])
|
|
const showTip = ref(false)
|
|
const showTip = ref(false)
|
|
@@ -634,11 +635,11 @@ const handleSubmitAttachment = async () => {
|
|
|
|
|
|
// 学生实习到岗信息
|
|
// 学生实习到岗信息
|
|
let practice = {}
|
|
let practice = {}
|
|
- if (baseInfo.value?.type && Number(baseInfo.value?.type) === 1) {
|
|
|
|
|
|
+ if (isStudent.value) {
|
|
practice = studentDeliveryFormRef.value.getQueryParams()
|
|
practice = studentDeliveryFormRef.value.getQueryParams()
|
|
console.log(practice, '上传简历-到岗信息')
|
|
console.log(practice, '上传简历-到岗信息')
|
|
}
|
|
}
|
|
- if (practice && Object.keys(practice).length > 0 && !practice.practiceStartTime || !practice.practiceEndTime) return Snackbar.warning('请完善实习到岗信息')
|
|
|
|
|
|
+ if (isStudent.value && (!practice?.practiceStartTime || !practice?.practiceEndTime)) return Snackbar.warning('请完善实习到岗信息')
|
|
|
|
|
|
// 保存附件
|
|
// 保存附件
|
|
await savePersonResumeCv(obj)
|
|
await savePersonResumeCv(obj)
|
|
@@ -692,11 +693,11 @@ async function handleSubmitResume () {
|
|
|
|
|
|
// 学生实习到岗信息
|
|
// 学生实习到岗信息
|
|
let practice = {}
|
|
let practice = {}
|
|
- if (baseInfo.value?.type && Number(baseInfo.value?.type) === 1) {
|
|
|
|
|
|
+ if (isStudent.value) {
|
|
practice = studentDeliveryFormRef.value.getQueryParams()
|
|
practice = studentDeliveryFormRef.value.getQueryParams()
|
|
console.log(practice, '选择简历-到岗信息')
|
|
console.log(practice, '选择简历-到岗信息')
|
|
}
|
|
}
|
|
- if (practice && Object.keys(practice).length > 0 && !practice.practiceStartTime || !practice.practiceEndTime) return Snackbar.warning('请完善实习到岗信息')
|
|
|
|
|
|
+ if (isStudent.value && (!practice?.practiceStartTime || !practice?.practiceEndTime)) return Snackbar.warning('请完善实习到岗信息')
|
|
|
|
|
|
// 简历投递至简历库
|
|
// 简历投递至简历库
|
|
if (isEmployment.value !== '-1') {
|
|
if (isEmployment.value !== '-1') {
|