update 翻译字段排序问题
This commit is contained in:
@@ -206,7 +206,13 @@ export const ConfigurableTableMixin = {
|
||||
},
|
||||
tableOnChange (pagination, filters, sorter) {
|
||||
this.orderBy = sorter.order === 'ascend' ? '1' : '2'
|
||||
this.orderByField = sorter.columnKey
|
||||
let sortFieldName
|
||||
if (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)
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user