优化查询参数效果;发布新版本

This commit is contained in:
2023-12-08 17:35:44 +08:00
parent c60c4b78f0
commit b6d352f3b8
3 changed files with 10 additions and 4 deletions

View File

@@ -12,12 +12,12 @@ use think\console\Output;
class VersionBase extends Command class VersionBase extends Command
{ {
public const VERSION = 'v2.0.81'; public const VERSION = 'v2.0.82';
public const LAYUI_VERSION = '2.8.17'; public const LAYUI_VERSION = '2.8.17';
public const COMMENT = [ public const COMMENT = [
'优化更新逻辑', '优化查询参数效果',
'发布新版本', '发布新版本',
]; ];

View File

@@ -271,6 +271,11 @@ class AdminControllerBase extends BaseController
$excludes[$key] = $val; $excludes[$key] = $val;
continue; continue;
} }
if ($val === '') {
continue;
}
$op = isset($ops[$key]) && !empty($ops[$key]) ? $ops[$key] : '%*%'; $op = isset($ops[$key]) && !empty($ops[$key]) ? $ops[$key] : '%*%';
if (strpos($key, '[') === 0) { if (strpos($key, '[') === 0) {

View File

@@ -494,6 +494,9 @@
d.elemIdName = d.fieldAlias; d.elemIdName = d.fieldAlias;
var a = '';
var b = '';
if (typeof d.fieldAlias == 'string') { if (typeof d.fieldAlias == 'string') {
if (d.fieldAlias.indexOf('[') == 0) { if (d.fieldAlias.indexOf('[') == 0) {
@@ -513,8 +516,6 @@
} }
if (d.search == 'number_limit') { if (d.search == 'number_limit') {
var a = '';
var b = '';
if (d.searchValue) { if (d.searchValue) {
var paramsArr = d.searchValue.split(','); var paramsArr = d.searchValue.split(',');
a = paramsArr[0]; a = paramsArr[0];