2024年2月26日 延长导出时间

This commit is contained in:
bai 2024-02-26 16:23:19 +08:00
parent 74015562e6
commit e1532bd541
1 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ export function useMethods() {
* @param url
*/
async function exportXls(name, url, params, isXlsx = false) {
const data = await defHttp.get({ url: url, params: params, responseType: 'blob' }, { isTransformResponse: false });
const data = await defHttp.get({ url: url, params: params, responseType: 'blob', timeout: 9000000 }, { isTransformResponse: false });
if (!data) {
createMessage.warning('文件下载失败');
return;
@ -69,9 +69,9 @@ export function useMethods() {
title: message,
centered: false,
content: `<div>
<span>${msg}</span><br/>
<span><a href = ${href} download = ${fileName}> </a> </span>
</div>`,
<span>${msg}</span><br/>
<span><a href = ${href} download = ${fileName}> </a> </span>
</div>`,
});
//update-begin---author:wangshuai ---date:20221121 for[VUEN-2827]导入无权限,提示图标错误------------
} else if (fileInfo.code === 500 || fileInfo.code === 510) {
@ -88,8 +88,8 @@ export function useMethods() {
createWarningModal({
centered: false,
content: `<div>
<span>${fileInfo.message}</span><br/>
</div>`,
<span>${fileInfo.message}</span><br/>
</div>`,
});
}
} catch (error) {