mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-10 01:10:29 +08:00
优化指标统计图表数字展示
This commit is contained in:
@@ -103,8 +103,11 @@ Vue.component("metric-chart", {
|
|||||||
case "byte":
|
case "byte":
|
||||||
value = teaweb.formatBytes(value)
|
value = teaweb.formatBytes(value)
|
||||||
break
|
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: [
|
series: [
|
||||||
@@ -312,8 +315,11 @@ Vue.component("metric-chart", {
|
|||||||
case "byte":
|
case "byte":
|
||||||
value = teaweb.formatBytes(value)
|
value = teaweb.formatBytes(value)
|
||||||
break
|
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: {
|
yAxis: {
|
||||||
|
|||||||
Reference in New Issue
Block a user