FastAdmin后台数据表格自定义搜索项
后台数据表格自定义搜索项
代码
Js
正常添加搜索项,field可为虚拟字段
| 1 | {field: 'print_time', title: __('Print_time')}, | 
Controller
在组装搜索条件$this->buildparams()前检测请求参数并添加自定义where
| 1 | public function index() | 
- 本文作者: 小蜗牛
- 本文链接: https://vitaminvi.github.io/2021/09/30/FastAdmin后台表格自定义搜索项/
- 版权声明: 本博客所有文章除特别声明外,均采用 MIT 许可协议。转载请注明出处!
