<div class="block" >
<el-pagination background layout="prev, pager, next" :total="item.total" :current-page="item.page" :page-size="10" @current-change="(val) => changePage(val,'qdleader')">
</el-pagination>
</div>
changePage(page,name) {
console.log(page,name)
this.newArr[index].page = page
let newArr = this.newArr[index].goodids.concat([]);
let oIndex = page - 1;
this.newArr[index].newList = newArr.splice(oIndex*10,oIndex*10+10)
console.log("this.newList",this.newList)
console.log("this.newList",this.newArr[index].goodids)
this.newArr[index].total = this.newArr[index].goodids.length
},