1.28功能提交

master
zhengyongxing 4 years ago
parent 3c1a7a2e61
commit 7a2e4d9033

@ -397,51 +397,52 @@
var id = $(this).data('id'); var id = $(this).data('id');
var st = $(this).data('st'); var st = $(this).data('st');
layer.confirm("是否确认对该数据进行奖惩分离", {title: false}, function (index) { layer.confirm("是否确认对该数据进行奖惩分离", {title: false}, function (index) {
var options = { var options = {
url:"{:U('editCompanyStatementPoolPc')}", //同action url:"{:U('editCompanyStatementPoolPc')}", //同action
type:'post', type:'post',
beforeSend:function(xhr){ beforeSend:function(xhr){
}, },
success:function(data) success:function(data)
{ {
return_data = data; return_data = data;
}, },
complete:function(data){ complete:function(data){
if(return_data.status==1){ if(return_data.status==1){
$.ajax({ $.ajax({
type: "POST", type: "POST",
url: "{:U('splitRewardOrFailData')}", url: "{:U('splitRewardOrFailData')}",
dataType: 'json', dataType: 'json',
async: false, async: false,
data: {id: id, st: st, pool_id: pool_ids}, data: {id: id, st: st, pool_id: pool_ids},
success: function (data) { success: function (data) {
if (data.status == 1) { if (data.status == 1) {
layer.msg("<font style='color:white'>" + data.msg + "</font>"); layer.msg("<font style='color:white'>" + data.msg + "</font>");
setTimeout(function () { setTimeout(function () {
window.location.reload(); window.location.reload();
}, 1500); }, 1500);
} else { } else {
layer.msg("<font style='color:white'>" + data.msg + "</font>"); layer.msg("<font style='color:white'>" + data.msg + "</font>");
return false; return false;
}
} }
} });
}); return;
return; }else{
}else{ layer.msg("<font style='color:white'>" + 保存数据失败 + "</font>");
layer.msg("<font style='color:white'>" + 保存数据失败 + "</font>"); return false;
return false; }
} },
}, error: function(xhr,status,msg){
error: function(xhr,status,msg){ //alert("状态码"+status+"; "+msg)
//alert("状态码"+status+"; "+msg) layer.msg('玩命加载中..');
layer.msg('玩命加载中..');
} }
}; };
$("#form").ajaxSubmit(options);
}); });
$("#form").ajaxSubmit(options);
}); });

Loading…
Cancel
Save