Unverified 提交 f29d1d08 authored 作者: Junjie's avatar Junjie 提交者: GitHub

Merge pull request #1690 from dataease/pr@v1.7@fix_table_page

fix(table): 明细表默认分页数适配旧版本创建的视图
......@@ -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
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论