diff --git a/app/components/reviews/ReviewPointsList.tsx b/app/components/reviews/ReviewPointsList.tsx index c8df8e1..def63d9 100644 --- a/app/components/reviews/ReviewPointsList.tsx +++ b/app/components/reviews/ReviewPointsList.tsx @@ -665,6 +665,7 @@ export function ReviewPointsList({ success: 0, warning: 0, error: 0, + notApplicable: 0, score: 0 }; @@ -686,6 +687,7 @@ export function ReviewPointsList({ const successToShow = successCount || statsToUse.success; const warningToShow = warningCount || statsToUse.warning; const errorToShow = errorCount || statsToUse.error; + const notApplicableToShow = statsToUse.notApplicable || 0; return (
@@ -744,6 +746,18 @@ export function ReviewPointsList({ 错误
+ {/* 未涉及数量(仅在有未涉及评查点时显示,仅统计展示不支持过滤) */} + {notApplicableToShow > 0 && ( + <> +
+
+
+ {notApplicableToShow} + 未涉及 +
+
+ + )} ); diff --git a/app/routes/reviews.tsx b/app/routes/reviews.tsx index abfe776..2460ad6 100644 --- a/app/routes/reviews.tsx +++ b/app/routes/reviews.tsx @@ -72,6 +72,7 @@ interface Statistics { success: number; warning: number; error: number; + notApplicable: number; score: number; } @@ -239,6 +240,7 @@ export async function loader({ request }: LoaderFunctionArgs) { success: unifiedData.summary?.passed_count || 0, error: unifiedData.summary?.failed_count || 0, warning: 0, + notApplicable: unifiedData.summary?.not_applicable_count || 0, score: unifiedData.summary?.total_score || 0 }, comparison_document: ('comparison_document' in reviewData && !('error' in reviewData)) ? reviewData.comparison_document : null,