jqhph / dcat-admin

🔥 基于 Laravel 的后台系统构建工具 (Laravel Admin),使用很少的代码快速构建一个功能完善的高颜值后台系统,内置丰富的后台常用组件,开箱即用,让开发者告别冗杂的HTML代码
http://www.dcatadmin.com
MIT License
3.88k stars 710 forks source link

Grid 筛选器点击不筛选数据 #2022

Closed zorro430 closed 11 months ago

zorro430 commented 1 year ago

Laravel Version: 8.83.27 PHP Version: 8.2.3 Dcat Admin Version: 2.2.2-beta

Description:

Grid的筛选器无效

$grid->selector(function (Grid\Tools\Selector $selector) {
                $selector->selectOne('status',  [
                    0 => '全部',
                    1 => '未批改',
                    2 => '已批改',
                    3 => '驳回',
                ]);
            });

点击后无法完成数据筛选。 下面是官网的例子截图,同样无法筛选

            $grid->selector(function (Grid\Tools\Selector $selector) {
                $selector->select('brand', '品牌', ['AiW', '全有家居', 'YaLM', '甜梦', '饭爱家具', '偶堂家私']);
                $selector->select('category', '类别', ['茶几', '地柜式', '边几', '布艺沙发', '茶台', '炕几']);
                $selector->select('style', '风格', ['现代简约', '新中式', '田园风', '明清古典', '北欧', '轻奢', '古典']);
                $selector->selectOne('price', '售价', ['0-599', '600-1999', '1999-4999', '5000+']);
            });

166fb836d4ae914518104fd0e6d1d8ca

Steps To Reproduce:

stale[bot] commented 11 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

wang-sitong commented 11 months ago

我也遇到相同的问题了,是否在解决中