|
|
|
|
@ -331,34 +331,38 @@
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
<div class="model-obj-copy">
|
|
|
|
|
<div class="filter" :class="[filterStatus == 0 ? '' : 'nobd']" style="border-radius: 6px;overflow: hidden;">
|
|
|
|
|
<div class="filter-title" :style="{ top: filterStatus == 0 ? '-32px' : '-21px' }">
|
|
|
|
|
<span>
|
|
|
|
|
<span class="filter-show">
|
|
|
|
|
<span @click="delFilter($event, 'price')" v-show="filterObj.price">
|
|
|
|
|
{{ filterObj.price }}
|
|
|
|
|
<i class="iconfont icon-guanbi2" v-show="filterObj.price"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<span @click="delFilter($event, 'gender')" v-show="filterObj.gender">
|
|
|
|
|
{{ filterObj.gender }}
|
|
|
|
|
<i class="iconfont icon-guanbi2" v-show="filterObj.gender"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<span @click="delFilter($event, 'age')" v-show="filterObj.age">
|
|
|
|
|
{{ filterObj.age }}
|
|
|
|
|
<i class="iconfont icon-guanbi2" v-show="filterObj.age"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<span @click="delFilter($event, 'special', item)" v-for="(item, index) in filterObj.specialactive" :key="index">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
<i class="iconfont icon-guanbi2"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<i v-show="showDotted" style="line-height: 24px">...</i>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="model-obj-copy g_flex_row_between">
|
|
|
|
|
<div class="filter" :class="[filterStatus == 0 ? '' : 'nobd']" style="border-radius: 6px;overflow: hidden;">
|
|
|
|
|
<div class="filter-title" :style="{ top: filterStatus == 0 ? '-32px' : '-21px' }">
|
|
|
|
|
<span>
|
|
|
|
|
<span class="filter-show">
|
|
|
|
|
<span @click="delFilter($event, 'price')" v-show="filterObj.price">
|
|
|
|
|
{{ filterObj.price }}
|
|
|
|
|
<i class="iconfont icon-guanbi2" v-show="filterObj.price"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<span @click="delFilter($event, 'gender')" v-show="filterObj.gender">
|
|
|
|
|
{{ filterObj.gender }}
|
|
|
|
|
<i class="iconfont icon-guanbi2" v-show="filterObj.gender"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<span @click="delFilter($event, 'age')" v-show="filterObj.age">
|
|
|
|
|
{{ filterObj.age }}
|
|
|
|
|
<i class="iconfont icon-guanbi2" v-show="filterObj.age"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<span @click="delFilter($event, 'special', item)" v-for="(item, index) in filterObj.specialactive" :key="index">
|
|
|
|
|
{{ item.name }}
|
|
|
|
|
<i class="iconfont icon-guanbi2"></i>
|
|
|
|
|
</span>
|
|
|
|
|
<i v-show="showDotted" style="line-height: 24px">...</i>
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="g_fs_14 clear-obj" style="cursor: pointer;" @click="clearFilter"
|
|
|
|
|
v-show="filterObj.price || filterObj.price || filterObj.gender || filterObj.age || filterObj.specialactive.length"
|
|
|
|
|
>
|
|
|
|
|
清除
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 面包屑 -->
|
|
|
|
|
@ -1340,25 +1344,43 @@ export default {
|
|
|
|
|
// this.isspinning = true;
|
|
|
|
|
console.log('newdata',newdata);
|
|
|
|
|
try {
|
|
|
|
|
newdata = {
|
|
|
|
|
district: "",
|
|
|
|
|
monthlyPayStr: "",
|
|
|
|
|
ageStr: "",
|
|
|
|
|
jobRequestLabelIds: "",
|
|
|
|
|
aliasName: "",
|
|
|
|
|
pageNum: this.formvalue.pageNum, // 使用当前页码
|
|
|
|
|
pageSize: 8,
|
|
|
|
|
total: null, //分页配置
|
|
|
|
|
isScroll: newdata && newdata.isScroll == 1 ? 1 : 0,
|
|
|
|
|
sortTag: this.sortTag
|
|
|
|
|
};
|
|
|
|
|
for (var k in this.formvalue) {
|
|
|
|
|
if (Array.isArray(this.formvalue[k])) {
|
|
|
|
|
newdata[k] = this.formvalue[k].length > 0 ? this.formvalue[k].join() : "";
|
|
|
|
|
} else {
|
|
|
|
|
newdata[k] = this.formvalue[k];
|
|
|
|
|
if(newdata == 'clear'){
|
|
|
|
|
newdata = {
|
|
|
|
|
pageNum: this.formvalue.pageNum, // 使用当前页码
|
|
|
|
|
pageSize: 8,
|
|
|
|
|
district: '',
|
|
|
|
|
monthlyPayStr:'',
|
|
|
|
|
ageStr: '',
|
|
|
|
|
jobRequestLabelIds: '',
|
|
|
|
|
aliasName: '',
|
|
|
|
|
isScroll: 0,
|
|
|
|
|
sortTag: 0
|
|
|
|
|
};
|
|
|
|
|
this.formvalue = [];
|
|
|
|
|
}else{
|
|
|
|
|
newdata = {
|
|
|
|
|
district: "",
|
|
|
|
|
monthlyPayStr: "",
|
|
|
|
|
ageStr: "",
|
|
|
|
|
jobRequestLabelIds: "",
|
|
|
|
|
aliasName: "",
|
|
|
|
|
pageNum: this.formvalue.pageNum, // 使用当前页码
|
|
|
|
|
pageSize: 8,
|
|
|
|
|
total: null, //分页配置
|
|
|
|
|
isScroll: newdata && newdata.isScroll == 1 ? 1 : 0,
|
|
|
|
|
sortTag: this.sortTag
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
if(this.formvalue && this.formvalue.length > 0){
|
|
|
|
|
for (var k in this.formvalue) {
|
|
|
|
|
if (Array.isArray(this.formvalue[k])) {
|
|
|
|
|
newdata[k] = this.formvalue[k].length > 0 ? this.formvalue[k].join() : "";
|
|
|
|
|
} else {
|
|
|
|
|
newdata[k] = this.formvalue[k];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (this.isLogin) {
|
|
|
|
|
const { data } = await JobListApi(newdata);
|
|
|
|
|
if (data.status === 200) {
|
|
|
|
|
@ -2275,6 +2297,19 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
handleToggle(e){
|
|
|
|
|
this.isToggle = !this.isToggle
|
|
|
|
|
},
|
|
|
|
|
clearFilter(){
|
|
|
|
|
this.filterObj = {
|
|
|
|
|
price: "", // 选中的价格搜索
|
|
|
|
|
gender: "", // 选中的性别搜索
|
|
|
|
|
specialactive: [], // 点中的特色标签索引
|
|
|
|
|
monthlyPayStr:'',
|
|
|
|
|
jobRequestLabelIds:'',
|
|
|
|
|
sex:'',
|
|
|
|
|
jobCategoryLabelIds:''
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.getJobList('clear');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
@ -3791,4 +3826,9 @@ p {
|
|
|
|
|
.top-obj:active {
|
|
|
|
|
background-color: #1890ffdd;
|
|
|
|
|
}
|
|
|
|
|
.clear-obj{
|
|
|
|
|
&:hover{
|
|
|
|
|
color: #1890ff;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|