标签:action rate rtu pen cti eth fun 开始 function
//导出报表
$(‘#exportStatement‘).click(function () {
var exportUrl = ctxPath + ‘supplierOperate/exportStatement‘;
var startTime = $(‘#startTime‘).val();
if(startTime == ‘‘){
layer.alert("请选择开始时间");
return;
}
var endTime = $(‘#endTime‘).val();
if(endTime == ‘‘){
layer.alert("请选择结束时间");
return;
}
var form = $(‘<form method="post" action="‘+exportUrl+‘">‘);
form.append($(‘<input type="hidden" name="orgName" value="‘+ $(‘#orgName‘).val() +‘">‘));
form.append($(‘<input type="hidden" name="supplierName" value="‘+ $(‘#supplierName‘).val() +‘">‘));
form.append($(‘<input type="hidden" name="startTime" value="‘+ $(‘#startTime‘).val() +‘">‘));
form.append($(‘<input type="hidden" name="endTime" value="‘+ $(‘#endTime‘).val() +‘">‘));
$(‘body‘).append(form);
form.submit();
})
标签:action rate rtu pen cti eth fun 开始 function
原文地址:https://www.cnblogs.com/lazyli/p/12218382.html