var form=document.getElementById("inspectForm");//inspectForm为Form表单的ID
var fd =new FormData(form);
fd.append("taskId", row.ID);
$.ajax({
url: basePath+"problem/add",
type: "POST",
data: fd,
processData: false, // 告诉jQuery不要去处理发送的数据
contentType: false, // 告诉jQuery不要去设置Content-Type请求头
success: function(response,status,result){
console.log(result);
result = JSON.parse(result.responseText);
$.messager.alert("提示",result.msg);
$('#inspectionReport').dialog('close');
}
});
var fd =new FormData(form);
fd.append("taskId", row.ID);
$.ajax({
url: basePath+"problem/add",
type: "POST",
data: fd,
processData: false, // 告诉jQuery不要去处理发送的数据
contentType: false, // 告诉jQuery不要去设置Content-Type请求头
success: function(response,status,result){
console.log(result);
result = JSON.parse(result.responseText);
$.messager.alert("提示",result.msg);
$('#inspectionReport').dialog('close');
}
});