|
@@ -46,11 +46,9 @@
|
|
|
</div>
|
|
|
<div class="bottom pa-5 d-flex justify-space-between align-center">
|
|
|
<div>
|
|
|
- {{ $t('position.refreshTime') }} :{{ timesTampChange(val.updateTime, 'Y-M-D') }}
|
|
|
- <span>
|
|
|
- <span class="septal-line"></span>
|
|
|
- 到期时间:{{ val.expireTime ? timesTampChange(val.expireTime, 'Y-M-D') : '长期有效' }}
|
|
|
- </span>
|
|
|
+ <span>{{ $t('position.refreshTime') }} :{{ val.refreshTime ? timesTampChange(val.refreshTime, 'Y-M-D h:m') : '暂无' }}</span>
|
|
|
+ <span class="septal-line"></span>
|
|
|
+ <span>到期时间:{{ val.expireTime ? timesTampChange(val.expireTime, 'Y-M-D') : '长期有效' }}</span>
|
|
|
</div>
|
|
|
<div class="d-flex">
|
|
|
<div class="ml-10 d-flex">
|
|
@@ -90,9 +88,9 @@
|
|
|
|
|
|
<Loading :visible="loading"></Loading>
|
|
|
|
|
|
- <CtDialog :visible="showExpire" :widthType="2" titleClass="text-h6" title="修改职位到期时间" @close="showExpire = false; expireTimeId = null" @submit="handleSubmit">
|
|
|
+ <!-- <CtDialog :visible="showExpire" :widthType="2" titleClass="text-h6" title="修改职位到期时间" @close="showExpire = false; expireTimeId = null" @submit="handleSubmit">
|
|
|
<CtForm v-if="showExpire" ref="CtFormRef" :items="formItem"></CtForm>
|
|
|
- </CtDialog>
|
|
|
+ </CtDialog> -->
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
@@ -120,25 +118,25 @@ const props = defineProps({
|
|
|
items: Array
|
|
|
})
|
|
|
|
|
|
-const showExpire = ref(false)
|
|
|
-const CtFormRef = ref()
|
|
|
+// const showExpire = ref(false)
|
|
|
+// const CtFormRef = ref()
|
|
|
const loading = ref(false)
|
|
|
const selectAll = ref(false) // 全选
|
|
|
const selectList = ref([]) // 选中列表
|
|
|
-const formItem = ref({
|
|
|
- options: [
|
|
|
- {
|
|
|
- type: 'datePicker',
|
|
|
- key: 'time',
|
|
|
- value: null,
|
|
|
- format: 'YYYY-MM-DD',
|
|
|
- label: '到期时间 *',
|
|
|
- labelWidth: 110,
|
|
|
- teleported: true,
|
|
|
- disabledDate: true
|
|
|
- }
|
|
|
- ]
|
|
|
-})
|
|
|
+// const formItem = ref({
|
|
|
+// options: [
|
|
|
+// {
|
|
|
+// type: 'datePicker',
|
|
|
+// key: 'time',
|
|
|
+// value: null,
|
|
|
+// format: 'YYYY-MM-DD',
|
|
|
+// label: '到期时间 *',
|
|
|
+// labelWidth: 110,
|
|
|
+// teleported: true,
|
|
|
+// disabledDate: true
|
|
|
+// }
|
|
|
+// ]
|
|
|
+// })
|
|
|
const dealSelect = () => {
|
|
|
selectList.value = props.items.filter(e => e.select).map(k => k.id)
|
|
|
}
|
|
@@ -259,19 +257,19 @@ const handleAction = async (index, type, { id }, item) => {
|
|
|
}
|
|
|
|
|
|
// 职位过期时间修改
|
|
|
-const expireTimeId = ref('')
|
|
|
-const handleUpdateExpireTime = (item) => {
|
|
|
- expireTimeId.value = item.id
|
|
|
- showExpire.value = true
|
|
|
-}
|
|
|
-const handleSubmit = async () => {
|
|
|
- const time = formItem.value.options.find(e => e.key === 'time').value
|
|
|
- if (!time) return Snackbar.warning('请选择职位到期时间')
|
|
|
- await updatePositionExpireTime({ id: expireTimeId.value, time })
|
|
|
- expireTimeId.value = ''
|
|
|
- showExpire.value = false
|
|
|
- emit('refresh')
|
|
|
-}
|
|
|
+// const expireTimeId = ref('')
|
|
|
+// const handleUpdateExpireTime = (item) => {
|
|
|
+// expireTimeId.value = item.id
|
|
|
+// showExpire.value = true
|
|
|
+// }
|
|
|
+// const handleSubmit = async () => {
|
|
|
+// const time = formItem.value.options.find(e => e.key === 'time').value
|
|
|
+// if (!time) return Snackbar.warning('请选择职位到期时间')
|
|
|
+// await updatePositionExpireTime({ id: expireTimeId.value, time })
|
|
|
+// expireTimeId.value = ''
|
|
|
+// showExpire.value = false
|
|
|
+// emit('refresh')
|
|
|
+// }
|
|
|
|
|
|
const router = useRouter()
|
|
|
// 职位编辑
|
|
@@ -290,7 +288,9 @@ const handleDetail = async (val) => {
|
|
|
|
|
|
// 查看职位投递简历
|
|
|
const handleToResume = (val) => {
|
|
|
- router.push(`/recruit/enterprise/resume?id=${val.id}`)
|
|
|
+ let path = `/recruit/enterprise/invite/resume?id=${val.id}`
|
|
|
+ if (val.bizId) path += `&jobFairId=${val.bizId}`
|
|
|
+ router.push(path)
|
|
|
}
|
|
|
</script>
|
|
|
|