Merge pull request '特殊补点编辑修改' (#76) from feature/add_item into release

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

@ -375,27 +375,58 @@
}); });
</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')}", var return_data = "";
dataType: 'json',
async: false, function saveForm(id) {
data: {id:id}, var options = {
success:function(data){ 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')}",
dataType: 'json',
async: false,
data: {id:id},
success:function(data){
if(data.status==1){ if(data.status==1){
layer.msg("<font style='color:white'>" + data.info + "</font>"); layer.msg("<font style='color:white'>" + data.info + "</font>");
setTimeout(function(){ setTimeout(function(){
window.location.reload(); window.location.reload();
},1500); },1500);
}else{ }else{
layer.msg("<font style='color:white'>" + data.info + "</font>"); layer.msg("<font style='color:white'>" + data.info + "</font>");
return false; return false;
} }
} }
}); });
}); return;
var return_data = ""; }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(){ $("#submit").click(function(){
var options = { var options = {
url:"{:U('editCompanyStatementPool')}", //同action url:"{:U('editCompanyStatementPool')}", //同action

Loading…
Cancel
Save