功能:摄像头页面增加区域选择器

1. 编辑弹窗新增「所属区域」下拉框,支持搜索,数据来自 IoT 平台
2. 表格新增「区域」列显示已绑定的区域名称
3. API 新增 getAreaList 函数查询 vsp-service 区域列表接口
4. Vite 代理新增 /api/area → vsp-service:8000
5. Camera 类型新增 areaId 字段
This commit is contained in:
2026-03-23 16:49:27 +08:00
parent d3eb97eb8b
commit 84ec762d09
3 changed files with 70 additions and 1 deletions

View File

@@ -33,6 +33,11 @@ export default defineConfig(async () => {
changeOrigin: true,
target: 'http://127.0.0.1:8000',
},
// 区域列表 API -> 告警服务 :8000
'/api/area': {
changeOrigin: true,
target: 'http://127.0.0.1:8000',
},
// aiot/device/* -> WVP :18080按子路径分别 rewrite
// 注意:更具体的路径必须写在通配路径前面