From 5c5acf69422fd3028aa0399e23eeef8b8a0bcefd Mon Sep 17 00:00:00 2001 From: zhaohy <1695786511@qq.com> Date: Tue, 23 Jul 2024 08:35:51 +0800 Subject: [PATCH] =?UTF-8?q?add:=E8=AE=BE=E5=A4=87=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B5=81=E7=A8=8B=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/alarmManagement/equipmentAlarm.ts | 1 + .../alarmSettings/notificationManagementMock.json | 108 --------------------- .../ts/notificationManagementConfig.ts | 3 - .../view/alarmManagement/equipmentAlarm/index.vue | 8 +- .../view/alarmManagement/equipmentAlarm/look.vue | 3 + .../view/alarmManagement/equipmentAlarm/status.vue | 102 +++++++++---------- .../alarmManagement/equipmentAlarm/ts/config.ts | 12 +-- .../view/alarmManagement/gatewayAlarm/status.vue | 42 ++++---- 8 files changed, 89 insertions(+), 190 deletions(-) delete mode 100644 hx-ai-intelligent/src/view/alarmManagement/alarmSettings/notificationManagementMock.json diff --git a/hx-ai-intelligent/src/api/alarmManagement/equipmentAlarm.ts b/hx-ai-intelligent/src/api/alarmManagement/equipmentAlarm.ts index 3be9a50..ef657b4 100644 --- a/hx-ai-intelligent/src/api/alarmManagement/equipmentAlarm.ts +++ b/hx-ai-intelligent/src/api/alarmManagement/equipmentAlarm.ts @@ -2,4 +2,5 @@ export enum equipmentAlarmApi { getTableList = '/carbon-smart/api/AlarmEquipmentLog/selectAlarmEquipmentLog', //设备告警 列表 getCodeList = '/carbon-smart/api/AlarmEquipmentLog/selectErrorCodeList', //设备告警 列表 getSelectAlarmEquipmentLogStatusProcess = '/carbon-smart/api/AlarmEquipmentLogStatusProcess/selectAlarmEquipmentLogStatusProcess', //设备告警 状态 没有创建工单log接口 + noCreatOrUpdateLog = '/carbon-smart/api/AlarmEquipmentLogStatusProcess/creatOrUpdate', //设备告警 状态 没有创建工单 添加 修改状态log } diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/notificationManagementMock.json b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/notificationManagementMock.json deleted file mode 100644 index 6f442ed..0000000 --- a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/notificationManagementMock.json +++ /dev/null @@ -1,108 +0,0 @@ -{ - "listData":[ - { - "id": "d4", - "isDel": "0", - "officesId": "84", - "deviceCode": "37430200143", - "deviceName": "地听测试电表", - "category": "1", - "type": "1001", - "energyCount": "1", - "serialNumber": "69", - "pidCode": null, - "brand": "", - "types": "", - "manufacturer": "elit non in", - "contacts": "ad reprehenderit", - "phonenumber": "34", - "position": "in esse commodo1", - "activeState": "1", - "measurementDirection": "1", - "deviceMagnification": 62, - "deviceAccuracy": "89", - "frequency": "anim consequat irure", - "standardFrequency": "ut elit", - "deviceHead": "pariatur ex velit", - "constructor": "84566", - "voltageType": "cillum aliquip reprehenderit", - "pt": 61, - "ct": 64, - "communicationProtocol": "cupidatat nisi ea ad", - "ip": "", - "port": "", - "com": "", - "slaveAddress": "", - "dlt": "", - "conversionIdentifier": "48", - "multiplicationAdjustment": "1", - "accessMethod": "1", - "replacementFrequency": "0", - "dataDetail": "sit", - "insertTime": null, - "children": null, - "devicePointList": null, - "insertUser": null, - "priority": "1", - "alarmTitle": "电压异常告警", - "errorCode": "A001", - "monitorTime":"1", - "repetitions":"1", - "monitorTimeUnit": "分", - "enableRules": "1", - "isUse":true - } , { - "id": "d5", - "isDel": "0", - "officesId": "84", - "deviceCode": "37430200143", - "deviceName": "地听测试电表", - "category": "1", - "type": "1001", - "energyCount": "1", - "serialNumber": "69", - "pidCode": null, - "brand": "", - "types": "", - "manufacturer": "elit non in", - "contacts": "ad reprehenderit", - "phonenumber": "34", - "position": "in esse commodo2", - "activeState": "1", - "measurementDirection": "1", - "deviceMagnification": 62, - "deviceAccuracy": "89", - "frequency": "anim consequat irure", - "standardFrequency": "ut elit", - "deviceHead": "pariatur ex velit", - "constructor": "84566", - "voltageType": "cillum aliquip reprehenderit", - "pt": 61, - "ct": 64, - "communicationProtocol": "cupidatat nisi ea ad", - "ip": "", - "port": "", - "com": "", - "slaveAddress": "", - "dlt": "", - "conversionIdentifier": "48", - "multiplicationAdjustment": "1", - "accessMethod": "1", - "replacementFrequency": "0", - "dataDetail": "sit", - "insertTime": null, - "children": null, - "devicePointList": null, - "insertUser": null, - "priority": "1", - "alarmTitle": "电压异常告警", - "errorCode": "A001", - "monitorTime":"1", - "repetitions":"1", - "monitorTimeUnit": "分", - "enableRules": "0", - "isUse":true - } - ] - -} \ No newline at end of file diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/notificationManagementConfig.ts b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/notificationManagementConfig.ts index b67ab03..4060707 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/notificationManagementConfig.ts +++ b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/notificationManagementConfig.ts @@ -1,7 +1,4 @@ -import { dateUtil } from '/nerv-lib/util/date-util'; -import { http } from '/nerv-lib/util'; import { notificationManagementApi } from '/@/api/alarmManagement/alarmSettings/notificationManagements'; -import { ref } from 'vue'; const tableKeyMap = [ { diff --git a/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/index.vue b/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/index.vue index 04d354b..9784626 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/index.vue +++ b/hx-ai-intelligent/src/view/alarmManagement/equipmentAlarm/index.vue @@ -16,7 +16,7 @@ - +