fix(table): 明细表默认分页数适配旧版本创建的视图

This commit is contained in:
junjie 2022-01-25 16:47:45 +08:00
parent c3d789931a
commit 5800befa50

View File

@ -116,7 +116,7 @@ export default {
borderRadius: '0px',
currentPage: {
page: 1,
pageSize: 10,
pageSize: 20,
show: 0
}
}
@ -165,7 +165,7 @@ export default {
if (this.chart.data) {
this.fields = JSON.parse(JSON.stringify(this.chart.data.fields))
const attr = JSON.parse(this.chart.customAttr)
this.currentPage.pageSize = parseInt(attr.size.tablePageSize ? attr.size.tablePageSize : 10)
this.currentPage.pageSize = parseInt(attr.size.tablePageSize ? attr.size.tablePageSize : 20)
datas = JSON.parse(JSON.stringify(this.chart.data.tableRow))
if (this.chart.type === 'table-info') {
//
@ -341,7 +341,7 @@ export default {
resetPage() {
this.currentPage = {
page: 1,
pageSize: 10,
pageSize: 20,
show: 0
}
}