Commit 65d7891f authored by houyu's avatar houyu

施工许可证同步

parent 6fe0ff5f
......@@ -352,32 +352,31 @@
height: 790,
scale: 1
}).then(img => {
$('#sgxkz_img').val(img);
$("#myform1").submit();
// $('#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('错误','同步施工许可证失败!');--%>
<%-- }--%>
<%-- }--%>
<%-- });--%>
$.ajax({
url : "jfpztongbu.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('错误',data.info);
}
}
});
})
}
</script>
......
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