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 }}
diff --git a/ruoyi-ui/src/views/board/equipment/index.vue b/ruoyi-ui/src/views/board/equipment/index.vue
index fd21598..ae955a6 100644
--- a/ruoyi-ui/src/views/board/equipment/index.vue
+++ b/ruoyi-ui/src/views/board/equipment/index.vue
@@ -21,10 +21,10 @@
名称:
{{ MonitorInfo.monitorUnitName }}
-
- ID:
- {{ MonitorInfo.monitorUnitId }}
-
+
+
+
+
状态:
{{ MonitorInfo.monitorUnitStatus === '1' ? '正常' : '异常' }}
@@ -33,6 +33,10 @@
类型:
{{ MonitorInfo.monitorUnitTypeName }}
+
+ {{ i.attributeName }}:
+ {{ i.attributeValue }}
+
@@ -138,8 +138,8 @@ export default {
total: 0,
deviceDataColumns: [],
tableDataRow: [],
- dialogVisible:false,
- dialogData:null
+ dialogVisible: false,
+ dialogData: null
}
},
async mounted() {
@@ -206,8 +206,6 @@ export default {
this.deviceList = data
},
toHistory(e, i) {
- console.log(e)
- console.log(i)
this.dialogData = {id: e, deviceModeId: i}
this.dialogVisible = true
@@ -318,15 +316,18 @@ export default {
}
}
}
-.longText{
+
+.longText {
width: 6.5vw;
overflow: hidden;
}
+
/deep/ .el-dialog:not(.is-fullscreen) {
margin-top: 1vh !important;
}
-.dialog{
- .container{
+
+.dialog {
+ .container {
height: 86vh;
}
}
diff --git a/ruoyi-ui/src/views/board/index/index.vue b/ruoyi-ui/src/views/board/index/index.vue
index 56f0a52..ffb7a3f 100644
--- a/ruoyi-ui/src/views/board/index/index.vue
+++ b/ruoyi-ui/src/views/board/index/index.vue
@@ -249,13 +249,17 @@
告警类型
- {{ warInfo.alarmTypeName }}
+ {{ warInfo.alarmInfoType === '1' ? '设备报警' : '' }}
+ {{ warInfo.alarmInfoType === '2' ? '监控单元报警' : '' }}
+ {{ warInfo.alarmInfoType === '3' ? '离线报警' : '' }}
+ {{ warInfo.alarmInfoType === '4' ? '电子围栏' : '' }}
+
告警位置
- {{ warInfo.location }}
+ {{ warInfo.monitorUnitName }}
diff --git a/ruoyi-ui/src/views/business/alarmRule/index.vue b/ruoyi-ui/src/views/business/alarmRule/index.vue
index b80cb2f..8f73bd4 100644
--- a/ruoyi-ui/src/views/business/alarmRule/index.vue
+++ b/ruoyi-ui/src/views/business/alarmRule/index.vue
@@ -200,17 +200,6 @@
-
-
-
-
-
-
@@ -222,7 +211,17 @@
:disabled="scene.selectedDisable && scene.selectedDisable == 1"
>
+
+
+
+
+
@@ -744,7 +743,7 @@ export default {
getAlarmRule(alarmRuleId).then(response => {
console.log(response.data.ruleDeviceId)
this.form = response.data;
- this.editedDisabled = response.data.alarmInfoFlag === "1";
+ // this.editedDisabled = response.data.alarmInfoFlag === "1";
this.getEditedSelectListBySceneId(this.form.sceneId);
this.getDeviceModeByDeviceId(response.data.ruleDeviceId);
this.triggerDataBVisibleJudge(this.form.triggerCondition);
diff --git a/ruoyi-ui/src/views/business/monitorUnit/index.vue b/ruoyi-ui/src/views/business/monitorUnit/index.vue
index 288c81b..9f10c75 100644
--- a/ruoyi-ui/src/views/business/monitorUnit/index.vue
+++ b/ruoyi-ui/src/views/business/monitorUnit/index.vue
@@ -77,6 +77,14 @@
+ 绑定属性
+
-
+
-
+
取 消
+
+
+
+
+
+
+ 新增
+
+
+
+
+
+
+
+
+ 修改
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+