|
|
|
|
@ -102,10 +102,10 @@ class ProjectController extends CommonController
|
|
|
|
|
$headList = Admin::whereIn('id', $adminIds)->get();
|
|
|
|
|
// 获取病区选中的护工
|
|
|
|
|
foreach ($headList as $item) {
|
|
|
|
|
$item->checked = '';
|
|
|
|
|
$item->checked = 'false';
|
|
|
|
|
if ($areaId) {
|
|
|
|
|
$has = AdminAreaLink::where('area_id', $areaId)->where('admin_id', $item->id)->count();
|
|
|
|
|
if ($has) $item->checked = 'checked';
|
|
|
|
|
if ($has) $item->checked = 'true';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return $this->ajaxResponse($headList);
|
|
|
|
|
|