From 40472a6fa4c2007e4b8c2974894fe335707d622a Mon Sep 17 00:00:00 2001
From: chenshuichuan <1154693969@qq.com>
Date: Fri, 13 Sep 2024 10:39:15 +0800
Subject: [PATCH] fix alert record
---
src/utils/dict.ts | 1 +
src/views/iot/alert/AlertForm.vue | 11 +++++++++--
.../iot/alert/components/AlertRecordForm.vue | 11 +++++++++--
src/views/iot/alert/index.vue | 4 ++--
.../device/components/DeviceAttributeList.vue | 15 +++++++--------
src/views/iot/device/index.vue | 17 ++++++++---------
6 files changed, 36 insertions(+), 23 deletions(-)
diff --git a/src/utils/dict.ts b/src/utils/dict.ts
index 136f477b..5e464d0a 100644
--- a/src/utils/dict.ts
+++ b/src/utils/dict.ts
@@ -274,4 +274,5 @@ export enum DICT_TYPE {
IOT_DEVICE_USE_TYPE = "iot_device_use_type",
IOT_ATTRIBUTE_IO_TYPE = "iot_attribute_io_type",
IOT_ALERT_TYPE = "iot_alert_type",
+ IOT_ALERT_LEVEL = "iot_alert_level",
}
diff --git a/src/views/iot/alert/AlertForm.vue b/src/views/iot/alert/AlertForm.vue
index e04f3560..d8d8b984 100644
--- a/src/views/iot/alert/AlertForm.vue
+++ b/src/views/iot/alert/AlertForm.vue
@@ -24,7 +24,14 @@
-
+
+
+
@@ -168,4 +175,4 @@ const resetForm = () => {
}
formRef.value?.resetFields()
}
-
\ No newline at end of file
+
diff --git a/src/views/iot/alert/components/AlertRecordForm.vue b/src/views/iot/alert/components/AlertRecordForm.vue
index 4ebcb72a..bce9bfb8 100644
--- a/src/views/iot/alert/components/AlertRecordForm.vue
+++ b/src/views/iot/alert/components/AlertRecordForm.vue
@@ -24,7 +24,14 @@
-
+
+
+
@@ -193,4 +200,4 @@ const resetForm = () => {
}
formRef.value?.resetFields()
}
-
\ No newline at end of file
+
diff --git a/src/views/iot/alert/index.vue b/src/views/iot/alert/index.vue
index 2ec44baa..4f06ce10 100644
--- a/src/views/iot/alert/index.vue
+++ b/src/views/iot/alert/index.vue
@@ -71,8 +71,8 @@
highlight-current-row
@current-change="handleCurrentChange"
>
-
-
+
+
diff --git a/src/views/iot/device/components/DeviceAttributeList.vue b/src/views/iot/device/components/DeviceAttributeList.vue
index 8b1e23ea..874a2b4b 100644
--- a/src/views/iot/device/components/DeviceAttributeList.vue
+++ b/src/views/iot/device/components/DeviceAttributeList.vue
@@ -10,8 +10,8 @@
新增
-
-
+
+
@@ -34,19 +34,18 @@
-
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
@@ -123,19 +123,18 @@
width="180px"
/>
-
-
-
-
-
+
+
+
+
+