update 排序参数调整
This commit is contained in:
@@ -204,8 +204,9 @@ export const ConfigurableTableMixin = {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
tableOnChange (pagination, filters, sorter) {
|
tableOnChange (pagination, filters, sorter) {
|
||||||
|
console.log(sorter)
|
||||||
if (Object.keys(sorter).length > 0) {
|
if (Object.keys(sorter).length > 0) {
|
||||||
this.isorter.column = sorter.field
|
this.isorter.column = sorter.order ? sorter.field : 'createTime'
|
||||||
this.isorter.order = sorter.order === 'ascend' ? 'asc' : 'desc'
|
this.isorter.order = sorter.order === 'ascend' ? 'asc' : 'desc'
|
||||||
}
|
}
|
||||||
this.ipagination = pagination
|
this.ipagination = pagination
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ export const JeroListMixin = {
|
|||||||
handleTableChange (pagination, filters, sorter) {
|
handleTableChange (pagination, filters, sorter) {
|
||||||
// 分页、排序、筛选变化时触发
|
// 分页、排序、筛选变化时触发
|
||||||
if (Object.keys(sorter).length > 0) {
|
if (Object.keys(sorter).length > 0) {
|
||||||
this.isorter.column = sorter.field
|
this.isorter.column = sorter.order ? sorter.field : 'createTime'
|
||||||
this.isorter.order = sorter.order === 'ascend' ? 'asc' : 'desc'
|
this.isorter.order = sorter.order === 'ascend' ? 'asc' : 'desc'
|
||||||
}
|
}
|
||||||
this.ipagination = pagination
|
this.ipagination = pagination
|
||||||
|
|||||||
Reference in New Issue
Block a user