mirror of https://gitee.com/karson/fastadmin.git
CRUD指定选项卡过滤字段,如果字段名含有下划线,需要转为小驼峰
parent
64babee4f7
commit
63503e5eb4
|
|
@ -706,6 +706,8 @@ class Crud extends Command
|
|||
$javascriptList[] = $this->getJsColumn($field, $v['DATA_TYPE'], $inputType && in_array($inputType, ['select', 'checkbox', 'radio']) ? '_text' : '', $itemArr);
|
||||
}
|
||||
if ($this->headingFilterField && $this->headingFilterField == $field && $itemArr) {
|
||||
//如果字段名含有下划线,需要转为小驼峰
|
||||
$field = $this->getCamelizeName($field);
|
||||
$headingHtml = $this->getReplacedStub('html/heading-html', ['field' => $field]);
|
||||
}
|
||||
//排序方式,如果有指定排序字段,否则按主键排序
|
||||
|
|
|
|||
Loading…
Reference in New Issue