修改排序
This commit is contained in:
@@ -74,6 +74,7 @@
|
||||
searchParmes: {},
|
||||
loading: false,
|
||||
orderBy:'1',
|
||||
orderByField:'',
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
@@ -123,6 +124,7 @@
|
||||
},
|
||||
tableOnChange(pagination, filters, sorter) {
|
||||
this.orderBy = sorter.order == 'ascend' ? '1' : '2'
|
||||
this.orderByField = sorter.columnKey
|
||||
this.getTableList()
|
||||
},
|
||||
getTableList() {
|
||||
@@ -131,6 +133,7 @@
|
||||
let params = {
|
||||
...this.searchParmes,
|
||||
orderBy:this.orderBy,
|
||||
orderByField:this.orderByField,
|
||||
pageNo: pageNo + '',
|
||||
pageSize: pageSize + ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user