diff --git a/src/mixins/ConfigurableTableMixin.js b/src/mixins/ConfigurableTableMixin.js index e47106a2..560f1c1f 100644 --- a/src/mixins/ConfigurableTableMixin.js +++ b/src/mixins/ConfigurableTableMixin.js @@ -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