Commit 7e56c969 authored by houyu's avatar houyu

施工许可证表单提交

parent 1a0dc223
......@@ -353,28 +353,32 @@
height: 790,
scale: 1
}).then(img => {
console.log(img);
$.ajax({
url : "fujiantongbu.action",
type: 'post',
dataType: 'json',
async : false,
data:{
xxylb: '${rfxm.xxylbbh}',
file : img
},
error: function(){
$.messager.alert('错误','同步施工许可证失败!');
},
success: function(data){
if(data.result){
$.messager.alert('提示','同步施工许可证成功!');
search_dxjl();
}else{
$.messager.alert('错误','同步施工许可证失败!');
}
}
});
$('#sgxkz_img').val(img);
$("#myform1").submit();
//var params = $('#myform1').serialize();
//console.log(params);
<%-- $.ajax({--%>
<%-- url : "fujiantongbu.action",--%>
<%-- type: 'post',--%>
<%-- dataType: 'json',--%>
<%-- async : false,--%>
<%-- data:{--%>
<%-- "struts.token.name": 'token',--%>
<%-- xxylb: '${rfxm.xxylbbh}',--%>
<%-- file : img--%>
<%-- },--%>
<%-- error: function(){--%>
<%-- $.messager.alert('错误','同步施工许可证失败!');--%>
<%-- },--%>
<%-- success: function(data){--%>
<%-- if(data.result){--%>
<%-- $.messager.alert('提示','同步施工许可证成功!');--%>
<%-- search_dxjl();--%>
<%-- }else{--%>
<%-- $.messager.alert('错误','同步施工许可证失败!');--%>
<%-- }--%>
<%-- }--%>
<%-- });--%>
})
}
</script>
......@@ -452,5 +456,10 @@
</td>
</tr>
</table>
<form name="myform1" id="myform1" method="post" enctype="multipart/form-data" action="fujiantongbu.action">
<s:token />
<input type="hidden" name="xmxxb.xxylb" value="${rfxm.xxylbbh}">
<input type="hidden" name="file" value="" id="sgxkz_img">
</form>
</body>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment