Commit 783612fb authored by suntao's avatar suntao

分页查询

parent fa8cd988
......@@ -29,7 +29,7 @@ export default {
},
limit: {
type: Number,
default: 20
default: 10
},
pageSizes: {
type: Array,
......@@ -55,32 +55,36 @@ export default {
}
},
computed: {
currentPage: {
pageSize: {
get() {
return this.page
return this.limit
},
set(val) {
this.$emit('update:page', val)
}
// set(val) {
// console.log("update:limit=="+val)
// this.$emit('update:limit', val)
// }
},
pageSize: {
currentPage: {
get() {
return this.limit
return this.page
},
set(val) {
this.$emit('update:limit', val)
}
}
// set(val) {
// console.log("update:page=="+val)
// this.$emit('update:page', val)
// }
},
},
methods: {
handleSizeChange(val) {
this.$emit('pagination', { page: this.currentPage, limit: val })
this.$emit('update:limit', val)
this.$emit('pagination')
if (this.autoScroll) {
scrollTo(0, 800)
}
},
handleCurrentChange(val) {
this.$emit('pagination', { page: val, limit: this.pageSize })
this.$emit('update:page', val)
this.$emit('pagination')
if (this.autoScroll) {
scrollTo(0, 800)
}
......
......@@ -278,6 +278,7 @@
},
count: 1,
page: 1,
psize:10,
roles: undefined,
isEdit: true,
checkedItemsResultVO: { point : [], value:[]},
......
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