1.取消按钮 function btn1() { layer.closeAll(); }
2.确认按钮
function btn() {
layui.use('layer', function(){
var layer = layui.layer;
layer.open({
title:"筛选条件",
type: 1,
area: ['650px', '280px'],
content: $("#Fromtable"),
shadeClose:true,
move : false, //拖拽模式
shade: 0.4,
success : function(layero, lockIndex) {
layero.find('#btnSearch').on('click', function () {
layer.close(lockIndex);
});
}
});
});
}
根据弹框中数据刷新底部页面数据
$('#btnSearch').on('click', function() { let searchForm = pubUtil.serializeObject($("#searchForm"));//弹框中查询页面表单form的ID table.reload('loadList', { //底部table的id where : searchForm }); return false; });