|
@@ -8,6 +8,7 @@
|
|
<div :style="{'background-color': jobFair.backgroundColour || '#fff', 'min-height': '100vh'}" class="pt-10">
|
|
<div :style="{'background-color': jobFair.backgroundColour || '#fff', 'min-height': '100vh'}" class="pt-10">
|
|
<div :class="{'default-width': !isMobile}">
|
|
<div :class="{'default-width': !isMobile}">
|
|
<h2 class="color-white pt-5 enterpriseName" :class="{'ml-3': isMobile}">{{ enterpriseName }}</h2>
|
|
<h2 class="color-white pt-5 enterpriseName" :class="{'ml-3': isMobile}">{{ enterpriseName }}</h2>
|
|
|
|
+ <SearchBar v-model="query.keyword" class="py-5" :isMobile="isMobile" placeholder="搜索关键字" @handleSearch="handleSearch" />
|
|
<div v-if="!items.length" class="emptyText">{{ loadingType === 1 ? loadingText[loadingType] : '暂无数据,去看看其他吧~' }}</div>
|
|
<div v-if="!items.length" class="emptyText">{{ loadingType === 1 ? loadingText[loadingType] : '暂无数据,去看看其他吧~' }}</div>
|
|
<template v-else>
|
|
<template v-else>
|
|
<JobCard :jobFairId="jobFair?.id" :list="items" :isMobile="isMobile" class="pt-5" />
|
|
<JobCard :jobFairId="jobFair?.id" :list="items" :isMobile="isMobile" class="pt-5" />
|
|
@@ -44,12 +45,14 @@ import { dealDictObjData } from '@/utils/position'
|
|
import { getEnterpriseDetails } from '@/api/enterprise'
|
|
import { getEnterpriseDetails } from '@/api/enterprise'
|
|
import { formatName } from '@/utils/getText'
|
|
import { formatName } from '@/utils/getText'
|
|
import JobFairEntShare from '@/views/recruit/components/jobFairEntShare'
|
|
import JobFairEntShare from '@/views/recruit/components/jobFairEntShare'
|
|
|
|
+import SearchBar from '../components/searchBar.vue'
|
|
|
|
|
|
const query = reactive({
|
|
const query = reactive({
|
|
pageNo: 1,
|
|
pageNo: 1,
|
|
pageSize: 20,
|
|
pageSize: 20,
|
|
jobFairId: route.params.id,
|
|
jobFairId: route.params.id,
|
|
- enterpriseId: route.query.enterpriseId
|
|
|
|
|
|
+ enterpriseId: route.query.enterpriseId,
|
|
|
|
+ keyword: ''
|
|
})
|
|
})
|
|
|
|
|
|
const logoUrl = ref('')
|
|
const logoUrl = ref('')
|
|
@@ -89,6 +92,13 @@ const getList = async () => {
|
|
} catch {}
|
|
} catch {}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+// 搜索
|
|
|
|
+const handleSearch = (val) => {
|
|
|
|
+ query.pageNo = 1
|
|
|
|
+ query.keyword = val
|
|
|
|
+ getList()
|
|
|
|
+}
|
|
|
|
+
|
|
// 招聘会详情
|
|
// 招聘会详情
|
|
const jobFair = ref([])
|
|
const jobFair = ref([])
|
|
const enterpriseName = ref('')
|
|
const enterpriseName = ref('')
|