Commit 7e56c969 authored by houyu's avatar houyu

施工许可证表单提交

parent 1a0dc223
...@@ -353,28 +353,32 @@ ...@@ -353,28 +353,32 @@
height: 790, height: 790,
scale: 1 scale: 1
}).then(img => { }).then(img => {
console.log(img); $('#sgxkz_img').val(img);
$.ajax({ $("#myform1").submit();
url : "fujiantongbu.action", //var params = $('#myform1').serialize();
type: 'post', //console.log(params);
dataType: 'json', <%-- $.ajax({--%>
async : false, <%-- url : "fujiantongbu.action",--%>
data:{ <%-- type: 'post',--%>
xxylb: '${rfxm.xxylbbh}', <%-- dataType: 'json',--%>
file : img <%-- async : false,--%>
}, <%-- data:{--%>
error: function(){ <%-- "struts.token.name": 'token',--%>
$.messager.alert('错误','同步施工许可证失败!'); <%-- xxylb: '${rfxm.xxylbbh}',--%>
}, <%-- file : img--%>
success: function(data){ <%-- },--%>
if(data.result){ <%-- error: function(){--%>
$.messager.alert('提示','同步施工许可证成功!'); <%-- $.messager.alert('错误','同步施工许可证失败!');--%>
search_dxjl(); <%-- },--%>
}else{ <%-- success: function(data){--%>
$.messager.alert('错误','同步施工许可证失败!'); <%-- if(data.result){--%>
} <%-- $.messager.alert('提示','同步施工许可证成功!');--%>
} <%-- search_dxjl();--%>
}); <%-- }else{--%>
<%-- $.messager.alert('错误','同步施工许可证失败!');--%>
<%-- }--%>
<%-- }--%>
<%-- });--%>
}) })
} }
</script> </script>
...@@ -452,5 +456,10 @@ ...@@ -452,5 +456,10 @@
</td> </td>
</tr> </tr>
</table> </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> </body>
</html> </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