|
@@ -20,8 +20,8 @@
|
|
@confirm="handleSearch('name', query.name)"
|
|
@confirm="handleSearch('name', query.name)"
|
|
></uni-search-bar>
|
|
></uni-search-bar>
|
|
<view style="padding: 0 10px;">
|
|
<view style="padding: 0 10px;">
|
|
- <FilterList :list="filterList" idValue="label" labelWidth="93%" :paddingBottom="10" @change="handleSearch"></FilterList>
|
|
|
|
- </view>
|
|
|
|
|
|
+ <FilterList :list="filterList" idValue="label" labelWidth="93%" :paddingBottom="10" @change="handleSearch" />
|
|
|
|
+ </view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<scroll-view class="scrollBox" :scroll-y="true" @scrolltolower="loadingMore" style="position:relative;">
|
|
<scroll-view class="scrollBox" :scroll-y="true" @scrolltolower="loadingMore" style="position:relative;">
|
|
@@ -45,7 +45,7 @@ import { onLoad } from '@dcloudio/uni-app'
|
|
|
|
|
|
const filterList = ref([
|
|
const filterList = ref([
|
|
{ label: '投递职位',key: 'jobId', dataLabel: 'name', dataValue: 'id', api: getJobAdvertised, isFormatText: true },
|
|
{ label: '投递职位',key: 'jobId', dataLabel: 'name', dataValue: 'id', api: getJobAdvertised, isFormatText: true },
|
|
- { label: '招聘会', key: 'jobFairId', dataLabel: 'title', dataValue: 'id', isRichText: true, api: getJobFairList },
|
|
|
|
|
|
+ { label: '招聘会', key: 'jobFairId' },
|
|
{ label: '最高学历', dictType: 'menduner_education_type', key: 'eduType' },
|
|
{ label: '最高学历', dictType: 'menduner_education_type', key: 'eduType' },
|
|
{ label: '工作经验', dictType: 'menduner_exp_type', key: 'expType' },
|
|
{ label: '工作经验', dictType: 'menduner_exp_type', key: 'expType' },
|
|
// { label: '求职状态', dictType: 'menduner_job_seek_status', key: 'jobStatus' }
|
|
// { label: '求职状态', dictType: 'menduner_job_seek_status', key: 'jobStatus' }
|
|
@@ -110,7 +110,14 @@ const getList = async () => {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-onLoad((options) => {
|
|
|
|
|
|
+onLoad(async (options) => {
|
|
|
|
+ const jobFairList = []
|
|
|
|
+ // 招聘会列表
|
|
|
|
+ try {
|
|
|
|
+ const { data } = await getJobFairList()
|
|
|
|
+ jobFairList = data.map(e => ({ label: e.title.replace(/<\/?p[^>]*>/gi, ''), value: e.id }))
|
|
|
|
+ } catch {}
|
|
|
|
+
|
|
if (options?.jobId) {
|
|
if (options?.jobId) {
|
|
query.value.jobId = options.jobId
|
|
query.value.jobId = options.jobId
|
|
const item = filterList.value.find(e => e.key === 'jobId')
|
|
const item = filterList.value.find(e => e.key === 'jobId')
|
|
@@ -120,8 +127,13 @@ onLoad((options) => {
|
|
if (options?.jobFairId) {
|
|
if (options?.jobFairId) {
|
|
query.value.jobFairId = options.jobFairId
|
|
query.value.jobFairId = options.jobFairId
|
|
const item = filterList.value.find(e => e.key === 'jobFairId')
|
|
const item = filterList.value.find(e => e.key === 'jobFairId')
|
|
- item.value = options.jobFairId
|
|
|
|
- item.name = decodeURIComponent(options.jobFairName)
|
|
|
|
|
|
+ item.items = jobFairList
|
|
|
|
+ // 招聘会存在才添加其参数
|
|
|
|
+ if (jobFairList.find(k => k.id === options.jobFairId)) {
|
|
|
|
+ item.value = options.jobFairId
|
|
|
|
+ item.name = decodeURIComponent(options.jobFairName)
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
query.value.pageNo = 1
|
|
query.value.pageNo = 1
|
|
getList()
|
|
getList()
|