forked from github/dataease
fix(图表): 修复明细表分页模式切换可能无法显示的问题
This commit is contained in:
parent
7f04568fb8
commit
78a176e4fc
@ -734,7 +734,7 @@ onMounted(() => {
|
|||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item
|
<el-form-item
|
||||||
v-if="showProperty('tablePageMode')"
|
v-if="showProperty('tablePageMode') && state.basicStyleForm.tablePageMode !== 'pull'"
|
||||||
:label="t('chart.table_pager_style')"
|
:label="t('chart.table_pager_style')"
|
||||||
class="form-item"
|
class="form-item"
|
||||||
:class="'form-item-' + themes"
|
:class="'form-item-' + themes"
|
||||||
|
@ -181,7 +181,7 @@ const setupPage = (chart: ChartObj, resetPageInfo?: boolean) => {
|
|||||||
}
|
}
|
||||||
const pageInfo = state.pageInfo
|
const pageInfo = state.pageInfo
|
||||||
pageInfo.pageSize = customAttr.basicStyle.tablePageSize ?? 20
|
pageInfo.pageSize = customAttr.basicStyle.tablePageSize ?? 20
|
||||||
if (state.totalItems > state.pageInfo.pageSize) {
|
if (state.totalItems > state.pageInfo.pageSize || state.pageStyle !== 'general') {
|
||||||
pageInfo.total = state.totalItems
|
pageInfo.total = state.totalItems
|
||||||
state.showPage = true
|
state.showPage = true
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user