CN-778 下钻table取值变更: npm、dns、link的throughput列取值改为totalBytes,单位改为byte

CN-776 NPM Dashboard维度表中分数添加颜色标识
This commit is contained in:
hyx
2022-11-01 10:33:23 +08:00
parent d568c748db
commit 5f448c0ccb
3 changed files with 24 additions and 7 deletions

View File

@@ -86,7 +86,15 @@
</div>
</template>
<template v-else-if="item.prop === 'score'" >
{{scope.row[item.prop] ? unitConvert(scope.row[item.prop], unitTypes.number).join(' ') : ''}}
<div v-if="scope.row.score <= 2" class="data-score-red" >
{{scope.row[item.prop] ? unitConvert(scope.row[item.prop], unitTypes.number).join(' ') : ''}}
</div>
<div v-else-if="scope.row.score <= 4" class="data-score-yellow" >
{{scope.row[item.prop] ? unitConvert(scope.row[item.prop], unitTypes.number).join(' ') : ''}}
</div>
<div v-else-if="scope.row.score <= 6" class="data-score-green" >
{{scope.row[item.prop] ? unitConvert(scope.row[item.prop], unitTypes.number).join(' ') : ''}}
</div>
</template>
<template v-else>
<template v-if="showUnit && item.unit">