From 3575ceddf642f6124c97abaf0a2c0192d14eda86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=91=A3=E5=93=B2=E5=A5=87?= <13840175730@139.com> Date: Tue, 17 Dec 2024 18:29:20 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=90=84=E7=A7=8D=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/RealTimeMonitor/index.vue | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/components/RealTimeMonitor/index.vue b/src/components/RealTimeMonitor/index.vue index 51f68dd..177eeef 100644 --- a/src/components/RealTimeMonitor/index.vue +++ b/src/components/RealTimeMonitor/index.vue @@ -471,8 +471,6 @@ export default { }, methods: { formatName(code){ - console.log(code) - console.log(this.personList) for (const item of this.personList) { if (item.userCode===code){ return item.userName @@ -482,7 +480,6 @@ export default { initPerson(){ getPerson().then(res=>{ this.personList=res.data - console.log(res.data) this.zxqZxDetail(); //7.作业区执行情况 }) }, @@ -505,7 +502,7 @@ export default { this.msgList = res.data; this.$nextTick(() => { const elementHeight = this.$refs.refHeight; - elementHeight.forEach((li, index) => { + !!elementHeight&&elementHeight.forEach((li, index) => { this.classOption.singleHeight = li.offsetHeight + 10; }); }); @@ -553,7 +550,7 @@ export default { ? "四五六跨" : "", zsl: res.data.zsl[index], - wcl: res.data.wcl[index], + wcl: res.data.kwc[index], }); }); });