作者 董瑞恩
1 个管道 的构建 通过 耗费 0 秒

interface

... ... @@ -92,9 +92,15 @@ class AdminEquipmentController extends AdminBaseController{
}
public function editPost(){
$data=$this->request->post();
$param=$this->request->post();
$id=$param['id'];
$data=[
'serial_number'=>$param['serial_number'],
'hospital'=>$param['hospital'],
'note'=>$param['note']
];
$Equipment=new EquipmentModel();
$res=$Equipment->save($data);
$res=$Equipment->save($data,['id'=>$id]);
if ($res){
$this->apiResponse(200,'保存成功');
}else{
... ...
... ... @@ -207,6 +207,7 @@
url:"{:url('AdminEquipment/editPost')}",
type:"POST",
data:{
id:id,
serial_number:data.serial_number,
// mac_address:data.mac_address,
// name:data.name,
... ...