feat: 渲染大模型的评查结果也添加上true和false的判断

This commit is contained in:
2026-03-13 14:10:55 +08:00
parent 9b8147294d
commit 4601716256
2 changed files with 11 additions and 8 deletions
@@ -1896,6 +1896,7 @@ export function ReviewPointsList({
fields?: Record<string, {
page: number | string;
value: string;
res: boolean;
char_positions?: CharPosition[];
}>;
ai_suggestion?: {
@@ -1954,8 +1955,8 @@ export function ReviewPointsList({
<button
key={`field-${index}`}
className={`border border-gray w-full
rounded-md overflow-hidden mb-2 ${res ? 'bg-[rgba(246,255,237,1)]' : 'bg-[rgba(255,251,230,1)]'} flex
hover:shadow-[0_0_10px_rgba(0,0,0,0.1)] ${res ? 'hover:bg-[rgba(0,128,0,0.1)]' : 'hover:bg-[rgba(255,255,0,0.1)]'}`}
rounded-md overflow-hidden mb-2 ${value.res ? 'bg-[rgba(246,255,237,1)]' : 'bg-[rgba(255,251,230,1)]'} flex
hover:shadow-[0_0_10px_rgba(0,0,0,0.1)] ${value.res ? 'hover:bg-[rgba(0,128,0,0.1)]' : 'hover:bg-[rgba(255,255,0,0.1)]'}`}
onClick={(e) => {
e.stopPropagation();
if (value.page && typeof onReviewPointSelect === 'function') {
@@ -2004,7 +2005,7 @@ export function ReviewPointsList({
)}
</div>
<div className={`w-8 flex items-center justify-center rounded-r-md group relative`}>
{res ? (
{value.res ? (
<i className="ri-check-line text-success text-base hover:text-green-800" ></i>
) : (
<i className="ri-alert-line text-warning text-base hover:text-yellow-800" ></i>
@@ -2021,7 +2022,7 @@ export function ReviewPointsList({
<div className={`rounded-md flex flex-row items-center`}>
<div className="text-xs text-gray-600 pl-1 whitespace-nowrap">:</div>
<div className={`p-1 text-xs rounded-full min-w-[50px] text-center`}>
{res ? '通过' : '不通过'}
{ value.res ? '通过' : '不通过'}
</div>
</div>
</div>
+6 -4
View File
@@ -1581,6 +1581,7 @@ export function ReviewPointsList({
fields?: Record<string, {
page: number | string;
value: string;
res: boolean;
char_positions?: CharPosition[];
}>;
ai_suggestion?: {
@@ -1639,8 +1640,8 @@ export function ReviewPointsList({
<button
key={`field-${index}`}
className={`border border-gray w-full
rounded-md overflow-hidden mb-2 ${res ? 'bg-[rgba(246,255,237,1)]' : 'bg-[rgba(255,251,230,1)]'} flex
hover:shadow-[0_0_10px_rgba(0,0,0,0.1)] ${res ? 'hover:bg-[rgba(0,128,0,0.1)]' : 'hover:bg-[rgba(255,255,0,0.1)]'}`}
rounded-md overflow-hidden mb-2 ${value.res ? 'bg-[rgba(246,255,237,1)]' : 'bg-[rgba(255,251,230,1)]'} flex
hover:shadow-[0_0_10px_rgba(0,0,0,0.1)] ${value.res ? 'hover:bg-[rgba(0,128,0,0.1)]' : 'hover:bg-[rgba(255,255,0,0.1)]'}`}
onClick={(e) => {
e.stopPropagation();
if (value.page && typeof onReviewPointSelect === 'function') {
@@ -1690,7 +1691,8 @@ export function ReviewPointsList({
)}
</div>
<div className={`w-8 flex items-center justify-center rounded-r-md group relative`}>
{res ? (
{/* {res ? ( */}
{ value.res ? (
<i className="ri-check-line text-success text-base hover:text-green-800" ></i>
) : (
<i className="ri-alert-line text-warning text-base hover:text-yellow-800" ></i>
@@ -1707,7 +1709,7 @@ export function ReviewPointsList({
<div className={`rounded-md flex flex-row items-center`}>
<div className="text-xs text-gray-600 pl-1 whitespace-nowrap">:</div>
<div className={`p-1 text-xs rounded-full min-w-[50px] text-center`}>
{res ? '通过' : '不通过'}
{ value.res ? '通过' : '不通过'}
</div>
</div>
</div>