From 02b4990a6f162513550020c51f310beea07d0596 Mon Sep 17 00:00:00 2001
From: xjs <1294405880@qq.com>
Date: Sat, 15 Jan 2022 00:45:00 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=89=8D=E7=AB=AF=E9=A2=84=E8=AD=A6?=
=?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=86=85=E5=AE=B9=E4=BB=A5=E5=8F=8A=E5=8D=95?=
=?UTF-8?q?=E4=B8=AA=E9=A2=84=E8=AD=A6=E5=A4=84=E7=90=86=E5=AE=9E=E7=8E=B0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../src/api/business/warning/apiwarning.js | 8 +++
ruoyi-ui/src/layout/components/Navbar.vue | 55 ++++++++++++++++++-
.../business/warning/apiwarning/index.vue | 2 +-
.../xjs/controller/ApiWarningController.java | 20 ++++++-
.../java/com/xjs/server/WebSocketServer.java | 5 +-
5 files changed, 85 insertions(+), 5 deletions(-)
diff --git a/ruoyi-ui/src/api/business/warning/apiwarning.js b/ruoyi-ui/src/api/business/warning/apiwarning.js
index 063e87ea..ec53fdfe 100644
--- a/ruoyi-ui/src/api/business/warning/apiwarning.js
+++ b/ruoyi-ui/src/api/business/warning/apiwarning.js
@@ -35,3 +35,11 @@ export function listApiwarning(query) {
params: query
})
}
+
+// 处理单个预警
+export function handleWarning(id) {
+ return request({
+ url: '/warning/apiwarning/handle/'+id,
+ method: 'put',
+ })
+}
diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue
index fe3b4651..c67b0abf 100644
--- a/ruoyi-ui/src/layout/components/Navbar.vue
+++ b/ruoyi-ui/src/layout/components/Navbar.vue
@@ -8,10 +8,26 @@