Merge branch '20230625-动态防护-weboffice文件名处理' into 'release_20230714'

7.14 动态防护 weboffice文件名处理

See merge request eshop/fe_service_ebtp_frontend!307
This commit is contained in:
jl-zhoujl2
2023-07-14 03:15:06 +00:00
6 changed files with 12 additions and 10 deletions

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);
};