Merge pull request '备注bug修改' (#1) from hotfix/bug_repair into release

Reviewed-on: http://8.136.139.249:3000/wmtx/platform/pulls/1
master
郑永星 4 years ago
commit feb37ef134

@ -375,7 +375,27 @@
});
</if>
$(".no_statement").on("click",function(){
var id = $(this).data('id');
saveForm(id);
});
var return_data = "";
function saveForm(id) {
var options = {
url:"{:U('editCompanyStatementPool')}", //同action
type:'post',
beforeSend:function(xhr){
},
success:function(data)
{
return_data = data;
},
complete:function(data){
if(return_data.status==1){
$.ajax({
type: "POST",
url: "{:U('cancelStatement')}",
@ -394,8 +414,21 @@
}
}
});
});
var return_data = "";
return;
}else{
layer.msg("<font style='color:white'>" + 保存数据失败 + "</font>");
return false;
}
},
error: function(xhr,status,msg){
//alert("状态码"+status+"; "+msg)
layer.msg('玩命加载中..');
}
};
$("#form").ajaxSubmit(options);
}
$("#submit").click(function(){
var options = {
url:"{:U('editCompanyStatementPool')}", //同action

Loading…
Cancel
Save