mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-09 19:42:47 +08:00
fix: 支持设置为search:false时初始化时传入的搜索参数持久的保留在表单中,否则点击之后初始化的搜索项会丢失
This commit is contained in:
@@ -637,7 +637,9 @@
|
||||
d.searchValue = '';
|
||||
}
|
||||
|
||||
if (d.field !== false && d.search !== false) {
|
||||
if (d.field !== false) {
|
||||
if(d.search !== false){
|
||||
|
||||
switch (d.search) {
|
||||
case true:
|
||||
formHtml += '\t<div class="layui-form-item layui-inline ' + formSearchHideClass + ' ">\n' +
|
||||
@@ -708,6 +710,10 @@
|
||||
break;
|
||||
}
|
||||
newCols.push(d);
|
||||
}else{
|
||||
// TODO:支持更多种类型的初始化,比如number_limit、time_limit
|
||||
formHtml += '<input type="hidden" name="' + d.fieldAlias + '" value="'+d.searchValue+'">'
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user