fix: 明细表分页由小变大时不显示数据

This commit is contained in:
wisonic-s 2023-11-17 16:27:32 +08:00
parent e9c6d9741e
commit 6ec48192af

View File

@ -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)
},