|
@@ -579,10 +579,11 @@ function list_mul(e)
|
|
|
alert('您还没有选择数据更新方式');
|
|
|
return;
|
|
|
}
|
|
|
- layer.confirm('确定进行此项操作吗?', function()
|
|
|
+ var index = layer.confirm('确定进行此项操作吗?', function()
|
|
|
{
|
|
|
$('#method').val('mul');
|
|
|
$('#function').val('msg');
|
|
|
+ layer.close(index);
|
|
|
$('#form1').attr('target', 'f1').submit();
|
|
|
})
|
|
|
}
|
|
@@ -619,8 +620,9 @@ function update(e, id, project, table, notice)
|
|
|
}
|
|
|
if(notice)
|
|
|
{
|
|
|
- layer.confirm(notice, function()
|
|
|
+ var index = layer.confirm(notice, function()
|
|
|
{
|
|
|
+ layer.close(index);
|
|
|
call();
|
|
|
});
|
|
|
}
|
|
@@ -1438,11 +1440,12 @@ function del()
|
|
|
*/
|
|
|
function del_act(href)
|
|
|
{
|
|
|
- layer.confirm('确定进行此项操作吗?', function()
|
|
|
+ var index = layer.confirm('确定进行此项操作吗?', function()
|
|
|
{
|
|
|
$.getJSON(href + '&json=1&callback=?', {}, function(t)
|
|
|
{
|
|
|
msg(t);
|
|
|
+ layer.close(index);
|
|
|
})
|
|
|
});
|
|
|
}
|
|
@@ -1452,7 +1455,7 @@ function del_act(href)
|
|
|
*/
|
|
|
function load(href)
|
|
|
{
|
|
|
- layer.confirm('确定进行此项操作吗?', function()
|
|
|
+ var index = layer.confirm('确定进行此项操作吗?', function()
|
|
|
{
|
|
|
if(href.indexOf('&') == -1)
|
|
|
{
|
|
@@ -1465,6 +1468,7 @@ function load(href)
|
|
|
$.getJSON(href, {}, function(t)
|
|
|
{
|
|
|
msg(t);
|
|
|
+ layer.close(index);
|
|
|
//location.reload();
|
|
|
})
|
|
|
})
|
|
@@ -1773,7 +1777,7 @@ function fastEdit(e, url, title, col, index)
|
|
|
showAlert(html, func, title);
|
|
|
}
|
|
|
|
|
|
- $('#layui-layer-content').css('overflow-x', 'hidden');
|
|
|
+ $('.layui-layer-content').css('overflow-x', 'hidden');
|
|
|
$('#update_button').hide();
|
|
|
layui.use(['formSelects'], function(){
|
|
|
$("select").each(function()
|
|
@@ -2103,7 +2107,7 @@ var dever_update =
|
|
|
|
|
|
recover : function()
|
|
|
{
|
|
|
- layer.confirm('确定恢复上次保存的数据吗?', function()
|
|
|
+ var index = layer.confirm('确定恢复上次保存的数据吗?', function()
|
|
|
{
|
|
|
var data = store.get(this.save_key).split('|||');
|
|
|
if(data)
|