Merge branch '20220411-zjl-评审室-评审结果-评审报告处,编辑后保存,在打开,显示文件存取错误' of http://10.124.128.2:8888/eshop/fe_service_ebtp_frontend into 20220418-zjl-报表打印另存为默认格式打开文件内容乱码

This commit is contained in:
jl-zhoujl2
2022-04-18 21:03:44 +08:00
2 changed files with 6 additions and 3 deletions

View File

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