faces: редизайн «Сканера лиц» и просмотр/привязка лиц из карточки ученика
- faces.html/faces.js: KPI-карточки, сворачиваемые блоки очереди и ошибок, индикатор сервиса face-id, действия с иконками, колонка «Не проверено» - students.html/students.js: собственные модалки #faceViewerModal/#faceAssignModal, открытие вьюера по похожему лицу, общий studentThumbSrc() - server.js: GET /api/students/:id/face-photos отдаёт photo_id (сырой photo_faces.source_id) - AGENTS.md: описание вьюера лиц в карточке ученика
This commit is contained in:
@@ -9224,6 +9224,7 @@ app.get('/api/students/:id/face-photos', requireAuth, async (req, res) => {
|
||||
photos: rows.map(r => ({
|
||||
source_type: r.source_type,
|
||||
source_id: r.source_type === 'group' ? r.group_id : (r.entry_ref || r.source_id),
|
||||
photo_id: r.source_id,
|
||||
path: r.photo_path,
|
||||
group_name: r.group_name,
|
||||
created_at: r.created_at,
|
||||
@@ -9234,6 +9235,7 @@ app.get('/api/students/:id/face-photos', requireAuth, async (req, res) => {
|
||||
face_id: r.face_id,
|
||||
source_type: r.source_type,
|
||||
source_id: r.source_type === 'group' ? r.group_id : (r.entry_ref || r.source_id),
|
||||
photo_id: r.source_id,
|
||||
path: r.photo_path,
|
||||
group_name: r.group_name,
|
||||
created_at: r.created_at,
|
||||
|
||||
Reference in New Issue
Block a user