feat: 合并 Docker Compose、标注表格优化与部署文档

将 platform + CVAT 合并为单文件 docker-compose.yml,完善 .env 与 init/dev_up 脚本;
新增 docs/DEPLOY.md 与更新 README 以支持新机器部署;含数据湖示例、车队地图、
紧凑表格 UI、ADAS det_7cls 路径与批次台账等近期改动。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-16 17:06:31 +08:00
parent 0b8ade048e
commit 483e027482
117 changed files with 5933 additions and 1499 deletions

View File

@@ -377,9 +377,14 @@ def get_live_fleet(db: Session) -> dict[str, Any]:
items = []
for v in vehicles:
active = get_active_run(db, v.id)
row = v.to_dict()
row["vehicle_id"] = row["id"]
row["lat"] = row.get("last_lat")
row["lng"] = row.get("last_lng")
row["speed_kmh"] = row.get("last_speed_kmh")
items.append(
{
**v.to_dict(),
**row,
"active_run_id": active.id if active else None,
"active_mileage_km": active.mileage_km if active else None,
"active_run_no": active.run_no if active else None,