refactor(aiot): 简化离岗检测参数显示,只展示核心配置项

用户只需配置:
- 离岗倒计时(秒):人员离开后多久触发告警(默认300秒)
- 工作时间段:监控时间配置

移除前端显示的技术细节参数:
- confirm_on_duty_sec(固定10秒)
- confirm_leave_sec(固定30秒)

优点:
- 界面简洁清晰,只显示用户关心的参数
- 避免用户困惑,降低配置难度
- 保留其他算法的参数映射不受影响

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-13 17:01:49 +08:00
parent 0a3658dc57
commit e90ffec8c8

View File

@@ -43,10 +43,9 @@ const newListItem = ref('');
// 参数名中英文映射
const paramNameMap: Record<string, string> = {
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<string, string> = {
// 参数说明映射
const paramDescMap: Record<string, string> = {
confirm_leave_sec: '人员离开后,持续多少秒确认为"离岗状态"(避免短暂离开误判)',
leave_countdown_sec: '确认离岗后,倒计时多少秒才触发告警(您要找的参数!)',
confirm_on_duty_sec: '人员出现后,持续多少秒才确认在岗(避免短暂出现误判)',
leave_countdown_sec: '人员离开后,倒计时多少秒才触发离岗告警',
working_hours: '仅在指定时间段内进行监控留空表示24小时监控',
// 其他算法参数说明
cooldown_seconds: '触发告警后,多少秒内不再重复告警(用于周界入侵等算法)',
confirm_seconds: '检测到目标后,持续多少秒才触发告警(避免瞬间误报)',
working_hours: '仅在指定时间段内进行监控留空表示24小时监控',
};
// 获取参数的中文名称