Commit 02e220b7 by 孙龙

up

parent 675b4396
Showing with 0 additions and 4 deletions
...@@ -27,16 +27,12 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate'], fun ...@@ -27,16 +27,12 @@ layui.use(['jquery','element', 'layer', 'form','table','laypage','laydate'], fun
//监听表单提交按钮 //监听表单提交按钮
form.on('submit(search)', function(data){ form.on('submit(search)', function(data){
layer.confirm('确定删除?', function(index){
//根据搜索条件 重载表单
msg_tpl_table.reload({ msg_tpl_table.reload({
where: data.field,//设定异步数据接口的额外参数,任意设 where: data.field,//设定异步数据接口的额外参数,任意设
page: { page: {
curr: 1 //重新从第 1 页开始 curr: 1 //重新从第 1 页开始
} }
}); });
layer.close(index);
});
return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。 return false; //阻止表单跳转。如果需要表单跳转,去掉这段即可。
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment