fix(reviews): show field value when res=false instead of showing '缺失'

Second rendering path (entity fields) incorrectly hid values when
res=false, showing '缺失' even for fields with extracted values.
Fixed to match first rendering path: only show '缺失' when both
res=false AND value is empty. Values always display when present.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-23 01:05:48 +08:00
parent c0f8004278
commit 32bee87998
+4 -4
View File
@@ -1746,16 +1746,16 @@ export function ReviewPointsList({
{!value.page && (reviewPoint.contentPage && !reviewPoint.contentPage[key]) && ( {!value.page && (reviewPoint.contentPage && !reviewPoint.contentPage[key]) && (
<i className="ri-information-line text-red-500 text-xs ml-1" title="没有找到对应的文书内容"></i> <i className="ri-information-line text-red-500 text-xs ml-1" title="没有找到对应的文书内容"></i>
)} )}
{/* 缺失显示 */} {/* 缺失显示:仅在无值时显示 */}
{!res && ( {!res && !value.value && (
<span className="ml-2 text-xs text-yellow-500"> <span className="ml-2 text-xs text-yellow-500">
</span> </span>
)} )}
</div> </div>
{/* 主要值显示 */} {/* 主要值显示:有值就显示,不受res影响 */}
{res && ( {value.value && (
<ReactTableTooltip content={value.value} /> <ReactTableTooltip content={value.value} />
)} )}
</div> </div>