From 4cd07c3fef600d50fa8441df42dfaf2e9b7266af Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Mon, 16 Mar 2026 16:54:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=9A=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E8=BD=A6=E8=BE=86=E8=BF=9D=E5=81=9C=E5=92=8C?= =?UTF-8?q?=E8=BD=A6=E8=BE=86=E6=8B=A5=E5=A0=B5=E7=AE=97=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - data.ts: ALERT_TYPE_OPTIONS新增车辆违停/拥堵选项 - AlgorithmParamEditor.vue: 新增违停和拥堵参数中英文名称及说明映射 - RoiAlgorithmBind.vue: 新增车辆算法帧率映射(1帧/秒) Co-Authored-By: Claude Opus 4.6 --- apps/web-antd/src/views/aiot/alarm/list/data.ts | 2 ++ .../roi/components/AlgorithmParamEditor.vue | 16 ++++++++++++++++ .../device/roi/components/RoiAlgorithmBind.vue | 2 ++ 3 files changed, 20 insertions(+) diff --git a/apps/web-antd/src/views/aiot/alarm/list/data.ts b/apps/web-antd/src/views/aiot/alarm/list/data.ts index d47f479df..894b72112 100644 --- a/apps/web-antd/src/views/aiot/alarm/list/data.ts +++ b/apps/web-antd/src/views/aiot/alarm/list/data.ts @@ -7,6 +7,8 @@ import { getRangePickerDefaultProps } from '#/utils'; export const ALERT_TYPE_OPTIONS = [ { label: '离岗检测', value: 'leave_post' }, { label: '周界入侵', value: 'intrusion' }, + { label: '车辆违停', value: 'illegal_parking' }, + { label: '车辆拥堵', value: 'vehicle_congestion' }, ]; /** 告警状态选项 */ 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 9dd0b4b66..8b98ab578 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 @@ -55,6 +55,14 @@ const paramNameMap: Record = { detection_interval: '检测间隔(秒)', enable_tracking: '启用跟踪', tracking_timeout: '跟踪超时(秒)', + // 车辆违停参数 + confirm_vehicle_sec: '车辆确认时间(秒)', + parking_countdown_sec: '违停倒计时(秒)', + confirm_clear_sec: '消失确认时间(秒)', + cooldown_sec: '告警冷却期(秒)', + // 车辆拥堵参数 + count_threshold: '车辆数量阈值', + confirm_congestion_sec: '拥堵确认时间(秒)', }; // 参数说明映射 @@ -66,6 +74,14 @@ const paramDescMap: Record = { confirm_seconds: '持续检测到人达到该时间后触发告警,持续无人达到该时间后自动结束告警(向后兼容参数)', confirm_intrusion_seconds: '入侵确认:持续检测到人达到该时间后触发告警', confirm_clear_seconds: '消失确认:持续无人达到该时间后自动结束告警。期间短暂有人(<5秒)不影响倒计时', + // 车辆违停参数说明 + confirm_vehicle_sec: '确认车辆停留的时间,超过该时间开始违停倒计时', + parking_countdown_sec: '确认有车后的违停等待时间,超过该时间触发违停告警', + confirm_clear_sec: '车辆离开后,持续无车达到该时间后自动结束告警', + cooldown_sec: '触发告警后,多少秒内不再重复告警', + // 车辆拥堵参数说明 + count_threshold: '区域内车辆数量达到该值时判定为拥堵', + confirm_congestion_sec: '车辆数持续超过阈值达到该时间后触发拥堵告警', }; // 获取参数的中文名称 diff --git a/apps/web-antd/src/views/aiot/device/roi/components/RoiAlgorithmBind.vue b/apps/web-antd/src/views/aiot/device/roi/components/RoiAlgorithmBind.vue index af13384d2..f2d382322 100644 --- a/apps/web-antd/src/views/aiot/device/roi/components/RoiAlgorithmBind.vue +++ b/apps/web-antd/src/views/aiot/device/roi/components/RoiAlgorithmBind.vue @@ -136,6 +136,8 @@ function getAlgoFrameRate(algoCode: string): string { const frameRates: Record = { leave_post: '3帧/秒', intrusion: '1帧/秒', + illegal_parking: '1帧/秒', + vehicle_congestion: '1帧/秒', }; return frameRates[algoCode] || '5帧/秒'; }