将评查点的info类型也暂时统计为评查点结构警告这个范畴

This commit is contained in:
2025-05-24 11:39:27 +08:00
parent f6849c4a18
commit 9c21be482b
4 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -456,7 +456,7 @@ export async function getReviewFiles(searchParams: DocumentSearchParams = {}): P
}
// 统计不通过而且评查点是警告的评查点
if (point && point.suggestion_message_type === 'warning') {
if (point && (point.suggestion_message_type === 'warning' || point.suggestion_message_type === 'info')) {
totalWarningPoints++;
}else if (point && point.suggestion_message_type === 'error') {
totalFailPoints++;
+2
View File
@@ -184,6 +184,8 @@ export function FilePreview({ fileContent, activeReviewPointResultId, targetPage
// let newTargetPage = targetPage;
// console.log("targetPage:", targetPage);
// console.log("fileContent:", fileContent);
// 页码偏移量
// try {
// // 安全地访问ocrResult
// if (fileContent.ocrResult && fileContent.ocrResult.__meta && fileContent.ocrResult.__meta.page_offset) {
+1 -1
View File
@@ -227,7 +227,7 @@ export function ReviewPointsList({
).length;
const warningCount = reviewPoints.filter(
point => point.result === false && point.status === 'warning'
point => point.result === false && (point.status === 'warning' || point.status === 'info')
).length;
const errorCount = reviewPoints.filter(
+2 -1
View File
@@ -22,7 +22,8 @@
/* 选项卡样式 */
.tab-container {
margin-bottom: 16px;
/* margin-bottom: 16px; */
margin-bottom: 2px;
}
.tab-nav {