feat: 渲染大模型的评查结果也添加上true和false的判断
This commit is contained in:
@@ -1922,6 +1922,7 @@ export function ReviewPointsList({
|
|||||||
fields?: Record<string, {
|
fields?: Record<string, {
|
||||||
page: number | string;
|
page: number | string;
|
||||||
value: string;
|
value: string;
|
||||||
|
res: boolean;
|
||||||
char_positions?: CharPosition[];
|
char_positions?: CharPosition[];
|
||||||
}>;
|
}>;
|
||||||
ai_suggestion?: {
|
ai_suggestion?: {
|
||||||
@@ -1980,8 +1981,8 @@ export function ReviewPointsList({
|
|||||||
<button
|
<button
|
||||||
key={`field-${index}`}
|
key={`field-${index}`}
|
||||||
className={`border border-gray w-full
|
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
|
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)] ${res ? 'hover:bg-[rgba(0,128,0,0.1)]' : 'hover:bg-[rgba(255,255,0,0.1)]'}`}
|
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) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (value.page && typeof onReviewPointSelect === 'function') {
|
if (value.page && typeof onReviewPointSelect === 'function') {
|
||||||
@@ -2030,7 +2031,7 @@ export function ReviewPointsList({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={`w-8 flex items-center justify-center rounded-r-md group relative`}>
|
<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-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>
|
<i className="ri-alert-line text-warning text-base hover:text-yellow-800" ></i>
|
||||||
@@ -2047,7 +2048,7 @@ export function ReviewPointsList({
|
|||||||
<div className={`rounded-md flex flex-row items-center`}>
|
<div className={`rounded-md flex flex-row items-center`}>
|
||||||
<div className="text-xs text-gray-600 pl-1 whitespace-nowrap">大模型判断:</div>
|
<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`}>
|
<div className={`p-1 text-xs rounded-full min-w-[50px] text-center`}>
|
||||||
{res ? '通过' : '不通过'}
|
{ value.res ? '通过' : '不通过'}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1675,6 +1675,7 @@ export function ReviewPointsList({
|
|||||||
fields?: Record<string, {
|
fields?: Record<string, {
|
||||||
page: number | string;
|
page: number | string;
|
||||||
value: string;
|
value: string;
|
||||||
|
res: boolean;
|
||||||
char_positions?: CharPosition[];
|
char_positions?: CharPosition[];
|
||||||
res?: boolean;
|
res?: boolean;
|
||||||
}>;
|
}>;
|
||||||
@@ -1735,8 +1736,8 @@ export function ReviewPointsList({
|
|||||||
<button
|
<button
|
||||||
key={`field-${index}`}
|
key={`field-${index}`}
|
||||||
className={`border border-gray w-full
|
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
|
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)] ${res ? 'hover:bg-[rgba(0,128,0,0.1)]' : 'hover:bg-[rgba(255,255,0,0.1)]'}`}
|
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) => {
|
onClick={(e) => {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
if (value.page && typeof onReviewPointSelect === 'function') {
|
if (value.page && typeof onReviewPointSelect === 'function') {
|
||||||
@@ -1786,7 +1787,8 @@ export function ReviewPointsList({
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
<div className={`w-8 flex items-center justify-center rounded-r-md group relative`}>
|
<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-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>
|
<i className="ri-alert-line text-warning text-base hover:text-yellow-800" ></i>
|
||||||
@@ -1803,7 +1805,7 @@ export function ReviewPointsList({
|
|||||||
<div className={`rounded-md flex flex-row items-center`}>
|
<div className={`rounded-md flex flex-row items-center`}>
|
||||||
<div className="text-xs text-gray-600 pl-1 whitespace-nowrap">大模型判断:</div>
|
<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`}>
|
<div className={`p-1 text-xs rounded-full min-w-[50px] text-center`}>
|
||||||
{res ? '通过' : '不通过'}
|
{ value.res ? '通过' : '不通过'}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user