fix: 续费排序传参错误问题
This commit is contained in:
@@ -55,13 +55,20 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
tableDataSort (item) {
|
tableDataSort (item) {
|
||||||
console.info(item)
|
|
||||||
let orderBy = ''
|
let orderBy = ''
|
||||||
if (item.order === 'ascending') {
|
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') {
|
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)
|
this.$emit('orderBy', orderBy)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user