From 3ce9dd959651d8516ab0d6fa39c06c9f4c06b960 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=9C=84?= Date: Fri, 22 Sep 2023 16:35:51 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E5=88=86=E9=A1=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/ConfigurableTableMixin.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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