From 6dca2a68c04ca3e2f31d5bfb8494d4cfff20e487 Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Sun, 22 Mar 2026 01:08:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=9A=E6=91=84=E5=83=8F?= =?UTF-8?q?=E5=A4=B4=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=BE=B9=E7=BC=98=E8=AE=BE=E5=A4=87=E7=BB=91=E5=AE=9A=E9=80=89?= =?UTF-8?q?=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 表格新增「边缘设备」列 - 编辑弹窗新增边缘设备下拉选择(edge/edge_002) - 新建摄像头默认绑定 edge --- apps/web-antd/src/api/aiot/device/index.ts | 1 + .../src/views/aiot/device/camera/index.vue | 14 ++++++++++++++ 2 files changed, 15 insertions(+) diff --git a/apps/web-antd/src/api/aiot/device/index.ts b/apps/web-antd/src/api/aiot/device/index.ts index a083e4734..2a4cab599 100644 --- a/apps/web-antd/src/api/aiot/device/index.ts +++ b/apps/web-antd/src/api/aiot/device/index.ts @@ -31,6 +31,7 @@ export namespace AiotDeviceApi { stream?: string; cameraCode?: string; // 摄像头唯一编码 cameraName?: string; // 摄像头名称(用户自定义) + edgeDeviceId?: string; // 绑定的边缘设备ID srcUrl?: string; timeout?: number; rtspType?: string; // '0'=TCP, '1'=UDP, '2'=Multicast diff --git a/apps/web-antd/src/views/aiot/device/camera/index.vue b/apps/web-antd/src/views/aiot/device/camera/index.vue index 60b8bc6b4..433129a5f 100644 --- a/apps/web-antd/src/views/aiot/device/camera/index.vue +++ b/apps/web-antd/src/views/aiot/device/camera/index.vue @@ -58,6 +58,7 @@ const searchQuery = ref(''); const columns = [ { title: '摄像头名称', dataIndex: 'cameraName', width: 150 }, { title: '拉流地址', dataIndex: 'srcUrl', ellipsis: true }, + { title: '边缘设备', dataIndex: 'edgeDeviceId', width: 100 }, { title: '状态', key: 'status', width: 60, align: 'center' as const }, { title: 'ROI', key: 'roiCount', width: 80, align: 'center' as const }, { title: '操作', key: 'actions', width: 240, fixed: 'right' as const }, @@ -75,6 +76,7 @@ const editForm = reactive>({ cameraName: '', app: '', stream: '', + edgeDeviceId: 'edge', srcUrl: '', timeout: 15, rtspType: '0', @@ -180,6 +182,7 @@ function resetForm() { cameraName: '', app: '', stream: '', + edgeDeviceId: 'edge', srcUrl: '', timeout: 15, rtspType: '0', @@ -242,6 +245,7 @@ function handleEdit(row: AiotDeviceApi.Camera) { cameraName: row.cameraName || '', app: row.app || '', stream: row.stream || '', + edgeDeviceId: row.edgeDeviceId || 'edge', cameraCode: row.cameraCode || '', srcUrl: row.srcUrl || '', timeout: row.timeout ?? 15, @@ -487,6 +491,16 @@ onMounted(() => { placeholder="请输入摄像头名称,如:大堂吧台、室外停车场" /> + +