|
|
|
@ -83,17 +83,17 @@ 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)->width(2); |
|
|
|
$filter->equal('status','状态')->select(EmployeesModel::$_STATUS)->default(1)->width(2); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
$grid->tools([ |
|
|
|
new DataReportOption('today','report_community','今日'), |
|
|
|
new DataReportOption('yesterday','report_community','昨日'), |
|
|
|
new DataReportOption('this_week','report_community','本周'), |
|
|
|
new DataReportOption('last_week','report_community','上周'), |
|
|
|
new DataReportOption('this_month','report_community','本月'), |
|
|
|
new DataReportOption('last_month','report_community','上月'), |
|
|
|
new DataReportOption('today','report_community','今日', $this->newParams), |
|
|
|
new DataReportOption('yesterday','report_community','昨日', $this->newParams), |
|
|
|
new DataReportOption('this_week','report_community','本周', $this->newParams), |
|
|
|
new DataReportOption('last_week','report_community','上周', $this->newParams), |
|
|
|
new DataReportOption('this_month','report_community','本月', $this->newParams), |
|
|
|
new DataReportOption('last_month','report_community','上月', $this->newParams), |
|
|
|
new ReportCommunityExport() |
|
|
|
]); |
|
|
|
|
|
|
|
@ -140,7 +140,7 @@ class ReportCommunityController extends AdminController |
|
|
|
{ |
|
|
|
$this->marketId = Auth::getMarket(); |
|
|
|
$params = [ |
|
|
|
'status' => $request->input('status',1), |
|
|
|
'status' => $request->input('status',null), |
|
|
|
'name' => $request->input('name',false), |
|
|
|
'market_id' => $this->marketId ? $this->marketId : $request->input('market_id',null), |
|
|
|
'user_id' => $request->input('user_id',null), |
|
|
|
|