2024年2月26日 延长导出时间
This commit is contained in:
parent
74015562e6
commit
e1532bd541
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue