<ul>
<li v-for="item in admission.slice((this.currentPage-1)*this.pageSize,this.currentPage*this.pageSize)">
<router-link :to="{path:'/home/subhome/zszc/'+item.id}"><span class="lingxing"></span>{{item.article_name}}<span class="time">{{item.article_createtime}}</span></router-link>
</li>
</ul>
<el-pagination
background
layout="prev, pager, next"
:total="admission.length"
@current-change="handleCurrentChange"
:current-page="currentPage"
:page-size="pageSize">
>
</el-pagination>
data(){
return {
currentPage:1,
pageSize:20
}
methods:{
handleCurrentChange(val){
this.currentPage = val;
}
}