update 分页调整
This commit is contained in:
@@ -19,7 +19,7 @@ export const ConfigurableTableMixin = {
|
|||||||
/* 分页参数 */
|
/* 分页参数 */
|
||||||
ipagination: {
|
ipagination: {
|
||||||
current: 1,
|
current: 1,
|
||||||
pageSize: 50,
|
pageSize: 10,
|
||||||
pageSizeOptions: ['10', '50', '100', '150', '200'],
|
pageSizeOptions: ['10', '50', '100', '150', '200'],
|
||||||
showTotal: (total, range) => {
|
showTotal: (total, range) => {
|
||||||
return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip')
|
return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip')
|
||||||
@@ -207,14 +207,14 @@ export const ConfigurableTableMixin = {
|
|||||||
tableOnChange (pagination, filters, sorter) {
|
tableOnChange (pagination, filters, sorter) {
|
||||||
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
|
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
|
||||||
let sortFieldName
|
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'))
|
sortFieldName = sorter.columnKey.substring(0, sorter.columnKey.indexOf('_dictText'))
|
||||||
} else {
|
} else {
|
||||||
sortFieldName = sorter.columnKey
|
sortFieldName = sorter.columnKey
|
||||||
}
|
}
|
||||||
this.orderByField = sortFieldName
|
this.orderByField = sortFieldName
|
||||||
this.ipagination = pagination
|
this.ipagination = pagination
|
||||||
this.loadData(1)
|
this.loadData()
|
||||||
},
|
},
|
||||||
onSelectChange (selectedRowKeys, selectionRows) {
|
onSelectChange (selectedRowKeys, selectionRows) {
|
||||||
this.selectedRowKeys = selectedRowKeys
|
this.selectedRowKeys = selectedRowKeys
|
||||||
|
|||||||
Reference in New Issue
Block a user