number_limit增加默认参数;发布新版本

This commit is contained in:
2023-12-08 16:26:17 +08:00
parent 69a090f6e0
commit a337900077
2 changed files with 23 additions and 6 deletions

View File

@@ -12,12 +12,12 @@ use think\console\Output;
class VersionBase extends Command class VersionBase extends Command
{ {
public const VERSION = 'v2.0.77'; public const VERSION = 'v2.0.78';
public const LAYUI_VERSION = '2.8.17'; public const LAYUI_VERSION = '2.8.17';
public const COMMENT = [ public const COMMENT = [
'修复更新逻辑创建目录', 'number_limit增加默认参数',
'发布新版本', '发布新版本',
]; ];

View File

@@ -512,10 +512,27 @@
d.searchValue = d.defaultSearchValue; d.searchValue = d.defaultSearchValue;
} }
if (d.search == 'number_limit') {
var a = '';
var b = '';
if (d.searchValue) {
var paramsArr = d.searchValue.split(',');
a = paramsArr[0];
b = paramsArr[1];
}
formatFilter['[' + d.field + ']min'] = a;
formatOp['[' + d.field + ']min'] = 'min';
formatFilter['[' + d.field + ']max'] = b;
formatOp['[' + d.field + ']max'] = 'max';
} else {
formatFilter[d.field] = d.defaultSearchValue; formatFilter[d.field] = d.defaultSearchValue;
formatOp[d.field] = d.searchOp; formatOp[d.field] = d.searchOp;
} }
}
var formSearchHideClass = ''; var formSearchHideClass = '';