From 311d90b93ed4eff93b9b141559271e126b304d34 Mon Sep 17 00:00:00 2001
From: Ironsp <1522278303@qq.com>
Date: Wed, 2 Sep 2026 16:19:54 +0800
Subject: [PATCH] =?UTF-8?q?feat=20=E5=BC=82=E5=B8=B8=E8=AD=A6=E5=91=8A?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components.d.ts | 2 +
src/components/home/warning.vue | 10 ++-
src/components/warning/filter.vue | 122 ++++++++++++++++++++++++++++++
src/components/warning/item.vue | 104 +++++++++++++++++++++++++
src/pages/warning/index.vue | 65 ++++++++++++++++
src/uni-pages.d.ts | 1 +
6 files changed, 303 insertions(+), 1 deletion(-)
create mode 100644 src/components/warning/filter.vue
create mode 100644 src/components/warning/item.vue
create mode 100644 src/pages/warning/index.vue
diff --git a/src/components.d.ts b/src/components.d.ts
index 54dccc9..0438a24 100644
--- a/src/components.d.ts
+++ b/src/components.d.ts
@@ -29,5 +29,7 @@ declare module 'vue' {
SettingsSensorConfig: typeof import('./components/settings/sensorConfig.vue')['default']
SettingsWifiNetwork: typeof import('./components/settings/wifiNetwork.vue')['default']
SettingsWifiSettings: typeof import('./components/settings/wifiSettings.vue')['default']
+ WarningFilter: typeof import('./components/warning/filter.vue')['default']
+ WarningItem: typeof import('./components/warning/item.vue')['default']
}
}
diff --git a/src/components/home/warning.vue b/src/components/home/warning.vue
index 5ec29ff..4a5db95 100644
--- a/src/components/home/warning.vue
+++ b/src/components/home/warning.vue
@@ -1,10 +1,18 @@
+
+
diff --git a/src/components/warning/filter.vue b/src/components/warning/filter.vue
new file mode 100644
index 0000000..3ba174f
--- /dev/null
+++ b/src/components/warning/filter.vue
@@ -0,0 +1,122 @@
+
+
+
+
+
+
+
+
+ {{ tab }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 共{{ totalCount }}条警告,其中
+ {{ unhandledCount }}条
+ 未处理
+
+
+ 未处理警告 ({{ unhandledCount }}条)
+
+
+
+
+
diff --git a/src/components/warning/item.vue b/src/components/warning/item.vue
new file mode 100644
index 0000000..bb2e5b5
--- /dev/null
+++ b/src/components/warning/item.vue
@@ -0,0 +1,104 @@
+
+
+
+
+
+
+
+
+
+ {{ tag }}
+
+
+
+
+
+ {{ time }}
+
+
+ {{ trigger }}
+
+
+
+
+
diff --git a/src/pages/warning/index.vue b/src/pages/warning/index.vue
new file mode 100644
index 0000000..d9687af
--- /dev/null
+++ b/src/pages/warning/index.vue
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/uni-pages.d.ts b/src/uni-pages.d.ts
index afeb87b..1320a73 100644
--- a/src/uni-pages.d.ts
+++ b/src/uni-pages.d.ts
@@ -9,6 +9,7 @@ type _LocationUrl =
"/pages/message/index" |
"/pages/report/index" |
"/pages/settings/index" |
+ "/pages/warning/index" |
"/pages/work/index";
interface NavigateToOptions {