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(() => { + + +