Commit 9ce3678a authored by 陈明豪's avatar 陈明豪

bug修改67915

parent 3b7688ce
...@@ -529,7 +529,12 @@ export default { ...@@ -529,7 +529,12 @@ export default {
this.queryParams.orderByColumn = column.prop + 'Sort, createTime' this.queryParams.orderByColumn = column.prop + 'Sort, createTime'
} }
} else { } else {
this.queryParams.orderByColumn = column.prop if (column.order === 'descending') {
this.queryParams.orderByColumn = column.prop + ' desc, createTime'
} else {
this.queryParams.orderByColumn = column.prop + ', createTime'
}
// this.queryParams.orderByColumn = column.prop
} }
this.queryParams.isAsc = column.order// 动态取值排序顺序 this.queryParams.isAsc = column.order// 动态取值排序顺序
this.$refs.hospitalList.clearSort() this.$refs.hospitalList.clearSort()
......
...@@ -855,9 +855,17 @@ export default { ...@@ -855,9 +855,17 @@ export default {
ownerSortChange(column) { ownerSortChange(column) {
console.log('更换排序', column) console.log('更换排序', column)
if (column.prop === 'name') { if (column.prop === 'name') {
this.queryPetOwner.orderByColumn = column.prop + 'Sort'// 查询字段是表格中字段名字 if (column.order === 'descending') {
this.queryPetOwner.orderByColumn = column.prop + 'Sort desc, registrationDate'
} else {
this.queryPetOwner.orderByColumn = column.prop + 'Sort'
}
} else { } else {
this.queryPetOwner.orderByColumn = column.prop// 查询字段是表格中字段名字 if (column.order === 'descending') {
this.queryPetOwner.orderByColumn = column.prop + ' desc, registrationDate'
} else {
this.queryPetOwner.orderByColumn = column.prop + ', registrationDate'
}
} }
this.queryPetOwner.isAsc = column.order// 动态取值排序顺序 this.queryPetOwner.isAsc = column.order// 动态取值排序顺序
this.$refs.ownerList.clearSort() this.$refs.ownerList.clearSort()
......
...@@ -1009,11 +1009,17 @@ export default { ...@@ -1009,11 +1009,17 @@ export default {
column.prop === 'hospitalName' || column.prop === 'hospitalName' ||
column.prop === 'petNickname' || column.prop === 'petNickname' ||
column.prop === 'nickname') { column.prop === 'nickname') {
this.queryOrder.orderByColumn = column.prop + 'Sort ' + if (column.order === 'descending') {
this.queryOrder.isAsc.replaceAll('ending', '') + this.queryOrder.orderByColumn = column.prop + 'Sort desc, createTime'
',' + 'createTime' } else {
this.queryOrder.orderByColumn = column.prop + 'Sort'
}
} else { } else {
this.queryOrder.orderByColumn = column.prop// 查询字段是表格中字段名字 if (column.order === 'descending') {
this.queryOrder.orderByColumn = column.prop + ' desc, createTime'
} else {
this.queryOrder.orderByColumn = column.prop + ', createTime'
}
} }
this.$refs.orderTable.clearSort() this.$refs.orderTable.clearSort()
this.getOrderList() this.getOrderList()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment