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], }); }); });