From a82ccbd14590c9cf1e22f99f1a4f7d4b8dee44e9 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Thu, 9 Apr 2026 10:00:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E:=20=E5=91=8A=E8=AD=A6?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=94=AF=E6=8C=81=E9=9D=9E=E6=9C=BA=E5=8A=A8?= =?UTF-8?q?=E8=BD=A6=E8=BF=9D=E5=81=9C=E7=B1=BB=E5=9E=8B=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=92=8C=E7=AD=9B=E9=80=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/views/aiot/alarm/list/data.ts | 1 + apps/web-antd/src/views/aiot/alarm/list/index.vue | 7 +++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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 aed864917..fbbdaaa16 100644 --- a/apps/web-antd/src/views/aiot/alarm/list/data.ts +++ b/apps/web-antd/src/views/aiot/alarm/list/data.ts @@ -9,6 +9,7 @@ export const ALERT_TYPE_OPTIONS = [ { label: '周界入侵', value: 'intrusion' }, { label: '车辆违停', value: 'illegal_parking' }, { label: '车辆拥堵', value: 'vehicle_congestion' }, + { label: '非机动车违停', value: 'non_motor_vehicle_parking' }, ]; /** 告警状态选项 */ diff --git a/apps/web-antd/src/views/aiot/alarm/list/index.vue b/apps/web-antd/src/views/aiot/alarm/list/index.vue index 1eae1e30c..f37949ed1 100644 --- a/apps/web-antd/src/views/aiot/alarm/list/index.vue +++ b/apps/web-antd/src/views/aiot/alarm/list/index.vue @@ -66,6 +66,9 @@ function getAlertTypeColor(type?: string) { fire_detection: 'volcano', smoke_detection: 'magenta', fall_detection: 'cyan', + illegal_parking: 'blue', + vehicle_congestion: 'geekblue', + non_motor_vehicle_parking: 'green', }; return type ? colorMap[type] || 'default' : 'default'; } @@ -301,14 +304,14 @@ const [Grid, gridApi] = useVbenVxeGrid({ type: 'link', icon: ACTION_ICON.EDIT, onClick: openHandleModal.bind(null, row), - ifShow: row.status === 'pending', + ifShow: row.status === 'pending' || row.status === 'processing', }, { label: '误报', type: 'link', danger: true, onClick: handleFalseAlarm.bind(null, row), - ifShow: row.status === 'pending', + ifShow: row.status === 'pending' || row.status === 'processing', }, ]" />