feat(regulatory): 完善复核前端入口

This commit is contained in:
2026-06-07 09:40:18 +08:00
parent d39e3fe2d5
commit 4e46f27c28
5 changed files with 110 additions and 21 deletions

View File

@@ -140,6 +140,8 @@ def build_workflow_cards(conversation: Conversation) -> list[dict[str, object]]:
"risk_label": _format_risk_label(batch.risk_summary or {}),
"condition_json": batch.condition_json or {},
"condition_candidates": (batch.condition_json or {}).get("candidates") or {},
"notification_count": batch.notifications.count(),
"review_record_count": batch.artifacts.filter(metadata__artifact="review_record").count(),
"created_at": batch.created_at,
"nodes": list(
WorkflowNodeRun.objects.filter(