From 42ac220239b2e12c078cd6b05654fa51c0880ec1 Mon Sep 17 00:00:00 2001 From: cles <208023732@qq.com> Date: Thu, 27 Nov 2025 15:42:48 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E4=B8=AD=E5=80=BC?= =?UTF-8?q?=E6=BB=A4=E6=B3=A2=E7=AE=97=E6=B3=95=E8=AE=BE=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F=E5=92=8C=E6=BB=9A=E5=8A=A8?= =?UTF-8?q?=E6=9D=A1=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SystemSettings/SystemSettings.jsx | 29 +++++++++++++++++-- .../SystemSettings/SystemSettings.module.css | 18 ++++++++++-- 2 files changed, 43 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/components/SystemSettings/SystemSettings.jsx b/src/renderer/src/components/SystemSettings/SystemSettings.jsx index 08f8870..48289e2 100644 --- a/src/renderer/src/components/SystemSettings/SystemSettings.jsx +++ b/src/renderer/src/components/SystemSettings/SystemSettings.jsx @@ -1,5 +1,5 @@ import styles from './SystemSettings.module.css' -import { Flex, InputNumber, Select, Button, Input, Checkbox, message } from 'antd' +import { Flex, InputNumber, Select, Button, Input, Checkbox, message, Switch } from 'antd' import { SettingFilled, InfoCircleFilled, @@ -22,9 +22,12 @@ function SystemSettings() { const [clearZeroLoading, setClearZeroLoading] = useState(false) const [storagePath, setStoragePath] = useState('') - // 新增:实时数据记录状态 + // 实时数据记录状态 const [realtimeDataEnabled, setRealtimeDataEnabled] = useState(false) const [alarmDataEnabled, setAlarmDataEnabled] = useState(false) + // 算法设置状态 + const [medianFilterEnabled, setMedianFilterEnabled] = useState(false) // 默认关闭 + const [medianFilterParam, setMedianFilterParam] = useState('') // 默认空字符串 // 获取设备连接状态和重连配置 const connectedDevice = useDeviceStore((state) => state.connectedDevice) @@ -866,6 +869,28 @@ function SystemSettings() { 报警数据 + {/* 算法设置 */} +