Browse Source

社区代理点统计--修改状态搜索

master
liangyuyan 5 years ago
parent
commit
3999d5952e
  1. 2
      app/Admin/Controllers/v3/ReportCommunityController.php
  2. 2
      app/Admin/Repositories/v3/ReportCommunity.php

2
app/Admin/Controllers/v3/ReportCommunityController.php

@ -83,8 +83,8 @@ class ReportCommunityController extends AdminController
$filter->equal('name','姓名')->width(2);
if(!$this->marketId){
$filter->equal('market_id','市场')->select($marketList)->width(2);
$filter->equal('status','状态')->select(EmployeesModel::$_STATUS)->default(1)->width(2);
}
$filter->equal('status','状态')->select(EmployeesModel::$_STATUS)->width(2);
});
$grid->tools([

2
app/Admin/Repositories/v3/ReportCommunity.php

@ -170,7 +170,7 @@ class ReportCommunity extends EloquentRepository
/**
* 获取懒族员工 model
*/
public function getEmployeesData($selects, $params = ['status' => 1])
public function getEmployeesData($selects, $params = [])
{
$model = Model::select(DB::raw($selects));

Loading…
Cancel
Save