|
@@ -58,11 +58,11 @@
|
|
</div>
|
|
</div>
|
|
<div class="mb-5 text-center" style="height: 80px; line-height: 80px;">
|
|
<div class="mb-5 text-center" style="height: 80px; line-height: 80px;">
|
|
<v-btn class="mr-2 radius button-item" color="success" variant="outlined" target="_blank" to="/recruit/personal/position">{{ $t('position.moreBtn') }}</v-btn>
|
|
<v-btn class="mr-2 radius button-item" color="success" variant="outlined" target="_blank" to="/recruit/personal/position">{{ $t('position.moreBtn') }}</v-btn>
|
|
- <v-btn class="radius button-item" color="primary" @click="handleDelivery">{{ $t('position.submitResume') }}</v-btn>
|
|
|
|
|
|
+ <v-btn class="radius button-item" color="primary" :disabled="delivery" @click="handleDelivery">{{ delivery ? $t('position.delivered') : $t('position.submitResume') }}</v-btn>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</v-card>
|
|
</v-card>
|
|
- <handleDeliveryCom v-if="showHandleDelivery" :jobId="jobId" :hire="info?.hire" :userId="sharedById"></handleDeliveryCom>
|
|
|
|
|
|
+ <handleDeliveryCom v-if="showHandleDelivery" :jobId="jobId" :hire="info?.hire" :userId="sharedById" @refresh="handleCheckJobDelivery"></handleDeliveryCom>
|
|
<CtDialog
|
|
<CtDialog
|
|
:visible="showQuickResumeDialog"
|
|
:visible="showQuickResumeDialog"
|
|
:widthType="2"
|
|
:widthType="2"
|
|
@@ -80,7 +80,7 @@
|
|
<script setup>
|
|
<script setup>
|
|
defineOptions({name: 'recruit-personal-shareJob-index'})
|
|
defineOptions({name: 'recruit-personal-shareJob-index'})
|
|
import { onMounted, ref } from 'vue';
|
|
import { onMounted, ref } from 'vue';
|
|
-import { getPositionDetails } from '@/api/position'
|
|
|
|
|
|
+import { getPositionDetails, jobCvRelCheckSend } from '@/api/position'
|
|
import { dealDictObjData } from '@/utils/position'
|
|
import { dealDictObjData } from '@/utils/position'
|
|
import handleDeliveryCom from './components/handleDeliveryCom.vue'
|
|
import handleDeliveryCom from './components/handleDeliveryCom.vue'
|
|
import login from './components/login.vue'
|
|
import login from './components/login.vue'
|
|
@@ -106,13 +106,23 @@ const getPositionDetail = async () => {
|
|
info.value = data
|
|
info.value = data
|
|
positionInfo.value = { ...dealDictObjData({}, info.value), ...info.value }
|
|
positionInfo.value = { ...dealDictObjData({}, info.value), ...info.value }
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// 效验是否已投递
|
|
|
|
+const delivery = ref(false)
|
|
|
|
+const handleCheckJobDelivery = async () => {
|
|
|
|
+ delivery.value = await jobCvRelCheckSend({ jobId })
|
|
|
|
+}
|
|
|
|
+
|
|
// 判断有没有jobId跟sharedById,没有的话关闭当前窗口
|
|
// 判断有没有jobId跟sharedById,没有的话关闭当前窗口
|
|
if (!jobId || !sharedById) {
|
|
if (!jobId || !sharedById) {
|
|
Snackbar.warning('当前打开的链接无效')
|
|
Snackbar.warning('当前打开的链接无效')
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
window.close()
|
|
window.close()
|
|
}, 2000)
|
|
}, 2000)
|
|
-} else getPositionDetail()
|
|
|
|
|
|
+} else {
|
|
|
|
+ getPositionDetail()
|
|
|
|
+ if (getPersonalToken()) handleCheckJobDelivery()
|
|
|
|
+}
|
|
|
|
|
|
const desc = [
|
|
const desc = [
|
|
{ mdi: 'mdi-map-marker-outline', value: 'areaName' },
|
|
{ mdi: 'mdi-map-marker-outline', value: 'areaName' },
|