debug: add server-side point.code logging and enlarge badge
This commit is contained in:
@@ -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 || '', //评查点的评查结果状态
|
||||
|
||||
@@ -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 === '签署乙方详细信息校验' && (
|
||||
|
||||
Reference in New Issue
Block a user