新加加载load

master
chenzhi 5 years ago
parent c335c1f0b3
commit e0b588be11

@ -330,22 +330,25 @@ $(function(){
return;
}
if(flag){
layer.confirm(opname+"仅会对"+opst+"的申请进行处理,选择中包含其他的状态的申请将被忽略,点击取消停止操作",{title:false}, function(index){
layer.confirm(opname+"仅会对"+opst+"的申请进行处理,选择中包含其他的状态的申请将被忽略,点击取消停止操作",{title:false}, function(index){
layer.close(index);
_doAgreeApply();
layer.close(index);
});
}else{
_doAgreeApply();
}
function _doAgreeApply(){
layer.load(2);
//执行
$.ajax({
type: "POST",
url: opurl,
dataType: 'json',
async: false,
async: true,
data: {ids:text},
success:function(data){
layer.closeAll('loading');
if(data.status==1){
layer.msg("<font style='color:white'>" + data.info + "</font>");
setTimeout(function(){

@ -368,14 +368,16 @@ $(function(){
_doAgreeApply();
}
function _doAgreeApply(){
layer.load(2);
//执行
$.ajax({
type: "POST",
url: opurl,
dataType: 'json',
async: false,
async: true,
data: {ids:text},
success:function(data){
layer.closeAll('loading');
if(data.status==1){
layer.msg("<font style='color:white'>" + data.info + "</font>");
setTimeout(function(){

@ -482,15 +482,17 @@
if(flag){
layer.confirm(opname+"仅会对"+opst+"的申请进行处理,选择中包含其他的状态的申请将被忽略,点击取消停止操作",{title:false}, function(index){
_doAgreeApply();
layer.close(index);
_doAgreeApply();
});
}else{
if(confirm){
layer.confirm('【警告】'+opname+'将不可回退,如需继续请点击确认', {
btn: ['确认','取消'],
title:false
}, function(){
}, function(index){
layer.close(index);
_doAgreeApply();
});
}else{
@ -500,13 +502,15 @@
}
function _doAgreeApply(){
//执行
layer.load(2);
$.ajax({
type: "POST",
url: opurl,
dataType: 'json',
async: false,
async: true,
data: {ids:text},
success:function(data){
layer.closeAll('loading');
if(data.status==1){
layer.msg("<font style='color:white'>" + data.info + "</font>");
setTimeout(function(){
@ -555,7 +559,7 @@
type: "POST",
url: "{:U('saveRemark')}",
dataType: 'json',
async: false,
async: true,
data: {id:id,remark:value},
success:function(data){
if(data.status==1){
@ -589,7 +593,7 @@
type: "POST",
url: "{:U('saveRemark')}",
dataType: 'json',
async: false,
async: true,
data: {id:id,remark:value},
success:function(data){
if(data.status==1){

@ -401,7 +401,11 @@
$(".cancelPool,.reCount").on("click",function(){
var id = $(this).data('id');
var url = "{:U('cancelPool')}";
cancelPoolAjax(url,{id:id});
layer.confirm("撤销汇总/重算都是不可逆操作,请慎重选择",{title:false}, function(index){
layer.close(index);
cancelPoolAjax(url,{id:id});
});
})
//线下打款
$(".setUlPayment").on("click",function(){
@ -437,13 +441,15 @@
function cancelPoolAjax(opurl,senddata){
//执行
layer.load(2);
$.ajax({
type: "POST",
url: opurl,
dataType: 'json',
async: false,
async: true,
data: senddata,
success:function(data){
layer.closeAll('loading');
if(data.status==1){
layer.msg("<font style='color:white'>" + data.info + "</font>");
setTimeout(function(){

Loading…
Cancel
Save