From bf93a1afec3ebdd08cdc4885cc162bdb6d4e0c2e Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Fri, 13 Feb 2026 13:29:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(aiot):=20=E6=81=A2=E5=A4=8D=E6=91=84?= =?UTF-8?q?=E5=83=8F=E5=A4=B4=E7=AE=A1=E7=90=86=E9=A1=B5=E9=9D=A2=E5=BA=94?= =?UTF-8?q?=E7=94=A8=E5=90=8D=E6=98=BE=E7=A4=BA=E5=92=8C=E8=BE=93=E5=85=A5?= =?UTF-8?q?=20-=20=E6=94=B9=E5=96=84=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 表格恢复显示应用名和流ID列,移除用户看不懂的摄像头编码列 - 表单恢复应用名输入框,用户可输入有意义的名称(如:大堂、停车场等) - 恢复应用名必填验证 - camera_code在后台自动生成,前端只在编辑时只读显示 - 改善用户体验:用户看到的是可理解的应用名,而不是技术编码 --- .../src/views/aiot/device/camera/index.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 eea7bdd76..e1b967f6f 100644 --- a/apps/web-antd/src/views/aiot/device/camera/index.vue +++ b/apps/web-antd/src/views/aiot/device/camera/index.vue @@ -54,7 +54,8 @@ const searchQuery = ref(''); const searchPulling = ref(undefined); const columns = [ - { title: '摄像头编码', dataIndex: 'cameraCode', width: 180 }, + { title: '应用名', dataIndex: 'app', width: 120 }, + { title: '流ID', dataIndex: 'stream', width: 150 }, { title: '拉流地址', dataIndex: 'srcUrl', ellipsis: true }, { title: '状态', key: 'pulling', width: 100 }, { title: 'ROI', key: 'roiCount', width: 80, align: 'center' as const }, @@ -186,6 +187,10 @@ function handleEdit(row: AiotDeviceApi.Camera) { } async function handleSave() { + if (!editForm.app?.trim()) { + message.warning('请输入应用名'); + return; + } if (!editForm.stream?.trim()) { message.warning('请输入流ID'); return; @@ -438,6 +443,13 @@ onMounted(() => { + + +