Commit e21b3a91 authored by miaojiale's avatar miaojiale

修改分页

parent 6a33d980
...@@ -4,7 +4,7 @@ const mixin = { ...@@ -4,7 +4,7 @@ const mixin = {
total: 0, total: 0,
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
pageSizes: [10, 20, 50, 100] pageSizes: [10, 20, 50, 100],
} }
}, },
methods: { methods: {
...@@ -16,9 +16,10 @@ const mixin = { ...@@ -16,9 +16,10 @@ const mixin = {
// 切换页面显示条数 // 切换页面显示条数
handleSizeChange(val) { handleSizeChange(val) {
this.pageIndex = 1
this.pageSize = val this.pageSize = val
this.handleSearch() this.handleSearch()
} },
} },
} }
export default mixin 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