将评查点的info类型也暂时统计为评查点结构警告这个范畴
This commit is contained in:
@@ -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++;
|
totalWarningPoints++;
|
||||||
}else if (point && point.suggestion_message_type === 'error') {
|
}else if (point && point.suggestion_message_type === 'error') {
|
||||||
totalFailPoints++;
|
totalFailPoints++;
|
||||||
|
|||||||
@@ -184,6 +184,8 @@ export function FilePreview({ fileContent, activeReviewPointResultId, targetPage
|
|||||||
// let newTargetPage = targetPage;
|
// let newTargetPage = targetPage;
|
||||||
// console.log("targetPage:", targetPage);
|
// console.log("targetPage:", targetPage);
|
||||||
// console.log("fileContent:", fileContent);
|
// console.log("fileContent:", fileContent);
|
||||||
|
|
||||||
|
// 页码偏移量
|
||||||
// try {
|
// try {
|
||||||
// // 安全地访问ocrResult
|
// // 安全地访问ocrResult
|
||||||
// if (fileContent.ocrResult && fileContent.ocrResult.__meta && fileContent.ocrResult.__meta.page_offset) {
|
// if (fileContent.ocrResult && fileContent.ocrResult.__meta && fileContent.ocrResult.__meta.page_offset) {
|
||||||
|
|||||||
@@ -227,7 +227,7 @@ export function ReviewPointsList({
|
|||||||
).length;
|
).length;
|
||||||
|
|
||||||
const warningCount = reviewPoints.filter(
|
const warningCount = reviewPoints.filter(
|
||||||
point => point.result === false && point.status === 'warning'
|
point => point.result === false && (point.status === 'warning' || point.status === 'info')
|
||||||
).length;
|
).length;
|
||||||
|
|
||||||
const errorCount = reviewPoints.filter(
|
const errorCount = reviewPoints.filter(
|
||||||
|
|||||||
@@ -22,7 +22,8 @@
|
|||||||
|
|
||||||
/* 选项卡样式 */
|
/* 选项卡样式 */
|
||||||
.tab-container {
|
.tab-container {
|
||||||
margin-bottom: 16px;
|
/* margin-bottom: 16px; */
|
||||||
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-nav {
|
.tab-nav {
|
||||||
|
|||||||
Reference in New Issue
Block a user