|
@@ -32,15 +32,17 @@
|
|
|
<div class="society_form_tip clearfix">
|
|
|
<label class="society_form_label">行业类别:</label>
|
|
|
<div class="society_form_right_a_box clearfix">
|
|
|
- <a class="society_form_right_a" :class="{ society_form_right_a_only: hyid == '' || !hyid }"
|
|
|
- title="全部">
|
|
|
+ <a class="society_form_right_a"
|
|
|
+ :class="{ society_form_right_a_only: hyid == '' || !hyid || hyid == 0 }" title="全部"
|
|
|
+ @click="hyChange(0)">
|
|
|
全部
|
|
|
</a>
|
|
|
<NuxtLink v-for="(item, index) in industry_categoryList" :key="item">
|
|
|
<span class="society_form_right_a"
|
|
|
:class="{ society_form_right_a_only: item.hyid == hyid }" :title="item.hyname"
|
|
|
- v-if="index < 20 && hyIndex == 1">{{ item.hyname }}</span>
|
|
|
- <span class="society_form_right_a" v-if="hyIndex == 2"
|
|
|
+ @click="hyChange(item.hyid)" v-if="index < 20 && hyIndex == 1">{{ item.hyname
|
|
|
+ }}</span>
|
|
|
+ <span class="society_form_right_a" v-if="hyIndex == 2" @click="hyChange(item.hyid)"
|
|
|
:class="{ society_form_right_a_only: item.hyid == hyid }" :title="item.hyname">
|
|
|
{{ item.hyname }}
|
|
|
</span>
|
|
@@ -52,14 +54,16 @@
|
|
|
<div class="society_form_tip clearfix">
|
|
|
<label class="society_form_label">职位类别:</label>
|
|
|
<div class="society_form_right_a_box clearfix">
|
|
|
- <a class="society_form_right_a" :class="{ society_form_right_a_only: zwid == '' || !zwid }"
|
|
|
- title="">全部</a>
|
|
|
+ <a class="society_form_right_a"
|
|
|
+ :class="{ society_form_right_a_only: zwid == '' || !zwid || zwid == 0 }" title=""
|
|
|
+ @click="zwChange(0)">全部</a>
|
|
|
<span v-for="(item, index) in position_categoryList" :key="item">
|
|
|
<span class="society_form_right_a" v-if="index < 20 && zwIndex == 1"
|
|
|
+ @click="zwChange(item.zwid)"
|
|
|
:class="{ society_form_right_a_only: item.zwid == zwid }" :title="item.zwname">
|
|
|
{{ item.zwname }}
|
|
|
</span>
|
|
|
- <span class="society_form_right_a" v-if="zwIndex == 2"
|
|
|
+ <span class="society_form_right_a" v-if="zwIndex == 2" @click="zwChange(item.zwid)"
|
|
|
:class="{ society_form_right_a_only: item.zwid == zwid }" :title="item.zwname">
|
|
|
{{ item.zwname }}
|
|
|
</span>
|
|
@@ -70,17 +74,19 @@
|
|
|
v-if="zwIndex == 2">收起</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="society_form_tip clearfix" v-if="job_search == 2">
|
|
|
+ <div class="society_form_tip clearfix">
|
|
|
<label class="society_form_label">具体职位:</label>
|
|
|
<div class="society_form_right_a_box clearfix">
|
|
|
- <a class="society_form_right_a"
|
|
|
- :class="{ society_form_right_a_only: jtzwid == '' || !jtzwid }" title="">全部</a>
|
|
|
+ <a class="society_form_right_a" @click="jtzwChange(0)"
|
|
|
+ :class="{ society_form_right_a_only: jtzwid == '' || !jtzwid || jtzwid == 0 }"
|
|
|
+ title="">全部</a>
|
|
|
<span v-for="(item, index) in positionList" :key="item">
|
|
|
<span class="society_form_right_a" v-if="index < 20 && jtzwIndex == 1"
|
|
|
+ @click="jtzwChange(item.zwid)"
|
|
|
:class="{ society_form_right_a_only: item.zwid == jtzwid }" :title="item.zwname">
|
|
|
{{ item.zwname }}
|
|
|
</span>
|
|
|
- <span class="society_form_right_a" v-if="jtzwIndex == 2"
|
|
|
+ <span class="society_form_right_a" v-if="jtzwIndex == 2" @click="jtzwChange(item.zwid)"
|
|
|
:class="{ society_form_right_a_only: item.zwid == jtzwid }" :title="item.zwname">
|
|
|
{{ item.zwname }}
|
|
|
</span>
|
|
@@ -100,7 +106,7 @@
|
|
|
:value="item.id" />
|
|
|
</el-select>
|
|
|
<el-select v-model="city" placeholder="请选择市" style="width: 140px" no-data-text="请先选择省"
|
|
|
- clearable @change="cityChange">
|
|
|
+ clearable>
|
|
|
<el-option v-for="item in cityList" :key="item.id" :label="item.name"
|
|
|
:value="item.id" />
|
|
|
</el-select>
|
|
@@ -157,15 +163,12 @@
|
|
|
<div class=" clearfix">
|
|
|
<!-- 找工作 -->
|
|
|
<div class=" clearfix" v-show="job_search == 1">
|
|
|
- <div class="cruit_ul_2 clearfix">
|
|
|
+ <div class="cruit_ul_2 clearfix" v-if="job_vacancy">
|
|
|
<div class="cruit_li_2 clearfix" v-for="(item, index) in job_vacancy" :key="item.id">
|
|
|
-
|
|
|
- <div class="society_inp_checkbox_box_li_1 hand">
|
|
|
+ <div class="society_inp_checkbox_box_li_1 hand" v-if="type_id == 1">
|
|
|
<el-checkbox v-model="selectedJobs" :value="item.id" @change="jobChange" />
|
|
|
</div>
|
|
|
- <NuxtLink class="cruit_li_2_a"
|
|
|
- :href="`/${item.pinyin}/${item.id}.html?type=${job_search}`" title="">
|
|
|
-
|
|
|
+ <NuxtLink class="cruit_li_2_a" :href="`/${item.pinyin}/${item.id}.html`" title="">
|
|
|
<div class="cruit_li_2_head_box clearfix">
|
|
|
<div class="cruit_li_2_head clearfix dot1">{{ item.title }}</div>
|
|
|
<div class="cruit_li_2_head_name clearfix dot1">
|
|
@@ -191,21 +194,24 @@
|
|
|
</NuxtLink>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="pagination">
|
|
|
- <el-pagination size="small" background layout="prev, pager, next" :total="total"
|
|
|
- class="mt-4" prev-text="上一页" next-text="下一页" @change="change" />
|
|
|
+ <div class="pagination" v-if="zptotal">
|
|
|
+ <el-pagination size="small" background layout="prev, pager, next" :total="zptotal"
|
|
|
+ class="mt-4" prev-text="上一页" next-text="下一页" @change="changePage" />
|
|
|
+ </div>
|
|
|
+ <div class="empty" v-if="job_vacancy == false">
|
|
|
+ <img src="@/public/topic/empty.png" alt="" class="empty_img">
|
|
|
+ <span class="empty_text">当前暂无数据</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 找工作 -->
|
|
|
<!-- 招人才 -->
|
|
|
<div class=" clearfix" v-show="job_search == 2">
|
|
|
- <div class="society_ul_3 clearfix">
|
|
|
+ <div class="society_ul_3 clearfix" v-if="job_resume">
|
|
|
<div class="society_li_3 clearfix" v-for="(item, index) in job_resume" :key="item">
|
|
|
- <div class="society_inp_checkbox_box_li_3 hand">
|
|
|
+ <div class="society_inp_checkbox_box_li_3 hand" v-if="type_id == 3">
|
|
|
<el-checkbox v-model="selectedResume" :value="item.id" @change="jobChange" />
|
|
|
</div>
|
|
|
- <NuxtLink class="society_li_3_a"
|
|
|
- :href="`/${item.pinyin}/${item.id}.html?type=${job_search}`" title="">
|
|
|
+ <NuxtLink class="society_li_3_a" :href="`/${item.pinyin}/${item.id}.html`" title="">
|
|
|
<div class="society_li_3_head_box clearfix">
|
|
|
<div class="society_li_3_head clearfix dot1">
|
|
|
{{ item.name }}
|
|
@@ -238,9 +244,13 @@
|
|
|
</NuxtLink>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="pagination">
|
|
|
- <el-pagination size="small" background layout="prev, pager, next" :total="total"
|
|
|
- class="mt-4" prev-text="上一页" next-text="下一页" @change="change" />
|
|
|
+ <div class="pagination" v-if="qztotal">
|
|
|
+ <el-pagination size="small" background layout="prev, pager, next" :total="qztotal"
|
|
|
+ class="mt-4" prev-text="上一页" next-text="下一页" @change="changePage" />
|
|
|
+ </div>
|
|
|
+ <div class="empty" v-if="job_resume == false">
|
|
|
+ <img src="@/public/topic/empty.png" alt="" class="empty_img">
|
|
|
+ <span class="empty_text">当前暂无数据</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 招人才 -->
|
|
@@ -276,7 +286,7 @@
|
|
|
<div class="cruit_alert_rgb_box">
|
|
|
<div class="cruit_alert_rgb_head_box">
|
|
|
<div class="cruit_alert_rgb_close hand back100"></div>
|
|
|
- <div class="cruit_alert_rgb_head">请选择要投递的简历
|
|
|
+ <div class="cruit_alert_rgb_head">请选择要沟通的岗位
|
|
|
<span class="close" @click="resumeBoo = false">x</span>
|
|
|
</div>
|
|
|
|
|
@@ -351,18 +361,26 @@ if (gettypeid.code == 200) {
|
|
|
//1.获得路由id start ---------------------------------------->
|
|
|
const route = useRoute();
|
|
|
|
|
|
-const hyid = route.query.hyid;
|
|
|
-const zwid = route.query.zwid;
|
|
|
-const jtzwid = route.query.jtzwid;
|
|
|
-const provinceid = route.query.provinceid;
|
|
|
-const cityid = route.query.cityid;
|
|
|
+const hyid = ref(route.query.hyid);
|
|
|
+const zwid = ref(route.query.zwid);
|
|
|
+const jtzwid = ref(route.query.jtzwid);
|
|
|
+const provinceid = ref(route.query.provinceid);
|
|
|
+const cityid = ref(route.query.cityid);
|
|
|
+// const zwid = route.query.zwid;
|
|
|
+// const jtzwid = route.query.jtzwid;
|
|
|
+// const provinceid = route.query.provinceid;
|
|
|
+// const cityid = route.query.cityid;
|
|
|
const keyword = route.query.keywords;
|
|
|
|
|
|
+
|
|
|
+
|
|
|
let articleId = 0;//路由id
|
|
|
let pageNum = ref(2);
|
|
|
-let total = ref(1);
|
|
|
+let total = ref(0);
|
|
|
+let zptotal = ref(0);
|
|
|
+let qztotal = ref(0);
|
|
|
const page = ref(1)
|
|
|
-let pageSize = ref(20);
|
|
|
+const pageSize = ref(10);
|
|
|
let hyIndex = ref(1);
|
|
|
let zwIndex = ref(1);
|
|
|
let jtzwIndex = ref(1);
|
|
@@ -418,7 +436,6 @@ let createJob = () => {
|
|
|
// 2.1.1 获取省份
|
|
|
const province = ref('') //省
|
|
|
const city = ref('') //市
|
|
|
-let province_id = ref('')
|
|
|
const provinceList = ref([]) //省列表
|
|
|
const cityList = ref([]) //市列表
|
|
|
const getArea = await requestDataPromise('/web/selectWebsiteArea', {
|
|
@@ -432,7 +449,8 @@ if (getArea.code == 200) {
|
|
|
|
|
|
// 2.1.2 获取
|
|
|
const provinceChange = (val) => {
|
|
|
- province_id.value = val;
|
|
|
+ provinceid.value = val;
|
|
|
+ city.value = '';
|
|
|
console.log('获取到的省份id', val);
|
|
|
getCity(val)
|
|
|
}
|
|
@@ -489,7 +507,10 @@ const getData = async () => {
|
|
|
// console.log("获取到的分类数据:", getData.data);
|
|
|
industry_categoryList.value = getData.data.hy; //行业
|
|
|
position_categoryList.value = getData.data.zw; //职位
|
|
|
- positionList.value = getData.data.jtzw; //具体职位
|
|
|
+ if (zwid.value == 0 || zwid.value == '' || zwid.value == undefined || zwid.value == null) {
|
|
|
+ positionList.value = getData.data.jtzw; //具体职位
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
getData()
|
|
@@ -504,10 +525,10 @@ const getJob = async () => {
|
|
|
method: 'GET',
|
|
|
query: {
|
|
|
'catid': articleId,
|
|
|
- 'city_id': provinceid,
|
|
|
- 'hy_id': hyid,
|
|
|
- 'zw_id': zwid,
|
|
|
- 'jtzw_id': jtzwid,
|
|
|
+ 'city_id': provinceid.value,
|
|
|
+ 'hy_id': hyid.value,
|
|
|
+ 'zw_id': zwid.value,
|
|
|
+ 'jtzw_id': jtzwid.value,
|
|
|
'page': page.value,
|
|
|
'pageSize': pageSize.value,
|
|
|
'keyword': keywords.value,
|
|
@@ -517,39 +538,64 @@ const getJob = async () => {
|
|
|
// console.log("获取到的岗位和简历:", getJob.data);
|
|
|
job_vacancy.value = getJob.data.JobRecruiting; // 招聘岗位
|
|
|
job_resume.value = getJob.data.JobHunting; // 简历
|
|
|
- if (job_search == 1) {
|
|
|
- total.value = getJob.data.recruit_count;
|
|
|
- } else {
|
|
|
- total.value = getJob.data.hunt_count;
|
|
|
- }
|
|
|
+ zptotal.value = getJob.data.recruit_count;
|
|
|
+ qztotal.value = getJob.data.hunt_count;
|
|
|
}
|
|
|
}
|
|
|
getJob()
|
|
|
|
|
|
+let hyChange = (val) => {
|
|
|
+ console.log('hyChange', val)
|
|
|
+ hyid.value = val;
|
|
|
+ getJob()
|
|
|
+}
|
|
|
+let zwChange = async (val) => {
|
|
|
+ console.log('zwChange', val)
|
|
|
+ zwid.value = val;
|
|
|
+ const getPosition = await requestDataPromise('/web/getPositionList', {
|
|
|
+ method: 'GET',
|
|
|
+ query: {
|
|
|
+ 'zwpid': val,
|
|
|
+ },
|
|
|
+ })
|
|
|
+ console.log("11112222", getPosition);
|
|
|
+
|
|
|
+ if (getPosition.code == 200) {
|
|
|
+ positionList.value = getPosition.data; //具体职位
|
|
|
+ }else{
|
|
|
+ positionList.value = []; //具体职位
|
|
|
+ jtzwid.value = 0; //职位id
|
|
|
+ }
|
|
|
+ getJob()
|
|
|
+}
|
|
|
+let jtzwChange = (val) => {
|
|
|
+ console.log('jtzwChange', val)
|
|
|
+ jtzwid.value = val;
|
|
|
+ getJob()
|
|
|
+}
|
|
|
+
|
|
|
// 搜索
|
|
|
const goSearch = async () => {
|
|
|
const getJob = await requestDataPromise('/web/getWebsiteJobList', {
|
|
|
method: 'GET',
|
|
|
query: {
|
|
|
'catid': articleId,
|
|
|
- 'city_id': province_id.value,
|
|
|
- 'hy_id': hyid,
|
|
|
- 'zw_id': zwid,
|
|
|
- 'jtzw_id': jtzwid,
|
|
|
+ 'city_id': provinceid.value,
|
|
|
+ 'hy_id': hyid.value,
|
|
|
+ 'zw_id': zwid.value,
|
|
|
+ 'jtzw_id': jtzwid.value,
|
|
|
'page': page.value,
|
|
|
'pageSize': pageSize.value,
|
|
|
'keyword': keywords.value,
|
|
|
},
|
|
|
});
|
|
|
+ console.log("111获取到的岗位和简历:", getJob.data);
|
|
|
+
|
|
|
if (getJob.code == 200) {
|
|
|
- // console.log("获取到的岗位和简历:", getJob.data);
|
|
|
job_vacancy.value = getJob.data.JobRecruiting; // 招聘岗位
|
|
|
job_resume.value = getJob.data.JobHunting; // 简历
|
|
|
- if (job_search == 1) {
|
|
|
- total.value = getJob.data.recruit_count;
|
|
|
- } else {
|
|
|
- total.value = getJob.data.hunt_count;
|
|
|
- }
|
|
|
+ zptotal.value = getJob.data.recruit_count;
|
|
|
+ qztotal.value = getJob.data.hunt_count;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -644,8 +690,8 @@ let companyJOb = async () => {
|
|
|
const companyJOb = await requestDataPromise('/web/getWebsiteJobRecruiting', {
|
|
|
method: 'POST',
|
|
|
body: {
|
|
|
- 'pageSize': 10,
|
|
|
- 'website_id': 2,
|
|
|
+ 'pageSize': pageSize.value,
|
|
|
+ 'website_id': website_id.value,
|
|
|
}
|
|
|
})
|
|
|
// console.log("获取到的企业会员的职位11:", companyJOb.data);
|
|
@@ -841,4 +887,21 @@ onMounted(async () => {
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
@import url('@/assets/css/zgzpsearch.less');
|
|
|
+
|
|
|
+.empty {
|
|
|
+ width: 100%;
|
|
|
+ height: 150px;
|
|
|
+ line-height: 150px;
|
|
|
+ text-align: center;
|
|
|
+}
|
|
|
+
|
|
|
+.empty_img {
|
|
|
+ vertical-align: -30px;
|
|
|
+ margin-right: 20px;
|
|
|
+}
|
|
|
+
|
|
|
+.empty_text {
|
|
|
+ font-size: 26px;
|
|
|
+ color: #999;
|
|
|
+}
|
|
|
</style>
|