|
|
|
|
@ -168,6 +168,18 @@ class ProjectController extends CommonController
|
|
|
|
|
];
|
|
|
|
|
$res = (new Bed())->create($data);
|
|
|
|
|
break;
|
|
|
|
|
// case "asksubmit":
|
|
|
|
|
// $parent = AskSubmit::find($request->id);
|
|
|
|
|
// $data = [
|
|
|
|
|
// "project_id" => $parent->project_id,
|
|
|
|
|
// "building_id" => $parent->building_id,
|
|
|
|
|
// "area_id" => $parent->area_id,
|
|
|
|
|
// "room_id" => $request->id,
|
|
|
|
|
// "name" => $request->name,
|
|
|
|
|
// "myindex" => $request->myindex
|
|
|
|
|
// ];
|
|
|
|
|
// $res = (new Bed())->create($data);
|
|
|
|
|
// break;
|
|
|
|
|
default:
|
|
|
|
|
return $this->error("不正确的类型");
|
|
|
|
|
}
|
|
|
|
|
@ -300,4 +312,9 @@ class ProjectController extends CommonController
|
|
|
|
|
return view($this->bladePath . ".asksubmit_index", compact("data"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public function askSubmitEdit(){
|
|
|
|
|
$data = [];
|
|
|
|
|
return view($this->bladePath . ".asksubmit_edit", compact("data"));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|