fix: 1. 接入入口模块的管理接口,优化样式。
2. 将查看文档评查结果详情对接接口,采用接口的方式进行查询。
This commit is contained in:
@@ -21,6 +21,11 @@ interface FileContent {
|
||||
page_offset?: number;
|
||||
};
|
||||
}; // 添加ocrResult属性
|
||||
ocr_result?:{
|
||||
__meta?: {
|
||||
page_offset?: number;
|
||||
};
|
||||
},
|
||||
parties: {
|
||||
partyA: {
|
||||
name: string;
|
||||
@@ -193,7 +198,8 @@ export function FilePreview({ fileContent, activeReviewPointResultId, targetPage
|
||||
// 如果是PDF文件,直接使用PdfPreview组件
|
||||
if (isPdf && real_path) {
|
||||
// console.log('[FilePreview] 渲染PDF预览', { real_path, targetPage, charPositions });
|
||||
const pageOffset = fileContent.ocrResult?.__meta?.page_offset || 0;
|
||||
// console.log('[FilePreview] 渲染PDF预览', { fileContent });
|
||||
const pageOffset = fileContent.ocrResult?.__meta?.page_offset || fileContent.ocr_result?.__meta?.page_offset || 0;
|
||||
return (
|
||||
<PdfPreview
|
||||
filePath={real_path}
|
||||
|
||||
Reference in New Issue
Block a user