|
@@ -47,6 +47,10 @@ export default {
|
|
|
type: Boolean,
|
|
|
default: true
|
|
|
},
|
|
|
+ showQuickJumper: {
|
|
|
+ type: Boolean,
|
|
|
+ default: true
|
|
|
+ },
|
|
|
size: {
|
|
|
type: String,
|
|
|
default: 'default'
|
|
@@ -116,6 +120,11 @@ export default {
|
|
|
pageSize: val
|
|
|
})
|
|
|
},
|
|
|
+ showQuickJumper(val){
|
|
|
+ Object.assign(this.localPagination, {
|
|
|
+ showQuickJumper: val
|
|
|
+ })
|
|
|
+ },
|
|
|
showSizeChanger (val) {
|
|
|
Object.assign(this.localPagination, {
|
|
|
showSizeChanger: val
|
|
@@ -129,7 +138,8 @@ export default {
|
|
|
current: localPageNum,
|
|
|
pageSize: this.pageSize,
|
|
|
showTotal: total => `共 ${total} 条记录`,
|
|
|
- showSizeChanger: this.showSizeChanger
|
|
|
+ showSizeChanger: this.showSizeChanger,
|
|
|
+ showQuickJumper: this.showQuickJumper
|
|
|
}) || false
|
|
|
// console.log('this.localPagination', this.localPagination)
|
|
|
this.needTotalList = this.initTotalList(this.columns)
|
|
@@ -209,6 +219,7 @@ export default {
|
|
|
current: r.pageNo, // 返回结果中的当前分页数
|
|
|
total: Number(r.count), // 返回结果中的总记录数
|
|
|
showSizeChanger: this.showSizeChanger,
|
|
|
+ showQuickJumper: this.showQuickJumper,
|
|
|
pageSize: (pagination && pagination.pageSize) ||
|
|
|
this.localPagination.pageSize
|
|
|
}) || false
|