资金监控改成字节流导出
This commit is contained in:
@@ -448,9 +448,27 @@ function execExport() {
|
||||
postData.StartDate = $("#startDate").val();
|
||||
postData.ValueDate = $("#endDate").val();
|
||||
postData.MarginShownType = $("#ShownType").val();
|
||||
main.post("/client/ClientBanlanceExport", postData).done(function (res) {
|
||||
main.downloadFiles(res.obj);
|
||||
});
|
||||
// 构造并提交表单
|
||||
var $form = $('<form method="post" style="display:none"></form>');
|
||||
$form.attr('action', '/client/ClientBanlanceExport');
|
||||
for (var key in postData) {
|
||||
if (postData.hasOwnProperty(key)) {
|
||||
var value = postData[key];
|
||||
if (Array.isArray(value)) {
|
||||
value.forEach(function (v) {
|
||||
$form.append($('<input type="hidden" name="' + key + '" />').val(v));
|
||||
});
|
||||
} else {
|
||||
$form.append($('<input type="hidden" name="' + key + '" />').val(value));
|
||||
}
|
||||
}
|
||||
}
|
||||
$('body').append($form);
|
||||
$form.submit();
|
||||
$form.remove();
|
||||
//main.post("/client/ClientBanlanceExport", postData).done(function (res) {
|
||||
// // main.downloadFiles(res.obj);
|
||||
//});
|
||||
parent.layer.closeAll();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user