forked from github/dataease
fix: 明细表分页由小变大时不显示数据
This commit is contained in:
parent
e9c6d9741e
commit
6ec48192af
@ -775,7 +775,13 @@ export default {
|
||||
viewInCache(param) {
|
||||
this.view = param.view
|
||||
if (this.view && this.view.customAttr) {
|
||||
this.currentPage.pageSize = parseInt(JSON.parse(this.view.customAttr).size.tablePageSize)
|
||||
const curPageSize = this.currentPage.pageSize
|
||||
const newPageSize = parseInt(JSON.parse(this.view.customAttr).size.tablePageSize)
|
||||
// 分页小转大重置为第一页
|
||||
if (curPageSize < newPageSize) {
|
||||
this.currentPage.page = 1
|
||||
}
|
||||
this.currentPage.pageSize = newPageSize
|
||||
}
|
||||
param.viewId && param.viewId === this.element.propValue.viewId && this.getDataEdit(param)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user