<el-button v-if="!showMore && !suggestResult" style="cursor: pointer;margin:30px auto
0;" @click="loadMore()" >点击加载更多...</el-button>
<div class="noData" v-if="showMore " >没有数据了~</div>
在data
showMore:false,//等于false可以点击 true 不可以点击
//获取数据总数
this.total = res.data.total;//总数
this.totalPage = res.data.totalPage;//总页数
if(params.pageIndex * params.pageSize < this.total){ //当页面下标*一页显示多少条 小于 总数量
this.showMore = false;//加载更多
}else{
this.showMore = true;//暂无数据
}