update 分页调整

This commit is contained in:
赵霄
2023-09-22 16:35:51 +08:00
parent c717ce9b2e
commit 3ce9dd9596
+3 -3
View File
@@ -19,7 +19,7 @@ export const ConfigurableTableMixin = {
/* 分页参数 */
ipagination: {
current: 1,
pageSize: 50,
pageSize: 10,
pageSizeOptions: ['10', '50', '100', '150', '200'],
showTotal: (total, range) => {
return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip')
@@ -207,14 +207,14 @@ export const ConfigurableTableMixin = {
tableOnChange (pagination, filters, sorter) {
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
let sortFieldName
if (sorter.columnKey.indexOf('_dictText') !== -1) {
if (sorter.columnKey && sorter.columnKey.indexOf('_dictText') !== -1) {
sortFieldName = sorter.columnKey.substring(0, sorter.columnKey.indexOf('_dictText'))
} else {
sortFieldName = sorter.columnKey
}
this.orderByField = sortFieldName
this.ipagination = pagination
this.loadData(1)
this.loadData()
},
onSelectChange (selectedRowKeys, selectionRows) {
this.selectedRowKeys = selectedRowKeys