完善评查详情

This commit is contained in:
2025-04-18 15:41:43 +08:00
parent 119f9197b2
commit 01d93522b8
25 changed files with 1731 additions and 511 deletions
+3 -1
View File
@@ -102,6 +102,7 @@ export interface DocumentUI {
isTest: boolean;
updatedAt?: string;
pageCount?: number;
ocrResult?: unknown;
}
/**
@@ -175,7 +176,8 @@ async function convertToUIDocument(doc: Document): Promise<DocumentUI> {
path: doc.path,
isTest: doc.is_test_document,
updatedAt: formatDate(doc.updated_at),
pageCount: doc.ocr_result?.__meta?.page_count || 0
pageCount: doc.ocr_result?.__meta?.page_count || 0,
ocrResult: doc.ocr_result
};
}