4.18 修改报表打印文件名后缀

This commit is contained in:
jl-zhoujl2
2022-04-18 20:53:41 +08:00
parent fd1cfa84f2
commit 83a113036e
2 changed files with 6 additions and 5 deletions

View File

@ -34,7 +34,7 @@ const ReportPrint: React.FC<{}> = () => {
<Button
type="text"
key={item.id}
onClick={() => onClickLink(item.url, item.dicName, response?.data)}
onClick={() => onClickLink(item.url, item.dicName, item.queryType, response?.data)}
style={{ color: '#b30000', background: 'rgba(0, 0, 0, 0)' }}
>
{index + 1}{item.dicName}
@ -86,9 +86,9 @@ const ReportPrint: React.FC<{}> = () => {
}
};
const onClickLink = (url: string, name: string, data: any) => {
const onClickLink = (url: string, name: string, type: 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}次重新评审)` : ''}`);
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}次重新评审)` : ''}`);
};
return (