1 、分页
<!-- 分页开始 -->
<div class="pagination-wrap" v-if="Newlist">
<el-pagination
background
layout="prev, pager, next"
:page-size="pageQuery.size"
:total="pageQuery.total"
@current-change="handleCurrentChange"
>
</el-pagination>
</div>
<!-- 分页结束 -->
data() {
return {
pageQuery: {
page: 1,
size: 10,
total: 1,
},
Newlist: null,
}}
methods: {
handleCurrentChange(val) {
this.pageQuery.page = val;
this.getdata();
// console.log(val, "val");
},
}
data() {
return {
pageQuery: {
page: 1,
size: 10,
total: 1,
},
Newlist: null,
}}
2、加载中蒙层
methods: {
asy