mirror of https://gitee.com/y_project/RuoYi.git
修复IE浏览器导出功能报错
parent
d066bf022b
commit
92d98a2a6e
|
@ -173,7 +173,7 @@
|
||||||
$.modal.loading("正在导出数据,请稍后...");
|
$.modal.loading("正在导出数据,请稍后...");
|
||||||
$.post($.table._option.exportUrl, $("#" + currentId).serializeArray(), function(result) {
|
$.post($.table._option.exportUrl, $("#" + currentId).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=" + encodeURI(result.msg) + "&delete=" + true;
|
||||||
} else {
|
} else {
|
||||||
$.modal.alertError(result.msg);
|
$.modal.alertError(result.msg);
|
||||||
}
|
}
|
||||||
|
@ -184,7 +184,7 @@
|
||||||
importTemplate: function() {
|
importTemplate: function() {
|
||||||
$.get($.table._option.importTemplateUrl, function(result) {
|
$.get($.table._option.importTemplateUrl, 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=" + encodeURI(result.msg) + "&delete=" + true;
|
||||||
} else {
|
} else {
|
||||||
$.modal.alertError(result.msg);
|
$.modal.alertError(result.msg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue