From bb4c812c17bd891b559859277fdcd123cd07ef9a Mon Sep 17 00:00:00 2001 From: xjs <1294405880@qq.com> Date: Sat, 15 Jan 2022 11:51:37 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E9=A2=84=E8=AD=A6=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E6=B8=85=E7=A9=BA=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 | 9 ++++++++ ruoyi-ui/src/layout/components/Navbar.vue | 4 ++-- ruoyi-ui/src/utils/socket-server.js | 2 +- .../business/warning/apiwarning/index.vue | 21 ++++++++++++++++++- .../xjs/controller/ApiWarningController.java | 10 +++++++++ .../java/com/xjs/mapper/ApiWarningMapper.java | 7 +++++++ .../java/com/xjs/server/WebSocketServer.java | 2 +- .../com/xjs/service/ApiWarningService.java | 6 ++++++ .../service/impl/ApiWarningServiceImpl.java | 7 +++++++ ...iEnglishMapper.xml => ApiRecordMapper.xml} | 0 .../mapper/apiwarning/ApiWarningMapper.xml | 13 ++++++++++++ 11 files changed, 76 insertions(+), 5 deletions(-) rename xjs-business/xjs-business-warning/src/main/resources/mapper/apiwarning/{ApiEnglishMapper.xml => ApiRecordMapper.xml} (100%) create mode 100644 xjs-business/xjs-business-warning/src/main/resources/mapper/apiwarning/ApiWarningMapper.xml diff --git a/ruoyi-ui/src/api/business/warning/apiwarning.js b/ruoyi-ui/src/api/business/warning/apiwarning.js index ec53fdfe..d8ee9597 100644 --- a/ruoyi-ui/src/api/business/warning/apiwarning.js +++ b/ruoyi-ui/src/api/business/warning/apiwarning.js @@ -43,3 +43,12 @@ export function handleWarning(id) { method: 'put', }) } + + +// 清空预警记录信息 +export function clearAll() { + return request({ + url: '/warning/apiwarning/all', + method: 'delete', + }) +} diff --git a/ruoyi-ui/src/layout/components/Navbar.vue b/ruoyi-ui/src/layout/components/Navbar.vue index 52fbb9b3..de5ec376 100644 --- a/ruoyi-ui/src/layout/components/Navbar.vue +++ b/ruoyi-ui/src/layout/components/Navbar.vue @@ -10,7 +10,7 @@