Merge branch 'hotfix/bug_repair' of wmtx/platform into master

备注bug修改
master
万盟天下 4 years ago committed by Gogs
commit 0612bdd0b0

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

Loading…
Cancel
Save