|
@@ -30,7 +30,7 @@
|
|
|
</template>
|
|
|
<template v-slot:item.actions="{ item }">
|
|
|
<div v-if="tab === '0'">
|
|
|
- <v-btn color="primary" variant="text" @click="previewFile(item.url)">查看简历</v-btn>
|
|
|
+ <v-btn color="primary" variant="text" @click="handlePreviewResume(item)">查看简历</v-btn>
|
|
|
<v-btn color="primary" variant="text" @click="handleAction('', 0, item)">不合适</v-btn>
|
|
|
</div>
|
|
|
<div v-if="tab === '1'">
|
|
@@ -45,7 +45,7 @@
|
|
|
defineOptions({ name: 'table-page'})
|
|
|
import { ref, computed } from 'vue'
|
|
|
import { previewFile } from '@/utils'
|
|
|
-import { joinEliminate, personEntryByEnterprise } from '@/api/enterprise'
|
|
|
+import { personJobCvLook, joinEliminate, personEntryByEnterprise } from '@/api/recruit/enterprise/personnel'
|
|
|
import { useI18n } from '@/hooks/web/useI18n'
|
|
|
import Snackbar from '@/plugins/snackbar'
|
|
|
|
|
@@ -65,13 +65,13 @@ const badgeIcon = computed(() => (item) => {
|
|
|
|
|
|
const selected = ref([])
|
|
|
const headers = ref([
|
|
|
- { title: '姓名', value: 'name' },
|
|
|
- { title: '应聘职位', value: 'job.name' },
|
|
|
- { title: '求职状态', key: 'person.jobStatusName' },
|
|
|
- { title: '工作经验', key: 'person.expName' },
|
|
|
- { title: '最高学历', key: 'person.eduName' },
|
|
|
+ { title: '姓名', value: 'name', sortable: false },
|
|
|
+ { title: '应聘职位', value: 'job.name', sortable: false },
|
|
|
+ { title: '求职状态', key: 'person.jobStatusName', sortable: false },
|
|
|
+ { title: '工作经验', key: 'person.expName', sortable: false },
|
|
|
+ { title: '最高学历', key: 'person.eduName', sortable: false },
|
|
|
{ title: '岗位薪资', key: 'job', value: item => `${item.job.payFrom}-${item.job.payTo}/${item.job.payName}`, sortable: false },
|
|
|
- { title: '操作', value: 'actions' }
|
|
|
+ { title: '操作', value: 'actions', sortable: false }
|
|
|
])
|
|
|
|
|
|
// 人才详情
|
|
@@ -93,6 +93,13 @@ const handleAction = async (type, index, item) => {
|
|
|
Snackbar.success(t('common.operationSuccessful'))
|
|
|
emit('refresh')
|
|
|
}
|
|
|
+
|
|
|
+// 查看简历
|
|
|
+const handlePreviewResume = async (url, id) => {
|
|
|
+ if (!url || !id) return
|
|
|
+ await personJobCvLook(id)
|
|
|
+ previewFile(url)
|
|
|
+}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|