debug: add pointCode fallback and console log
This commit is contained in:
@@ -781,6 +781,11 @@ export function ReviewPointsList({
|
||||
* 过滤评查点
|
||||
* 根据搜索文本和状态过滤条件筛选评查点
|
||||
*/
|
||||
// DEBUG: check pointCode
|
||||
if (reviewPoints.length > 0) {
|
||||
console.log('[DEBUG pointCode]', reviewPoints[0].pointName, 'pointCode:', reviewPoints[0].pointCode, 'keys:', Object.keys(reviewPoints[0]).filter(k => k.includes('ode') || k.includes('Code')));
|
||||
}
|
||||
|
||||
const filteredReviewPoints = reviewPoints.filter(point => {
|
||||
// 匹配搜索文本
|
||||
const matchesSearch = searchText === '' ||
|
||||
@@ -2745,8 +2750,10 @@ export function ReviewPointsList({
|
||||
<div className="flex justify-between items-center mb-2">
|
||||
{/* <div className='flex flex-col'> */}
|
||||
<div className="flex items-center gap-2 max-w-[75%]">
|
||||
{reviewPoint.pointCode && (
|
||||
{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-[10px] font-mono bg-gray-100 text-gray-400 px-1 py-0.5 rounded 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