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 e927a8efc..c59c0ec5f 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 @@ -44,11 +44,11 @@ const newListItem = ref(''); // 参数名中英文映射 const paramNameMap: Record = { working_hours: '工作时间段', - confirm_on_duty_sec: '确认在岗时间(秒)', - confirm_leave_sec: '确认离岗时间(秒)', - cooldown_sec: '冷却时间(秒)', - cooldown_seconds: '冷却时间(秒)', - confirm_seconds: '确认时间(秒)', + confirm_on_duty_sec: '在岗确认时间(秒)', + confirm_leave_sec: '离岗倒计时(秒)', + cooldown_sec: '告警冷却期(秒)', + cooldown_seconds: '告警冷却期(秒)', + confirm_seconds: '触发确认时间(秒)', min_confidence: '最小置信度', max_targets: '最大目标数', detection_interval: '检测间隔(秒)', @@ -56,11 +56,26 @@ const paramNameMap: Record = { tracking_timeout: '跟踪超时(秒)', }; +// 参数说明映射 +const paramDescMap: Record = { + confirm_leave_sec: '人员离开后,持续多少秒才触发离岗告警(避免短暂离开误报)', + cooldown_sec: '触发告警后,多少秒内不再重复告警(避免频繁告警)', + confirm_on_duty_sec: '人员出现后,持续多少秒才确认在岗(避免短暂出现误判)', + cooldown_seconds: '触发告警后,多少秒内不再重复告警(避免频繁告警)', + confirm_seconds: '检测到目标后,持续多少秒才触发告警(避免瞬间误报)', + working_hours: '仅在指定时间段内进行监控,留空表示24小时监控', +}; + // 获取参数的中文名称 function getParamLabel(key: string): string { return paramNameMap[key] || key; } +// 获取参数说明 +function getParamDesc(key: string): string | undefined { + return paramDescMap[key]; +} + const parsedSchema = computed(() => { try { return JSON.parse(props.paramSchema); @@ -240,19 +255,25 @@ function validateParams(params: Record): { :label="getParamLabel(String(key))" > - + - +
@@ -325,4 +346,11 @@ function validateParams(params: Record): { .help-text { flex: 1; } + +.param-desc { + margin-top: 4px; + font-size: 12px; + color: #8c8c8c; + line-height: 1.5; +}