feat(aiot): 截图持久化 + ROI 显示修复 + 告警图片代理

截图策略改为截一次持久化到 DB,打开 ROI 页面不再触发 Edge 截图:
- 新增 wvp_ai_camera_snapshot 表存储 cos_key
- AiScreenshotServiceImpl 回调时持久化 cos_key,图片代理增加 DB 回退
- 前端 getSnapUrl 直接返回代理 URL,force=true 才触发 Edge

RoiCanvas 修复:
- ResizeObserver 替代 nextTick 初始化 canvas
- 图片加载失败时仍初始化 canvas 以显示 ROI

告警图片代理:
- AiAlertController 新增 /image 端点通过 presign URL 代理 COS 图片
- 新增告警列表前端页面 alertList

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-03 16:56:26 +08:00
parent e140d4ceeb
commit 547dfdd5f4
16 changed files with 399 additions and 25 deletions

View File

@@ -233,6 +233,17 @@ export const constantRoutes = [
}
]
},
{
path: '/alertList',
component: Layout,
redirect: '/alertList',
children: [{
path: '',
name: 'AlertList',
component: () => import('@/views/alertList/index'),
meta: { title: '告警记录', icon: 'el-icon-warning' }
}]
},
{
path: '/cameraConfig',
component: Layout,