下载数据加载遮罩层

master
RuoYi 2018-07-25 20:07:07 +08:00
parent 67bd4d3141
commit f65728611a
2 changed files with 3 additions and 1 deletions

View File

@ -69,12 +69,14 @@
}, },
// 下载 // 下载
exportExcel: function(form) { exportExcel: function(form) {
$.modal.loading("正在导出数据,请稍后...");
$.post($.table._option.exportUrl, $("#" + form).serializeArray(), function(result) { $.post($.table._option.exportUrl, $("#" + form).serializeArray(), function(result) {
if (result.code == web_status.SUCCESS) { if (result.code == web_status.SUCCESS) {
window.location.href = ctx + "common/download?fileName=" + result.msg + "&delete=" + true; window.location.href = ctx + "common/download?fileName=" + result.msg + "&delete=" + true;
} else { } else {
$.modal.alertError(result.msg); $.modal.alertError(result.msg);
} }
$.modal.closeLoading();
}); });
}, },
// 刷新 // 刷新

File diff suppressed because one or more lines are too long