From 805b0bfcf76b8184671fc97e89fa5b40f8a378f2 Mon Sep 17 00:00:00 2001 From: lzh Date: Fri, 13 Mar 2026 11:13:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(@vben/web-antd):=20=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E5=AE=89=E4=BF=9D=E5=B7=A5=E5=8D=95=E6=89=A9=E5=B1=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=B1=BB=E5=9E=8B=E5=92=8C=E8=A7=A6=E5=8F=91=E6=9D=A5?= =?UTF-8?q?=E6=BA=90=E6=9E=9A=E4=B8=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 添加 SecurityExtInfo 接口支持安保工单扩展字段,扩展 TriggerSource 枚举 增加视频告警、门禁告警、巡更告警、紧急按钮等触发来源类型。 Co-Authored-By: Claude Opus 4.6 --- .../src/api/ops/order-center/index.ts | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/apps/web-antd/src/api/ops/order-center/index.ts b/apps/web-antd/src/api/ops/order-center/index.ts index 80343d848..ee0685e33 100644 --- a/apps/web-antd/src/api/ops/order-center/index.ts +++ b/apps/web-antd/src/api/ops/order-center/index.ts @@ -39,11 +39,15 @@ export namespace OpsOrderCenterApi { /** 触发来源枚举 */ export enum TriggerSource { + ACCESS_ALARM = 'ACCESS_ALARM', // 门禁告警 IOT_BEACON = 'IOT_BEACON', // 蓝牙信标 IOT_TRAFFIC = 'IOT_TRAFFIC', // 客流阈值(IoT设备) MANUAL = 'MANUAL', // 手动创建 + PANIC_BUTTON = 'PANIC_BUTTON', // 紧急按钮 + PATROL_ALARM = 'PATROL_ALARM', // 巡更告警 PEOPLE_FLOW = 'PEOPLE_FLOW', // 客流阈值(旧版) TRAFFIC = 'TRAFFIC', // 客流阈值 + VIDEO_ALARM = 'VIDEO_ALARM', // 视频告警 } /** 工单查询参数 */ @@ -68,6 +72,23 @@ export namespace OpsOrderCenterApi { isAuto?: number; // 是否自动创建 (1=自动, 0=手动) } + /** 安保工单扩展信息(对应 ops_order_security_ext 表) */ + export interface SecurityExtInfo { + alarmId?: string; // 关联告警ID + alarmType?: string; // 告警类型: intrusion/leave_post/fire/fence + cameraId?: string; // 摄像头ID + roiId?: string; // ROI区域ID + imageUrl?: string; // 告警截图URL + assignedUserId?: number; // 处理人user_id + assignedUserName?: string; // 处理人姓名 + assignedTeamId?: number; // 班组ID + result?: string; // 处理结果描述 + resultImgUrls?: string; // 处理结果图片URL,JSON数组 + dispatchedTime?: string; // 派单时间 + confirmedTime?: string; // 确认时间 + completedTime?: string; // 完成时间 + } + /** 工单列表项 */ export interface OrderItem { id: number; @@ -82,7 +103,7 @@ export namespace OpsOrderCenterApi { assigneeName?: null | string; // 执行人姓名(可能为空) createTime: number | string; // 创建时间(支持时间戳或字符串) sourceType?: TriggerSource; // 触发来源 - extInfo?: CleaningExtInfo; // 保洁扩展信息 + extInfo?: CleaningExtInfo | SecurityExtInfo; // 扩展信息(按 orderType 区分) } /** 工单详情 */