新增: 告警列表支持非机动车违停类型显示和筛选
This commit is contained in:
@@ -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' },
|
||||
];
|
||||
|
||||
/** 告警状态选项 */
|
||||
|
||||
@@ -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',
|
||||
},
|
||||
]"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user