Commit e21b3a91 authored by miaojiale's avatar miaojiale

修改分页

parent 6a33d980
const mixin = {
data() {
return {
total: 0,
pageIndex: 1,
pageSize: 10,
pageSizes: [10, 20, 50, 100]
}
data() {
return {
total: 0,
pageIndex: 1,
pageSize: 10,
pageSizes: [10, 20, 50, 100],
}
},
methods: {
// 跳转页码
handleCurrentChange(val) {
this.pageIndex = val
this.handleSearch()
},
methods: {
// 跳转页码
handleCurrentChange(val) {
this.pageIndex = val
this.handleSearch()
},
// 切换页面显示条数
handleSizeChange(val) {
this.pageSize = val
this.handleSearch()
}
}
// 切换页面显示条数
handleSizeChange(val) {
this.pageIndex = 1
this.pageSize = val
this.handleSearch()
},
},
}
export default mixin
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment