|
@@ -1,6 +1,6 @@
|
|
<template>
|
|
<template>
|
|
<div id="jobfair">
|
|
<div id="jobfair">
|
|
- <list-layout :needSearch="false" title="校园招聘会">
|
|
|
|
|
|
+ <list-layout searchPlaceHolder="请输入招聘会标题" @search="search" @searchBar="searchBar" :hasMore="hasMore" :searchName="`title`">
|
|
<template v-slot:content>
|
|
<template v-slot:content>
|
|
<span v-if="list.length > 0">
|
|
<span v-if="list.length > 0">
|
|
<el-row class="jobfair_list" v-for="(item, index) in list" :key="index" @click.native="link(item.id)">
|
|
<el-row class="jobfair_list" v-for="(item, index) in list" :key="index" @click.native="link(item.id)">
|
|
@@ -111,7 +111,7 @@ export default {
|
|
this.$set(this, `hasMore`, this.list.length < this.totalRow); //此处是根据数据库总数的结果和当前列表的总条数比较,看看是否可以继续请求数据
|
|
this.$set(this, `hasMore`, this.list.length < this.totalRow); //此处是根据数据库总数的结果和当前列表的总条数比较,看看是否可以继续请求数据
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- searchBar(type, value) {
|
|
|
|
|
|
+ searchBar({ type, value }) {
|
|
this.$set(this, `searchInfo`, value);
|
|
this.$set(this, `searchInfo`, value);
|
|
if (type === 'search') {
|
|
if (type === 'search') {
|
|
this.hasMore = true;
|
|
this.hasMore = true;
|