feat(aiot): 告警列表和详情显示摄像头名称

- 列表摄像头列优先显示cameraName
- 详情页摄像头字段优先显示cameraName
- 降级显示cameraId或'-'

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-14 22:55:04 +08:00
parent 3d34c3f57f
commit e86ba5e7b3

View File

@@ -202,7 +202,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
<Grid table-title="告警列表">
<!-- 摄像头列 -->
<template #camera="{ row }">
<span class="font-medium">{{ row.cameraId || '-' }}</span>
<span class="font-medium">{{ row.cameraName || row.cameraId || '-' }}</span>
</template>
<!-- 告警类型列 -->
@@ -302,7 +302,7 @@ const [Grid, gridApi] = useVbenVxeGrid({
</div>
<div>
<span class="text-gray-500">摄像头</span>
<span class="font-medium">{{ currentAlert.cameraId }}</span>
<span class="font-medium">{{ currentAlert.cameraName || currentAlert.cameraId || '-' }}</span>
</div>
<div>
<span class="text-gray-500">告警类型</span>