debug: add server-side point.code logging and enlarge badge

This commit is contained in:
2026-03-23 20:25:30 +08:00
parent daca126ee2
commit 38a43133c0
2 changed files with 9 additions and 4 deletions
+7 -2
View File
@@ -364,7 +364,12 @@ export async function getReviewPoints(fileId: string, request: Request) {
pointsMap.set(point.id, point);
});
// console.log('pointsMap-------', pointsMap);
// DEBUG: check if code field exists in point data
if (evaluationPointsData.length > 0) {
const sample = evaluationPointsData[0];
console.log('[DEBUG] point sample keys:', Object.keys(sample));
console.log('[DEBUG] point sample code:', sample.code, 'name:', sample.name);
}
const groupsMap = new Map<string | number, EvaluationPointGroup>();
groupsData.forEach(group => {
@@ -459,7 +464,7 @@ export async function getReviewPoints(fileId: string, request: Request) {
editAuditStatusMessage: editAuditStatus.message,
title: message,
pointName: point.name || '',
pointCode: point.code || '',
pointCode: point.code as string || '',
groupName: group.name || '',
status: point.suggestion_message_type || '', //评查点的评查结果状态
+2 -2
View File
@@ -2751,9 +2751,9 @@ export function ReviewPointsList({
{/* <div className='flex flex-col'> */}
<div className="flex items-center gap-2 max-w-[75%]">
{reviewPoint.pointCode ? (
<span className="text-[10px] font-mono bg-gray-100 text-gray-500 px-1 py-0.5 rounded flex-shrink-0">{reviewPoint.pointCode}</span>
<span className="text-xs font-mono bg-blue-50 text-blue-600 px-1.5 py-0.5 rounded border border-blue-200 flex-shrink-0">{reviewPoint.pointCode}</span>
) : (
<span className="text-[10px] font-mono bg-gray-100 text-gray-400 px-1 py-0.5 rounded flex-shrink-0">#{reviewPoint.pointId || reviewPoint.id}</span>
<span className="text-xs font-mono bg-gray-50 text-gray-500 px-1.5 py-0.5 rounded border border-gray-200 flex-shrink-0">#{reviewPoint.pointId || reviewPoint.id}</span>
)}
<div className="review-point-title text-left text-blue-500 break-all">{reviewPoint.pointName}</div>
{ reviewPoint.pointName === '签署乙方详细信息校验' && (