优化导出提示

master
chenzhi 4 years ago
parent 1ec951d344
commit 10e56211ce

@ -256,6 +256,7 @@
$("#downloadexcel").on("click",function(){ $("#downloadexcel").on("click",function(){
var url = $(this).attr("url"); var url = $(this).attr("url");
var title = '合作方导出'; var title = '合作方导出';
var index = layer.load(2);
layer.open({ layer.open({
type: 2, type: 2,
title: title, title: title,
@ -263,7 +264,10 @@
shade: 0, shade: 0,
area: ['40%', '60%'], area: ['40%', '60%'],
content: url, content: url,
zIndex :-5 zIndex :-5,
success:function(){
layer.closeAll();
}
}); });
// window.open(url, "blank"); // window.open(url, "blank");
}); });

@ -469,12 +469,12 @@
layer.open({ layer.open({
type: 2, type: 2,
title: title, title: title,
shadeClose: true, shadeClose: false,
shade: 0.8, shade: 0.8,
area: ['40%', '30%'], area: ['40%', '30%'],
content: url, content: url,
success:function(){ success:function(){
layer.close(index); layer.closeAll();
} }
}); });

Loading…
Cancel
Save