feat: 增强处理历史详情导出与通知回执展示
This commit is contained in:
@@ -2,7 +2,7 @@ from django.shortcuts import get_object_or_404, render
|
||||
|
||||
from .models import AgentAuditLog, NotificationRecord
|
||||
from apps.chat.models import Conversation
|
||||
from .services import build_history_rows
|
||||
from .services import build_detail_summary, build_history_rows
|
||||
|
||||
|
||||
def log_list(request):
|
||||
@@ -57,8 +57,14 @@ def log_detail(request, log_id: int):
|
||||
batch_id=audit_log.batch_id,
|
||||
)
|
||||
conversation = Conversation.objects.filter(conversation_id=audit_log.conversation_id).first()
|
||||
detail_summary = build_detail_summary(audit_log, conversation, notifications)
|
||||
return render(
|
||||
request,
|
||||
"audit/log_detail.html",
|
||||
{"log": audit_log, "notifications": notifications, "conversation": conversation},
|
||||
{
|
||||
"log": audit_log,
|
||||
"notifications": notifications,
|
||||
"conversation": conversation,
|
||||
"detail_summary": detail_summary,
|
||||
},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user