From 8fff15ffde3f12651aef67ffbe591a24e377d99d Mon Sep 17 00:00:00 2001 From: lau572 <1010031226@qq.com> Date: Fri, 29 Dec 2023 17:24:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=85=E6=8A=A5=E6=9D=BF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/information/board/index.vue | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/ruoyi-ui/src/views/information/board/index.vue b/ruoyi-ui/src/views/information/board/index.vue index 666e1abb..da7725eb 100644 --- a/ruoyi-ui/src/views/information/board/index.vue +++ b/ruoyi-ui/src/views/information/board/index.vue @@ -30,7 +30,7 @@
- +
{{ itm.deviceName }}
@@ -933,20 +933,23 @@ export default { }; getBoardList(param).then((res) => { console.log(res, "查询情报板设备列表"); - if (res.length > 0) { - this.iotBoardList.forEach(item => { - item.list = [] - res.forEach(board =>{ - if (item.devicePixel == board.sceenSize){ + this.iotBoardList.forEach(item => { + item.list = [] + if (res.length > 0) { + res.forEach(board => { + if (item.devicePixel == board.sceenSize) { item.list.push(board) } }) - }) - this.iotBoardActive = this.iotBoardList[0].devicePixel; - this.handleChange(this.iotBoardList[0].devicePixel); - } else { - this.getInfoMode(); - } + + this.iotBoardActive = this.iotBoardList[0].devicePixel; + this.handleChange(this.iotBoardList[0].devicePixel); + } else { + this.getInfoMode(); + } + }) + + this.$forceUpdate(); }); },