|
|
@@ -69,6 +69,9 @@ export default {
|
|
|
this.onPagination()
|
|
|
}
|
|
|
}
|
|
|
+ },
|
|
|
+ needPagination () {
|
|
|
+ return !this.schema.singlePage
|
|
|
}
|
|
|
},
|
|
|
watch: {
|
|
|
@@ -214,17 +217,16 @@ export default {
|
|
|
if (this.needPagination && pageNum >= 1) {
|
|
|
return this.mergeCondition({ pageNum })
|
|
|
}
|
|
|
- return this.mergeCondition()
|
|
|
+ this.mergeCondition()
|
|
|
},
|
|
|
decrease (count) {
|
|
|
if (this.needPagination) {
|
|
|
const options = this.options
|
|
|
if (options.list.length <= count) {
|
|
|
- this.pageTo(options.params.pageNum - 1)
|
|
|
- } else {
|
|
|
- this.pageTo()
|
|
|
+ return this.pageTo(options.params.pageNum - 1)
|
|
|
}
|
|
|
}
|
|
|
+ this.pageTo()
|
|
|
}
|
|
|
}
|
|
|
}
|