diff --git a/web/public/js/components/server/metric-charts.js b/web/public/js/components/server/metric-charts.js index 62826bbd..b2ab6f69 100644 --- a/web/public/js/components/server/metric-charts.js +++ b/web/public/js/components/server/metric-charts.js @@ -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] + "
" + that.valueTypeName + ": " + value + "
占比:" + 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] + "
" + that.valueTypeName + ":" + value + "
占比:" + percent + "%" } }, yAxis: {