fix:监测数据图表中数字保留三位小数

This commit is contained in:
shijing 2025-09-04 11:08:24 +08:00
parent 9040ed8f8e
commit 60f00d62de
1 changed files with 2 additions and 6 deletions

View File

@ -74,11 +74,6 @@ export default {
bottom: "3%",
containLabel: true,
},
// toolbox: {
// feature: {
// saveAsImage: {},
// },
// },
xAxis: {
type: "category",
boundaryGap: false,
@ -135,7 +130,8 @@ export default {
that.$API.enm.mplogx.req(params).then((res) => {
res.forEach(item=>{
that.option.xAxis.data.push(item.timex);
that.option.series.data.push(item.val_float);
let value = Number(item.val_float).toFixed(3);
that.option.series.data.push(value);
})
})
}