From 7469767a0ac3c6c7bad7b28b9986051888a6b247 Mon Sep 17 00:00:00 2001 From: wangsixiang <2970484253@qq.com> Date: Fri, 6 Jun 2025 16:36:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E8=B4=B9=E7=AB=99UPS=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9B=91=E6=B5=8B=E5=92=8C=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/common/menuData.js | 6 + .../components/WarningNotify.vue | 10 + .../smart/alarm/index.vue | 234 ++++++++++++++++++ ruoyi-ui/src/views/websocket.vue | 3 +- 4 files changed, 252 insertions(+), 1 deletion(-) create mode 100644 ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/alarm/index.vue diff --git a/ruoyi-ui/src/common/menuData.js b/ruoyi-ui/src/common/menuData.js index b6fd53d7..099a1f95 100644 --- a/ruoyi-ui/src/common/menuData.js +++ b/ruoyi-ui/src/common/menuData.js @@ -236,6 +236,12 @@ export default [ path: "/maintain/smart/smoke", component: "maintenanceOperations/smart/smoke/index.vue", }, + { + title: "收费站UPS状态监测", + name: "alarm", + path: "/maintain/smart/alarm", + component: "maintenanceOperations/smart/alarm/index.vue", + }, ], }, { diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/WarningNotify.vue b/ruoyi-ui/src/views/JiHeExpressway/components/WarningNotify.vue index 5f337301..2bad4b57 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/WarningNotify.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/WarningNotify.vue @@ -79,6 +79,16 @@ export default { title:'扫码报警', duration: 0 } + } + else if(checkPermi(["admin"]) && para.subEvent == "deviceAlarm"){ + obj = { + content: para.content.content, + time:para.content.time, + type: "deviceAlarm", + level: "danger", + title:'设备报警', + duration: 0 + } } else if(checkRole(["admin"]) && para.subEvent === "opticalFiberAlarm"){ obj = { content: para.content.message, diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/alarm/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/alarm/index.vue new file mode 100644 index 00000000..0421c9ec --- /dev/null +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/alarm/index.vue @@ -0,0 +1,234 @@ + + + + + + \ No newline at end of file diff --git a/ruoyi-ui/src/views/websocket.vue b/ruoyi-ui/src/views/websocket.vue index 32f58168..e820d133 100644 --- a/ruoyi-ui/src/views/websocket.vue +++ b/ruoyi-ui/src/views/websocket.vue @@ -38,7 +38,7 @@ export default { // url: "ws://10.7.179.15" + ":" + port + path, // url: "ws://10.168.64.171" + ":" + port + path, // url: 'ws://10.168.78.127'+ ':' + port + path, - // url: 'ws://127.0.0.1'+ ':' + 7789 + '/ws', + //url: 'ws://127.0.0.1'+ ':' + 7789 + '/ws', password: password, tokenSN: this.token, heartRate: interval, @@ -112,6 +112,7 @@ export default { case "3": case "externalPlatformOffline": case "opticalFiberAlarm": + case "deviceAlarm": case "trafficFlowDataEarlyWarning": this.$emit("newEvent", params); break;