Merge pull request #6744 from dataease/pr@dev@fix_table_page_size_change

fix: 明细表分页由小变大时不显示数据
This commit is contained in:
wisonic-s 2023-11-17 16:31:36 +08:00 committed by GitHub
commit c14e2e2ecf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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