|
|
|
@ -131,6 +131,16 @@ class ProjectController extends CommonController
|
|
|
|
"myindex" => $request->myindex
|
|
|
|
"myindex" => $request->myindex
|
|
|
|
];
|
|
|
|
];
|
|
|
|
$res = (new Area())->create($data);
|
|
|
|
$res = (new Area())->create($data);
|
|
|
|
|
|
|
|
// 添加选中的护工
|
|
|
|
|
|
|
|
$links = [];
|
|
|
|
|
|
|
|
foreach ($request->head as $item) {
|
|
|
|
|
|
|
|
$links[] = [
|
|
|
|
|
|
|
|
'admin_id' => $item,
|
|
|
|
|
|
|
|
'area_id' => $res->id,
|
|
|
|
|
|
|
|
'created_at' => date('Y-m-d H:i:s')
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
AdminAreaLink::insert($links);
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
case "area":
|
|
|
|
case "area":
|
|
|
|
$parent = Area::find($request->id);
|
|
|
|
$parent = Area::find($request->id);
|
|
|
|
|