CN-906 fix: 知识库列表排序字段名更正
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user