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