!3 tableSelect.js 插件,判断 table 中是否存在 where 搜索条件

tableSelect支持where查询,可实现预配置搜索参数。

同时,未来应该给upload组件加上筛选查询的配置项,给upload增加文件分组,实现分组上传、选择。
This commit is contained in:
2023-04-27 01:38:47 +00:00
committed by Gitee

View File

@@ -200,6 +200,12 @@ layui.define(['table', 'jquery', 'form'], function (exports) {
//关键词搜索
form.on('submit(tableSelect_btn_search)', function (data) {
// 判断 table 中是否存在 where 搜索条件
if (opt.table.where) {
$.each(opt.table.where, function (index, item) {
data.field[index] = item
});
}
tableSelect_table.reload({
where: data.field,
page: {