优化指标统计图表数字展示

This commit is contained in:
GoEdgeLab
2022-03-17 16:01:47 +08:00
parent 2d1d186b8e
commit 8eef999781

View File

@@ -103,8 +103,11 @@ Vue.component("metric-chart", {
case "byte":
value = teaweb.formatBytes(value)
break
case "count":
value = teaweb.formatNumber(value)
break
}
return stat.keys[0] + ": " + value + "占比:" + percent + "%"
return stat.keys[0] + "<br/>" + that.valueTypeName + ": " + value + "<br/>占比:" + percent + "%"
}
},
series: [
@@ -312,8 +315,11 @@ Vue.component("metric-chart", {
case "byte":
value = teaweb.formatBytes(value)
break
case "count":
value = teaweb.formatNumber(value)
break
}
return stat.keys[0] + ": " + value + "占比:" + percent + "%"
return stat.keys[0] + "<br/>" + that.valueTypeName + "" + value + "<br/>占比:" + percent + "%"
}
},
yAxis: {