CN-778 下钻table取值变更: npm、dns、link的throughput列取值改为totalBytes,单位改为byte
CN-776 NPM Dashboard维度表中分数添加颜色标识
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user