NEZ-793 fix: Agent页面,查询问题

This commit is contained in:
@changcode
2021-06-30 17:11:46 +08:00
parent bd3eda24da
commit ca20f76c1b
6 changed files with 24 additions and 17 deletions

View File

@@ -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)
}