Commit bb9225ff authored by 王琮's avatar 王琮

统计排序修改传参

parent 1b582529
...@@ -1003,16 +1003,18 @@ export default { ...@@ -1003,16 +1003,18 @@ export default {
}, },
handleSortChangeForPlatform(column) { handleSortChangeForPlatform(column) {
console.log('更换排序', column) console.log('更换排序', column)
this.queryOrder.isAsc = column.order// 动态取值排序顺序
if (column.prop === 'checkItemsName' || if (column.prop === 'checkItemsName' ||
column.prop === 'deviceName' || column.prop === 'deviceName' ||
column.prop === 'hospitalName' || column.prop === 'hospitalName' ||
column.prop === 'petNickname' || column.prop === 'petNickname' ||
column.prop === 'nickname') { column.prop === 'nickname') {
this.queryOrder.orderByColumn = column.prop + 'Sort' // 查询字段是表格中字段名字 this.queryOrder.orderByColumn = column.prop + 'Sort ' +
this.queryOrder.isAsc.replaceAll('ending', '') +
',' + 'createTime'
} else { } else {
this.queryOrder.orderByColumn = column.prop// 查询字段是表格中字段名字 this.queryOrder.orderByColumn = column.prop// 查询字段是表格中字段名字
} }
this.queryOrder.isAsc = column.order// 动态取值排序顺序
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