4.11 weboffice通用和评审室报表打印增加文件名格式化函数
This commit is contained in:
@ -88,7 +88,9 @@ const ReportPrint: React.FC<{}> = () => {
|
||||
|
||||
const onClickLink = (url: string, name: string, data: any) => {
|
||||
editLoading();
|
||||
window.ntkoBrowser.openWindow('/Weboffice4Path.html?path=' + encodeURIComponent(url) + '&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) + '&fileName=' + format);
|
||||
};
|
||||
|
||||
return (
|
||||
|
Reference in New Issue
Block a user