4.11 weboffice通用和评审室报表打印增加文件名格式化函数
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
* @Author: zhoujianlong
|
||||
* @Date: 2021-06-09 15:29:07
|
||||
* @Last Modified by: zhoujianlong
|
||||
* @Last Modified time: 2022-03-07 10:51:39
|
||||
* @Last Modified time: 2022-04-11 20:13:27
|
||||
*/
|
||||
import { Button, Modal } from 'antd';
|
||||
import { LoadingOutlined } from '@ant-design/icons';
|
||||
@ -259,7 +259,8 @@ const WebOffice0609: React.FC<WebOfficeProps> = (props) => {
|
||||
}
|
||||
openUrl += `.html?readonly=${readOnly}&DocfileCode=${docFileCode_}&PDFfileCode=${pdfFileCode_}&HTMLfileCode=${htmlFileCode_}&savePDF=${savePDF}&saveHTML=${saveHTML}`;
|
||||
if (fileName != '') {
|
||||
openUrl += `&fileName=${fileName}`
|
||||
const format = fileName.replace(/\//g, "-") //格式化文件名称
|
||||
openUrl += `&fileName=${format}`
|
||||
}
|
||||
window.ntkoBrowser.openWindow(openUrl);
|
||||
}}
|
||||
|
Reference in New Issue
Block a user