diff --git a/src/views/wpm_bx/monitor_detail.vue b/src/views/wpm_bx/monitor_detail.vue index 153a41ef..45189607 100644 --- a/src/views/wpm_bx/monitor_detail.vue +++ b/src/views/wpm_bx/monitor_detail.vue @@ -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); }) }) }