From 38e29148a5cd033dd0c85869e9d49cbdf0ad53fe Mon Sep 17 00:00:00 2001 From: shijing Date: Mon, 18 Aug 2025 08:39:19 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E7=8E=BB=E7=BA=A4=E7=9B=91?= =?UTF-8?q?=E6=B5=8B=E6=95=B0=E6=8D=AE=E4=B8=8D=E6=9B=B4=E6=96=B0=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/monitor_detail.vue | 32 ++++++++++++----------------- 1 file changed, 13 insertions(+), 19 deletions(-) diff --git a/src/views/wpm_bx/monitor_detail.vue b/src/views/wpm_bx/monitor_detail.vue index 940e2a0d..153a41ef 100644 --- a/src/views/wpm_bx/monitor_detail.vue +++ b/src/views/wpm_bx/monitor_detail.vue @@ -95,39 +95,33 @@ export default { } }; }, - mounted() { - let that = this; - that.params.timex__gte = that.startTime; - that.params.timex__lte = that.endTime; - that.$API.enm.mpoint.list.req({ep_belong:that.equipmentId,page:0}).then((res) => { - if(res.length>0){ - that.mpointList = res; - that.activeName = res[0].name; - that.params.mpoint = res[0].id; - that.apiObj = that.$API.enm.mplogx; - that.handleClick(); - }else{ - that.$message.error("该设备没有监测点"); - } - }) - }, methods: { open() { let that = this; this.visible = true; that.$nextTick(() => { let height = document.getElementById("tableWap").clientHeight; - console.log('height',height) that.tableHeight = height - 345; }) + that.params.timex__gte = that.startTime; + that.params.timex__lte = that.endTime; + that.$API.enm.mpoint.list.req({ep_belong:that.equipmentId,page:0}).then((res) => { + if(res.length>0){ + that.mpointList = res; + that.activeName = res[0].name; + that.params.mpoint = res[0].id; + that.apiObj = that.$API.enm.mplogx; + that.handleClick(); + }else{ + that.$message.error("该设备没有监测点"); + } + }) }, handleClick(val){ console.log('handleClick',val) let that = this; that.mpointList.forEach(item=>{ if(item.name == that.activeName){ - console.log('item',item) - console.log('that.activeName',that.activeName) that.query.mpoint = item.id; that.query.page = 1; that.option.title.text = that.activeName;