From 497efcc48de4cd471676d303f245527fd82053c4 Mon Sep 17 00:00:00 2001 From: hui <770260999@qq.com> Date: Mon, 4 Mar 2024 11:53:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/assets/jihe/images/offline.svg | 1 + ruoyi-ui/src/assets/jihe/images/online.svg | 1 + .../pages/Home/components/InfoBoard/index.vue | 4 +- .../pages/service/board/index.vue | 53 +++++++++++-------- 4 files changed, 36 insertions(+), 23 deletions(-) create mode 100644 ruoyi-ui/src/assets/jihe/images/offline.svg create mode 100644 ruoyi-ui/src/assets/jihe/images/online.svg diff --git a/ruoyi-ui/src/assets/jihe/images/offline.svg b/ruoyi-ui/src/assets/jihe/images/offline.svg new file mode 100644 index 00000000..ab89f89f --- /dev/null +++ b/ruoyi-ui/src/assets/jihe/images/offline.svg @@ -0,0 +1 @@ + diff --git a/ruoyi-ui/src/assets/jihe/images/online.svg b/ruoyi-ui/src/assets/jihe/images/online.svg new file mode 100644 index 00000000..ecc5d4e4 --- /dev/null +++ b/ruoyi-ui/src/assets/jihe/images/online.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/InfoBoard/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/InfoBoard/index.vue index d7563596..460059f3 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/InfoBoard/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/InfoBoard/index.vue @@ -354,8 +354,8 @@ export default { } else { //改下判断条件 iotDeviceId为null时不要请求后台 加个提示 设备未接入 const iotDeviceId = this.selectedDevice.iotDeviceId; - if (!(iotDeviceId === null || iotDeviceId === undefined)) - getBoardDeviceInfo() + if (iotDeviceId != null && iotDeviceId != undefined) + getBoardDeviceInfo(iotDeviceId) .then((res) => { this.selectedBdMsg = res.data["3A"].content; }) diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue index e28fc90e..3b04b637 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/service/board/index.vue @@ -56,7 +56,9 @@ :label="itm.iotDeviceId" :key="index" > -