fix:修改 查询机柜的参数

This commit is contained in:
zhangyu
2021-05-27 14:09:02 +08:00
parent 7e0083d0df
commit 4fca3c43db
7 changed files with 27 additions and 8 deletions

View File

@@ -38,7 +38,7 @@
<span v-if="item.prop==='varType'">{{scope.row[item.prop]===1?'Asset':'endpoint'}}</span>
<span v-else-if="item.prop==='type'">
<i :class="typeIcon(scope.row)"/>
{{chartTypeList.find(title=>title.value === scope.row[item.prop]).label}}
{{findTypeLabel(scope.row)}}
</span>
<span v-else-if="scope.row[item.prop]">{{scope.row[item.prop] || '-'}}</span>
<template v-else>-</template>
@@ -144,6 +144,10 @@ export default {
break
}
return str
},
findTypeLabel (row) {
const typeItem = this.chartTypeList.find(title => title.value === row.type)
return typeItem ? typeItem.label : '-'
}
}
}