//批量生成 更正报文
function batchCreateTxt(){
//根据传入的列字段,获取中项的值
var ids = $.table.selectColumns("iid");
$.ajax({
url: prefix + "/batchDownloadUpdate",
// data: $('#form-demo-2').serialize(),
data: {
"ids": ids+""
},
dataType: 'json',
type: "POST",
success: function(result) {
if (result.code == web_status.SUCCESS) {
// layer.msg("保存成功,正在刷新数据请稍候……", {
// icon: 1,
// time: 500,
// shade: [0.1, '#8F8F8F']
// },function() {
// location.reload();
// });
var fileName = result.data.filename;
var srcFilePath = result.data.srcfilepath;
// alert(srcFilePath);
window.location.href = ctx + "common/downloadFile?fileName=" + encodeURI(fileName) + "&srcfilePath=" + encodeURI(srcFilePath) + "&delete=" + true;
}
// else {
// alert(result.msg);
// }
alert(result.msg);
}
})
// 下面两行代码,与上面ajax效果相同
var jumpUrl= prefix + "/batchDownloadUpdate?ids="+ids;
// window.location.href =jumpUrl;
}