From 8c885e4cfcda5cf6b796220c1f79a47459f10293 Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 15 Sep 2025 16:38:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E7=9B=91=E6=B5=8B=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=B5=8B=E7=82=B9=E5=B1=95=E7=A4=BAnickname=EF=BC=8C=E5=9D=90?= =?UTF-8?q?=E6=A0=87=E8=BD=B4=E4=BB=8E=E5=B0=8F=E5=88=B0=E5=A4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/monitor_detail.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/views/wpm_bx/monitor_detail.vue b/src/views/wpm_bx/monitor_detail.vue index 45189607..087f0b3d 100644 --- a/src/views/wpm_bx/monitor_detail.vue +++ b/src/views/wpm_bx/monitor_detail.vue @@ -9,7 +9,7 @@ >
- + { if(res.length>0){ that.mpointList = res; - that.activeName = res[0].name; + that.activeName = res[0].nickname; that.params.mpoint = res[0].id; that.apiObj = that.$API.enm.mplogx; that.handleClick(); @@ -116,7 +116,7 @@ export default { console.log('handleClick',val) let that = this; that.mpointList.forEach(item=>{ - if(item.name == that.activeName){ + if(item.nickname == that.activeName){ that.query.mpoint = item.id; that.query.page = 1; that.option.title.text = that.activeName; @@ -129,9 +129,9 @@ export default { params.page = 0; that.$API.enm.mplogx.req(params).then((res) => { res.forEach(item=>{ - that.option.xAxis.data.push(item.timex); + that.option.xAxis.data.unshift(item.timex); let value = Number(item.val_float).toFixed(3); - that.option.series.data.push(value); + that.option.series.data.unshift(value); }) }) }