From c13eb85a52708e58e431254e9d6e2efdd1eff8f1 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Tue, 21 Apr 2026 16:28:29 +0800 Subject: [PATCH] 1.五彩:subBill子从表使用虚拟表格滚动 2.处理预览PFD,使用iframe方式 --- src/components/Common/CommonNewBill.js | 2 +- src/components/Common/OfficePreview/index.js | 27 +++++++++++++++++++-------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/components/Common/CommonNewBill.js b/src/components/Common/CommonNewBill.js index 3f04b6a..a366572 100644 --- a/src/components/Common/CommonNewBill.js +++ b/src/components/Common/CommonNewBill.js @@ -2021,7 +2021,7 @@ const BillComponent = Form.create({ onChange: props.onTitleChange.bind(this, "slave"), dragTableHeight:344 }, - noVlistTable: bPagination, + noVlistTable: sModelsId === '192116810113315220489243410' ? false : bPagination, onDelRow: props.onDelRow, onDelRowSelect: props.onDelRowSelect, data: bSingleTree && commonUtils.isNotEmptyArr(slaveData) ? commonUtils.genTreeByArr(slaveData, "sId", "sFatherSlaveId") : slaveData, diff --git a/src/components/Common/OfficePreview/index.js b/src/components/Common/OfficePreview/index.js index caf428a..42b3e7b 100644 --- a/src/components/Common/OfficePreview/index.js +++ b/src/components/Common/OfficePreview/index.js @@ -15,7 +15,7 @@ const OfficePreview = props => { .pop() .split("_") .pop(); - const fileUrl = `${commonConfig.file_host}file/download?savePathStr=${encodeURIComponent(officeFileUrl)}&sModelsId=100&token=${app.token}`; + const fileUrl = `${commonConfig.file_host}file/downloadView?savePathStr=${encodeURIComponent(officeFileUrl)}&sModelsId=100&token=${app.token}`; const fileType = title .split(".") .pop() @@ -34,16 +34,27 @@ const OfficePreview = props => {
-
- {fileType === "PDF" && } +
+ {fileType === 'PDF' && ( +
+ +
+ )} {['MP4', 'WEBM', 'OGG'].includes(fileType) && ( -
-
-- libgit2 0.22.2