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() { 报警数据 + {/* 算法设置 */} +