fix: 修复报告列表最后执行时间没走时区处理的问题;处理排序问题;

This commit is contained in:
chenjinsong
2022-06-22 16:52:27 +08:00
parent 661247343c
commit 9e239fd2d8
3 changed files with 8 additions and 5 deletions

View File

@@ -1,3 +1,4 @@
import { chartTableOrderOptionsMapping } from '@/utils/constants'
export default {
props: {
tableData: {
@@ -54,12 +55,13 @@ export default {
})
},
tableDataSort (item) {
console.info(item)
let orderBy = ''
if (item.order === 'ascending') {
orderBy = item.prop
orderBy = chartTableOrderOptionsMapping[item.prop] || item.prop
}
if (item.order === 'descending') {
orderBy = '-' + item.prop
orderBy = '-' + chartTableOrderOptionsMapping[item.prop] || item.prop
}
this.$emit('orderBy', orderBy)
}