6.27 报表打印

This commit is contained in:
jl-zhoujl2
2023-06-27 15:49:42 +08:00
parent 70f7361474
commit 67069c0230
2 changed files with 2 additions and 2 deletions

View File

@ -59,7 +59,7 @@
<!--AfterPublishAsPDFToURL-->
<body
onload="path=getQueryString('path');fileName=getQueryString('fileName');fileType=getQueryString('fileType');init(path);">
onload="path=getQueryString('path');fileName=decodeURI(getQueryString('fileName'));fileType=getQueryString('fileType');init(path);">
<script type="text/javascript" for="TANGER_OCX" event="OnDocumentOpened(File, Document)">

View File

@ -89,7 +89,7 @@ const ReportPrint: React.FC<{}> = () => {
const onClickLink = (url: string, name: string, type: string, data: any) => {
editLoading();
const fileName: string = `${data.sectionName}-${data.sectionNum}-${data.roomType == 1 ? '预审' : ''}${name}${defId == 'recruit_multi' ? `${data.roomSort}` : ''}${data.reviewMark == 1 ? `(第${data.reviewSort}次重新评审)` : ''}`;
const format = fileName.replace(/\//g, "-") //格式化文件名称
const format = encodeURI(encodeURI(fileName.replace(/\//g, "-"))) //格式化文件名称
window.ntkoBrowser.openWindow('/Weboffice4Path.html?path=' + encodeURIComponent(url) + '&fileType=' + type + '&fileName=' + format);
};