top.layui.form.on('submit(auditEgressionTodoList-refresh)', function(data){
top.layui.$(':input').not(':button, :submit, :reset').val('').removeAttr('selected').removeAttr('checked')
search_field = {};
top.layui.form.render();
table.reload('auditEgressionTodoList', {
where: $.extend({
userName:null,
companyName:null,
beginTimeStart:null,
beginTimeEnd:null,
endTimeStart:null,
endTimeEnd:null,
withType:null,
status:null,
createTimeStart:null,
createTimeEnd:null,
},where)
});
});
$.extend 的第一个参数:为搜索字段, 需要全部置为 null
来源:oschina
链接:https://my.oschina.net/u/2552902/blog/4608129