|
@@ -161,6 +161,13 @@ ETO;
|
|
|
$query->where('consultant_id', isset(Admin::user()->consultant->id) ? Admin::user()->consultant->id : -1);
|
|
|
});
|
|
|
})->orderByRaw('field(audit,0,2,1,3)')->orderBy('created_at', 'desc');
|
|
|
+
|
|
|
+ $grid->model()->when(get_subsite_id() > 0, function ($query) {
|
|
|
+ $query->where('subsite_id', get_subsite_id());
|
|
|
+ })->when(Admin::user()->isRole('health'), function ($query) {
|
|
|
+ $query->where('is_health',1);
|
|
|
+ })->orderByRaw("field(audit,2,1,3,0)")->orderBy('id', 'desc');
|
|
|
+
|
|
|
$grid->id('id');
|
|
|
$grid->jobs_name('职位名称')->display(function ($jobs_name) {
|
|
|
return "<a href=".route(url_rewrite('AIX_jobsshow'), ['id'=>$this->id])." target='_blank' title='".$jobs_name."' style='display:inline-block;overflow:hidden;white-space: nowrap;text-overflow: ellipsis;max-width:180px'>".$jobs_name."</a>";
|