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 }}