实时报表Excel导出调整为后台导出

This commit is contained in:
leijun
2019-01-03 18:44:13 +08:00
parent d632670e45
commit ec7e93504c
6 changed files with 210 additions and 13 deletions

View File

@@ -112,4 +112,24 @@ Date.prototype.Format = function (fmt) {
for (var k in o)
if (new RegExp("(" + k + ")").test(fmt)) fmt = fmt.replace(RegExp.$1, (RegExp.$1.length == 1) ? (o[k]) : (("00" + o[k]).substr(("" + o[k]).length)));
return fmt;
}
}
function aJaxImportPost(url, params) {
// 创建form元素
var temp_form = document.createElement("form");
// 设置form属性
temp_form .action = url;
temp_form .target = "_self";
temp_form .method = "post";
temp_form .style.display = "none";
// 处理需要传递的参数
for (var x in params) {
var opt = document.createElement("textarea");
opt.name = x;
opt.value = params[x];
temp_form .appendChild(opt);
}
document.body.appendChild(temp_form);
// 提交表单
temp_form .submit();
}