From 90d6b8f0f22cd62d9e5b1df35347959259b1121f Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Tue, 12 Nov 2019 10:46:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/views/database/a-index.php | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/frontend/views/database/a-index.php b/frontend/views/database/a-index.php index b3b24e1..58179bb 100644 --- a/frontend/views/database/a-index.php +++ b/frontend/views/database/a-index.php @@ -235,15 +235,19 @@ use \common\libs\MyLib; },'json'); }); $('.btn-a-b-all').click(function() { - layer.confirm('是否确认批量移动?', { + parent.layer.confirm('是否确认批量移动?', { btn: ['确认','取消'], //按钮 shade: false //不显示遮罩 }, function(){ + var index = parent.layer.load(1, { + shade: [0.1,'#fff'] //0.1透明度的白色背景 + }); var params = o; $.post('/database/a-b-all',params,function(obj){ - layer.msg(obj.msg); + parent.layer.close(index); + parent.layer.msg(obj.msg); if(obj.success) { - layer.msg('保存成功'); + parent.layer.msg('保存成功'); search(); } },'json'); @@ -257,7 +261,11 @@ use \common\libs\MyLib; rows.forEach(function(item,index,array){ params.push(item.id); }); + var index = parent.layer.load(1, { + shade: [0.1,'#fff'] //0.1透明度的白色背景 + }); $.post('/database/a-c', {ids:params.join(',')}, function(data) { + parent.layer.close(index); parent.layer.msg(data.msg); if(data.success == true) { refreshList(); @@ -265,7 +273,7 @@ use \common\libs\MyLib; },'json'); }); $('.btn-a-invalid').click(function() { - layer.confirm('是否确认移动?', { + parent.layer.confirm('是否确认移动?', { btn: ['确认','取消'], //按钮 shade: false //不显示遮罩 }, function(){ @@ -275,10 +283,14 @@ use \common\libs\MyLib; rows.forEach(function(item,index,array){ params.push(item.id); }); + var index = parent.layer.load(1, { + shade: [0.1,'#fff'] //0.1透明度的白色背景 + }); $.post('/database/a-invalid',{ids:params.join(','), invalid_id:invalid_id},function(obj){ - layer.msg(obj.msg); + parent.layer.close(index); + parent.layer.msg(obj.msg); if(obj.success) { - layer.msg('保存成功'); + parent.layer.msg('保存成功'); search(); } },'json');