下载数据加载遮罩层
parent
67bd4d3141
commit
f65728611a
|
@ -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…
Reference in New Issue