NEZ-793 fix: Agent页面,查询问题
This commit is contained in:
@@ -68,11 +68,15 @@ export default {
|
||||
},
|
||||
tableDataSort (item) {
|
||||
let orderBy = ''
|
||||
let str = item.prop
|
||||
if (str === 'dc') {
|
||||
str = 'datacenter'
|
||||
}
|
||||
if (item.order === 'ascending') {
|
||||
orderBy = item.prop
|
||||
orderBy = str
|
||||
}
|
||||
if (item.order === 'descending') {
|
||||
orderBy = '-' + item.prop
|
||||
orderBy = '-' + str
|
||||
}
|
||||
this.$emit('orderBy', orderBy)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user