|
@@ -45,9 +45,9 @@
|
|
|
<template #default="{ row }">{{ formatName(row.job.name) }}</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column v-if="fairId" label="发布企业" align="center" prop="enterprise.anotherName">
|
|
|
- <template #default="{ row }">{{ formatName(row.enterprise.anotherName || rpw.enterprise.name) }}</template>
|
|
|
+ <template #default="{ row }">{{ formatName(row.enterprise.anotherName || row.enterprise.name) }}</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column label="职位发布人" align="center" prop="contact.name" />
|
|
|
+ <el-table-column v-if="isRecruitmentOfficer" label="职位发布人" align="center" prop="contact.name" />
|
|
|
<el-table-column label="求职者联系电话" align="center" prop="person.phone" />
|
|
|
<el-table-column v-if="!fairId" label="招聘会" align="center" prop="jobFair.title" />
|
|
|
<el-table-column label="简历查看状态" align="center" prop="cvRel.status">
|
|
@@ -99,7 +99,9 @@ import { JobFairWhiteApi } from '@/api/menduner/system/jobFair/white'
|
|
|
|
|
|
const props = defineProps({
|
|
|
id: String,
|
|
|
- fairId: String
|
|
|
+ fairId: String,
|
|
|
+ userId: String,
|
|
|
+ isRecruitmentOfficer: { type: Boolean, default: false }
|
|
|
})
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
@@ -111,6 +113,7 @@ const queryParams = reactive({
|
|
|
pageNo: 1,
|
|
|
pageSize: 10,
|
|
|
jobId: undefined,
|
|
|
+ userId: props.userId ?? undefined,
|
|
|
jobFairId: props.fairId ?? undefined,
|
|
|
enterpriseId: props.id
|
|
|
})
|
|
@@ -156,8 +159,12 @@ const handleGetMore = () => {
|
|
|
// 获取招聘职位列表
|
|
|
const jobList = ref([])
|
|
|
const getJobList = async () => {
|
|
|
+ const params = {
|
|
|
+ enterpriseId: props.id
|
|
|
+ }
|
|
|
+ if (props.userId) params.userId = props.userId
|
|
|
try {
|
|
|
- const data = await statisticAnalysisApi.getAnalysisJobAdvertisedList({ enterpriseId: props.id })
|
|
|
+ const data = await statisticAnalysisApi.getAnalysisJobAdvertisedList(params)
|
|
|
jobList.value = jobList.value.concat(data)
|
|
|
} catch {}
|
|
|
}
|
|
@@ -182,8 +189,9 @@ const handleGetEnterpriseMore = () => {
|
|
|
getEnterpriseList()
|
|
|
}
|
|
|
|
|
|
-if (!props.fairId) {
|
|
|
+if (props.id || props.userId) {
|
|
|
getJobFairList()
|
|
|
getJobList()
|
|
|
-} else getEnterpriseList()
|
|
|
+}
|
|
|
+if (props.fairId) getEnterpriseList()
|
|
|
</script>
|