Browse Source

【机构管理】【筛选】增加【名称】索引

ChenWuJie 4 years ago
parent
commit
395075eca6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      app/Admin/Controllers/OrganizationController.php

+ 2 - 0
app/Admin/Controllers/OrganizationController.php

xqd
@@ -41,6 +41,8 @@ class OrganizationController extends AdminController
                     2=>'二级',
                     3=>'三级'
                 ]);
+                $filter->like('name','名称');
+
             });
             $filter->column(1/2, function ($filter) {
                 $filter->equal('province_id','省份')->select(Area::where('level',1)->pluck('name','id'));