fix: 续费排序传参错误问题

This commit is contained in:
@changcode
2022-06-24 09:25:15 +08:00
parent 9c183c7586
commit 16315a4276

View File

@@ -55,13 +55,20 @@ export default {
})
},
tableDataSort (item) {
console.info(item)
let orderBy = ''
if (item.order === 'ascending') {
orderBy = chartTableOrderOptionsMapping[item.prop] || item.prop
if (item.prop === 'lastTime') {
orderBy = chartTableOrderOptionsMapping[item.prop]
} else {
orderBy = item.prop
}
}
if (item.order === 'descending') {
orderBy = '-' + chartTableOrderOptionsMapping[item.prop] || item.prop
if (item.prop === 'lastTime') {
orderBy = '-' + chartTableOrderOptionsMapping[item.prop]
} else {
orderBy = '-' + item.prop
}
}
this.$emit('orderBy', orderBy)
}