From e90ffec8c8c5d974861c4db59c01b43530f97b14 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Fri, 13 Feb 2026 17:01:49 +0800 Subject: [PATCH] =?UTF-8?q?refactor(aiot):=20=E7=AE=80=E5=8C=96=E7=A6=BB?= =?UTF-8?q?=E5=B2=97=E6=A3=80=E6=B5=8B=E5=8F=82=E6=95=B0=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=EF=BC=8C=E5=8F=AA=E5=B1=95=E7=A4=BA=E6=A0=B8=E5=BF=83=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 用户只需配置: - 离岗倒计时(秒):人员离开后多久触发告警(默认300秒) - 工作时间段:监控时间配置 移除前端显示的技术细节参数: - confirm_on_duty_sec(固定10秒) - confirm_leave_sec(固定30秒) 优点: - 界面简洁清晰,只显示用户关心的参数 - 避免用户困惑,降低配置难度 - 保留其他算法的参数映射不受影响 Co-Authored-By: Claude Opus 4.6 --- .../device/roi/components/AlgorithmParamEditor.vue | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/apps/web-antd/src/views/aiot/device/roi/components/AlgorithmParamEditor.vue b/apps/web-antd/src/views/aiot/device/roi/components/AlgorithmParamEditor.vue index 3d5d801e8..eeea6e9a7 100644 --- a/apps/web-antd/src/views/aiot/device/roi/components/AlgorithmParamEditor.vue +++ b/apps/web-antd/src/views/aiot/device/roi/components/AlgorithmParamEditor.vue @@ -43,10 +43,9 @@ const newListItem = ref(''); // 参数名中英文映射 const paramNameMap: Record = { - working_hours: '工作时间段', - confirm_on_duty_sec: '在岗确认时间(秒)', - confirm_leave_sec: '离岗确认时间(秒)', leave_countdown_sec: '离岗倒计时(秒)', + working_hours: '工作时间段', + // 其他算法参数 cooldown_seconds: '告警冷却期(秒)', confirm_seconds: '触发确认时间(秒)', min_confidence: '最小置信度', @@ -58,12 +57,11 @@ const paramNameMap: Record = { // 参数说明映射 const paramDescMap: Record = { - confirm_leave_sec: '人员离开后,持续多少秒确认为"离岗状态"(避免短暂离开误判)', - leave_countdown_sec: '确认离岗后,倒计时多少秒才触发告警(您要找的参数!)', - confirm_on_duty_sec: '人员出现后,持续多少秒才确认在岗(避免短暂出现误判)', + leave_countdown_sec: '人员离开后,倒计时多少秒才触发离岗告警', + working_hours: '仅在指定时间段内进行监控,留空表示24小时监控', + // 其他算法参数说明 cooldown_seconds: '触发告警后,多少秒内不再重复告警(用于周界入侵等算法)', confirm_seconds: '检测到目标后,持续多少秒才触发告警(避免瞬间误报)', - working_hours: '仅在指定时间段内进行监控,留空表示24小时监控', }; // 获取参数的中文名称