下载数据加载遮罩层

dep_wangsr
RuoYi 6 years ago committed by Limy
parent ddf7473496
commit e1c223e092

@ -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
Loading…
Cancel
Save