From 135f53f331268467f62c72e612871d4d46d0cc32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9C=E7=AC=99=E6=AD=8C?= <2277317060@qq.com> Date: Fri, 6 Sep 2024 15:25:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=9C=B0=E5=9B=BE=E6=A0=87?= =?UTF-8?q?=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/api/board/equipment.js | 8 + ruoyi-ui/src/api/business/monitorUnit.js | 35 ++++ ruoyi-ui/src/views/board/GPS/index.vue | 7 +- ruoyi-ui/src/views/board/equipment/index.vue | 21 ++- .../views/board/equipmentMonitoring/index.vue | 17 +- ruoyi-ui/src/views/board/index/index.vue | 8 +- .../src/views/business/alarmRule/index.vue | 23 ++- .../src/views/business/monitorUnit/index.vue | 166 +++++++++++++++++- ruoyi-ui/vue.config.js | 6 +- 9 files changed, 255 insertions(+), 36 deletions(-) diff --git a/ruoyi-ui/src/api/board/equipment.js b/ruoyi-ui/src/api/board/equipment.js index 4d4f989..60c8493 100644 --- a/ruoyi-ui/src/api/board/equipment.js +++ b/ruoyi-ui/src/api/board/equipment.js @@ -53,6 +53,14 @@ export function selectComparison(data) { params:data }) } +// 传感器属性 +export function selectAttributeByUnitId(query) { + return request({ + url: '/business/hwMonitorUnitAttribute/selectAttributeByUnitId', + method: 'get', + params: query + }) +} // 历史记录 diff --git a/ruoyi-ui/src/api/business/monitorUnit.js b/ruoyi-ui/src/api/business/monitorUnit.js index 6829e9a..2637208 100644 --- a/ruoyi-ui/src/api/business/monitorUnit.js +++ b/ruoyi-ui/src/api/business/monitorUnit.js @@ -80,3 +80,38 @@ export function getEditedMonitorUnits(query) { }) } + + +// 新增属性 +export function addUnitAttribute(data) { + return request({ + url: '/business/hwMonitorUnitAttribute/addUnitAttribute', + method: 'post', + data: data + }) +} +// 查询属性 +export function selectAttributeByUnitId(query) { + return request({ + url: '/business/hwMonitorUnitAttribute/selectAttributeByUnitId', + method: 'get', + params: query + }) +} + +// 更新属性 +export function updateAttributeByUniitId(data) { + return request({ + url: '/business/hwMonitorUnitAttribute/updateAttributeByUniitId', + method: 'post', + data: data + }) +} +// 删除属性 +export function deleteAttributeByUniitId(query) { + return request({ + url: '/business/hwMonitorUnitAttribute/deleteAttributeByUniitId/'+query, + method: 'delete', + // params: query + }) +} diff --git a/ruoyi-ui/src/views/board/GPS/index.vue b/ruoyi-ui/src/views/board/GPS/index.vue index 25d1d0b..f8fb1cb 100644 --- a/ruoyi-ui/src/views/board/GPS/index.vue +++ b/ruoyi-ui/src/views/board/GPS/index.vue @@ -250,13 +250,16 @@ - {{ warInfo.alarmTypeName }} + {{ warInfo.alarmInfoType === '1' ? '设备报警' : '' }} + {{ warInfo.alarmInfoType === '2' ? '监控单元报警' : '' }} + {{ warInfo.alarmInfoType === '3' ? '离线报警' : '' }} + {{ warInfo.alarmInfoType === '4' ? '电子围栏' : '' }} - {{ warInfo.location }} + {{ warInfo.monitorUnitName }}