From 50ca1daca41cfa66650961b832e33def7579b39f Mon Sep 17 00:00:00 2001 From: zhaohy <1695786511@qq.com> Date: Tue, 9 Jul 2024 15:56:18 +0800 Subject: [PATCH 1/2] =?UTF-8?q?add:=E5=AF=B9=E6=8E=A5=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=91=8A=E8=AD=A6=20=E5=AF=B9=E6=8E=A5=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E5=91=8A=E8=AD=A6=20=E8=AE=BE=E5=A4=87=E7=B1=BB=E5=9E=8B=20?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=90=8D=E7=A7=B0=20=E8=AE=BE=E5=A4=87?= =?UTF-8?q?=E7=82=B9=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/alarmSettings/deviceAlarms.ts | 5 + hx-ai-intelligent/src/api/deviceManage.ts | 1 + .../alarmSettings/components/energyAlarm.vue | 170 --------- .../energyAlarm/configureEnergyAlarms.vue | 287 ++++++++++++++ .../energyAlarm/editConfigureEnergyAlarm.vue | 421 +++++++++++++++++++++ .../alarmSettings/energyAlarm/editeEnergyAlarm.vue | 235 ++++++++++++ .../equipmentAlarm/configureDeviceAlarms.vue | 121 ++++-- .../equipmentAlarm/editConfigureDeviceAlarm.vue | 328 ++++++++++------ .../equipmentAlarm/editeEquipmentAlarm.vue | 77 ++-- .../view/alarmManagement/alarmSettings/index.vue | 133 +++++-- .../alarmSettings/notificationManagementMock.json | 14 + .../alarmSettings/ts/energyAlarmConfig.ts | 197 ++++++++++ .../alarmSettings/ts/equipmentAlarmConfig.ts | 74 ++-- .../ts/notificationManagementConfig.ts | 41 +- 14 files changed, 1670 insertions(+), 434 deletions(-) create mode 100644 hx-ai-intelligent/src/api/alarmSettings/deviceAlarms.ts delete mode 100644 hx-ai-intelligent/src/view/alarmManagement/alarmSettings/components/energyAlarm.vue create mode 100644 hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/configureEnergyAlarms.vue create mode 100644 hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editConfigureEnergyAlarm.vue create mode 100644 hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editeEnergyAlarm.vue create mode 100644 hx-ai-intelligent/src/view/alarmManagement/alarmSettings/ts/energyAlarmConfig.ts diff --git a/hx-ai-intelligent/src/api/alarmSettings/deviceAlarms.ts b/hx-ai-intelligent/src/api/alarmSettings/deviceAlarms.ts new file mode 100644 index 0000000..b659c51 --- /dev/null +++ b/hx-ai-intelligent/src/api/alarmSettings/deviceAlarms.ts @@ -0,0 +1,5 @@ +export enum deviceAlarms { + getTableList = '/carbon-smart/api/AlarmEquipment/selectAlarmEquipment', //设备告警分页 + addOrUpNewData = '/carbon-smart/api/AlarmEquipment/creatOrUpdate', //设备告警添加 修海 + del = '/carbon-smart/api/AlarmEquipment/delete', //设备告警删除 +} diff --git a/hx-ai-intelligent/src/api/deviceManage.ts b/hx-ai-intelligent/src/api/deviceManage.ts index ea91ef7..bac669b 100644 --- a/hx-ai-intelligent/src/api/deviceManage.ts +++ b/hx-ai-intelligent/src/api/deviceManage.ts @@ -3,6 +3,7 @@ export enum device { queryDeviceTree = `${BASE_URL}/deviceInfo/queryDeviceTree`, // 左侧树 queryDevicePage = `${BASE_URL}/deviceInfo/queryDevicePage`, // 列表 dropArea = `${BASE_URL}/deviceInfo/dropArea`, // 查询下拉区域 + queryDevicePoint = `${BASE_URL}/deviceInfo/queryDevicePoint`, // 获取设备点位 } export enum group { diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/components/energyAlarm.vue b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/components/energyAlarm.vue deleted file mode 100644 index 837dc0a..0000000 --- a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/components/energyAlarm.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/configureEnergyAlarms.vue b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/configureEnergyAlarms.vue new file mode 100644 index 0000000..a7521da --- /dev/null +++ b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/configureEnergyAlarms.vue @@ -0,0 +1,287 @@ + + + + diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editConfigureEnergyAlarm.vue b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editConfigureEnergyAlarm.vue new file mode 100644 index 0000000..f9732ff --- /dev/null +++ b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editConfigureEnergyAlarm.vue @@ -0,0 +1,421 @@ + + + diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editeEnergyAlarm.vue b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editeEnergyAlarm.vue new file mode 100644 index 0000000..d016c65 --- /dev/null +++ b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/energyAlarm/editeEnergyAlarm.vue @@ -0,0 +1,235 @@ + + + diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/configureDeviceAlarms.vue b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/configureDeviceAlarms.vue index 0d4f849..dad6abe 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/configureDeviceAlarms.vue +++ b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/configureDeviceAlarms.vue @@ -1,13 +1,36 @@ + diff --git a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editConfigureDeviceAlarm.vue b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editConfigureDeviceAlarm.vue index 34db26e..c069eef 100644 --- a/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editConfigureDeviceAlarm.vue +++ b/hx-ai-intelligent/src/view/alarmManagement/alarmSettings/equipmentAlarm/editConfigureDeviceAlarm.vue @@ -3,14 +3,15 @@ v-model:visible="visible" width="520" :title="infoObject?.id ? '编辑告警规则' : '新增告警规则'" + :footer-style="{ textAlign: 'right' }" :ok="btnClick" :cancel="handleClose" placement="right">
- + - - - + tree-node-filter-prop="label" /> - + - + - AC001电表 - AC002电表 + - + - + + 'blue-background': infoObject.enableRules === 1 ? true : false, + 'grey-background': infoObject.enableRules === 1 ? false : true, + }" + @click="clickSwitch" /> - + - + - - + + 且 (and) 或 (or) @@ -97,7 +105,7 @@ "> {{ `逻辑${index}:` }} @@ -105,7 +113,7 @@ + v-model:value="infoObject.alarmList[index - 1].num" />
@@ -114,7 +122,20 @@ src="https://files.axshare.com/gsc/4T0UQR/5a/e6/81/5ae6813d499c422383c7a15dd956523f/images/设备规则/u72.svg?pageId=cbce6e61-bc6a-4283-802d-993fce6151c0" />
+
+ 请选择正确的逻辑{{ index }} 或 输入正确的数值{{ index }} +
+
+ 逻辑至少2条 +
新增
@@ -124,26 +145,36 @@ - - diff --git a/hx-ai-intelligent/src/view/monitor/deviceMonitor/page.vue b/hx-ai-intelligent/src/view/monitor/deviceMonitor/page.vue new file mode 100644 index 0000000..d406f8c --- /dev/null +++ b/hx-ai-intelligent/src/view/monitor/deviceMonitor/page.vue @@ -0,0 +1,81 @@ + + + + + + diff --git a/hx-ai-intelligent/src/view/monitor/deviceMonitor/table/index.vue b/hx-ai-intelligent/src/view/monitor/deviceMonitor/table/index.vue index c775cc9..c205a2d 100644 --- a/hx-ai-intelligent/src/view/monitor/deviceMonitor/table/index.vue +++ b/hx-ai-intelligent/src/view/monitor/deviceMonitor/table/index.vue @@ -3,184 +3,177 @@ diff --git a/hx-ai-intelligent/src/view/monitor/deviceMonitor/tree/index.vue b/hx-ai-intelligent/src/view/monitor/deviceMonitor/tree/index.vue index d4badb6..105f7f5 100644 --- a/hx-ai-intelligent/src/view/monitor/deviceMonitor/tree/index.vue +++ b/hx-ai-intelligent/src/view/monitor/deviceMonitor/tree/index.vue @@ -8,7 +8,8 @@ v-model:value="value" style="width: 100%" :tree-line="treeLine && { showLeafIcon }" - :tree-data="treeData1"> + :tree-data="treeData1" + @change="">