|
@@ -26,7 +26,7 @@
|
|
|
@click="handleCollection"
|
|
|
>{{ isCollection ? $t('position.cancelFavorite') : $t('position.collection') }}</v-btn>
|
|
|
<v-btn class="button-item mx-2 radius" color="success" variant="outlined">{{ $t('position.communicate') }}</v-btn>
|
|
|
- <v-btn class="button-item radius" color="primary" variant="outlined" @click="handleDelivery">{{ $t('position.submitResume') }}</v-btn>
|
|
|
+ <v-btn class="button-item radius" :disabled="delivery" color="primary" variant="outlined" @click="handleDelivery">{{ delivery ? $t('position.delivered') : $t('position.submitResume') }}</v-btn>
|
|
|
</div>
|
|
|
</div>
|
|
|
<v-divider></v-divider>
|
|
@@ -60,8 +60,8 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="mt-3 text-center">
|
|
|
- <v-btn class="mr-2 radius" color="success" variant="outlined">{{ $t('position.communicate') }}</v-btn>
|
|
|
- <v-btn class="radius" color="primary" @click="handleDelivery">{{ $t('position.submitResume') }}</v-btn>
|
|
|
+ <v-btn class="mr-2 radius button-item" color="success" variant="outlined">{{ $t('position.communicate') }}</v-btn>
|
|
|
+ <v-btn class="radius button-item" :disabled="delivery" color="primary" @click="handleDelivery">{{ delivery ? $t('position.delivered') : $t('position.submitResume') }}</v-btn>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="content-right" v-if="Object.keys(info).length">
|
|
@@ -113,6 +113,7 @@ import Dialog from '@/components/CtDialog'
|
|
|
const { t } = useI18n()
|
|
|
const router = useRouter()
|
|
|
const { id } = router.currentRoute.value.params
|
|
|
+const delivery = ref(false) // 是否已投递简历
|
|
|
|
|
|
// 职位详情
|
|
|
const info = ref({})
|
|
@@ -124,6 +125,13 @@ const getPositionDetail = async () => {
|
|
|
}
|
|
|
getPositionDetail()
|
|
|
|
|
|
+// 效验是否有投递过简历
|
|
|
+const deliveryCheck = async () => {
|
|
|
+ const data = await jobCvRelCheckSend({ jobId: id })
|
|
|
+ if (data) delivery.value = true
|
|
|
+}
|
|
|
+deliveryCheck()
|
|
|
+
|
|
|
const desc = [
|
|
|
{ mdi: 'mdi-map-marker-outline', value: 'areaName' },
|
|
|
{ mdi: 'mdi-school-outline', value: 'eduName' },
|
|
@@ -168,8 +176,7 @@ const handleToUpload = () => {
|
|
|
const resumeList = ref([])
|
|
|
const selectResume = ref()
|
|
|
const handleDelivery = async () => {
|
|
|
- const data = await jobCvRelCheckSend({ jobId: id })
|
|
|
- if (data) return Snackbar.warning(t('resume.alreadyResume'))
|
|
|
+ if (delivery.value) return Snackbar.warning(t('resume.alreadyResume'))
|
|
|
const result = await getPersonResumeCv()
|
|
|
resumeList.value = result
|
|
|
// 没有上传过简历的先去上传
|