fix:监测数据图表中数字保留三位小数
This commit is contained in:
parent
9040ed8f8e
commit
60f00d62de
|
@ -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);
|
||||
})
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue