update 翻译字段排序问题

This commit is contained in:
赵霄
2023-09-20 09:16:19 +08:00
parent 91ebefb762
commit a8ff3fca6c
+7 -1
View File
@@ -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)
},