CN-906 fix: 知识库列表排序字段名更正

This commit is contained in:
chenjinsong
2023-03-06 14:19:29 +08:00
parent e2f9eb7f59
commit ac28e52ca7
4 changed files with 28 additions and 6 deletions

View File

@@ -55,13 +55,14 @@ export default {
})
},
tableDataSort (item) {
let orderBy = ''
/*let orderBy = ''
if (item.order === 'ascending') {
if (item.prop === 'lastTime') {
orderBy = chartTableOrderOptionsMapping[item.prop]
} else {
orderBy = item.prop
}
orderBy = chartTableOrderOptionsMapping[item.prop] || item.prop
}
if (item.order === 'descending') {
if (item.prop === 'lastTime') {
@@ -69,7 +70,8 @@ export default {
} else {
orderBy = '-' + item.prop
}
}
}*/
const orderBy = (item.order === 'descending' ? '-' : '') + (chartTableOrderOptionsMapping[item.prop] || item.prop)
this.$emit('orderBy', orderBy)
}
}