...
|
...
|
@@ -55,10 +55,15 @@ class HospitalController extends AdminBaseController |
|
|
* )
|
|
|
*/
|
|
|
public function index(){
|
|
|
$platment=$this->HospitalModel->getPlatment()->toArray();
|
|
|
dump($platment);
|
|
|
$this->assign('platment',$platment);
|
|
|
return $this->fetch();
|
|
|
$platment_id=input('id');
|
|
|
if (empty($platment_id)){
|
|
|
// return $this->error();
|
|
|
}
|
|
|
$hospital=$this->HospitalModel->getHospital($platment_id)->toArray();
|
|
|
dump($hospital);
|
|
|
$this->assign('hospital',$hospital);
|
|
|
$this->assign('platform_id',$platment_id);
|
|
|
return $this->fetch('hospital');
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
@@ -76,14 +81,7 @@ class HospitalController extends AdminBaseController |
|
|
* )
|
|
|
*/
|
|
|
public function hospital(){
|
|
|
$platment_id=input('id');
|
|
|
if (empty($platment_id)){
|
|
|
return $this->error();
|
|
|
}
|
|
|
$hospital=$this->HospitalModel->getHospital($platment_id)->toArray();
|
|
|
$this->assign('hospital',$hospital);
|
|
|
$this->assign('platform_id',$platment_id);
|
|
|
return $this->fetch();
|
|
|
|
|
|
}
|
|
|
|
|
|
/**
|
...
|
...
|
@@ -144,9 +142,7 @@ class HospitalController extends AdminBaseController |
|
|
/*查询本平台信息*/
|
|
|
$fatherPlatment=$this->HospitalModel->getPlatment($platform_id)->toArray();
|
|
|
/*查询所有平台信息*/
|
|
|
$allPlatment=$this->HospitalModel->getPlatment()->toArray();
|
|
|
$this->assign('fatherPlatment',$fatherPlatment);
|
|
|
$this->assign('allPlatment',$allPlatment);
|
|
|
|
|
|
return $this->fetch();
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -195,7 +191,7 @@ class HospitalController extends AdminBaseController |
|
|
if ($result !== true) {
|
|
|
$this->error($result);
|
|
|
}
|
|
|
$result=$this->OfficeModel->officeAdd($post['id'],$post['name']);
|
|
|
$result=$this->OfficeModel->officeAdd($post['id'],$post['name'],$post['platform']);
|
|
|
if ($result==1){
|
|
|
$this->success('添加成功!');
|
|
|
}else{
|
...
|
...
|
@@ -208,6 +204,8 @@ class HospitalController extends AdminBaseController |
|
|
/*查询所有平台信息*/
|
|
|
//$allPlatment=$this->HospitalModel->getPlatment()->toArray();
|
|
|
$this->assign('fatherPlatment',$fatherPlatment);
|
|
|
$allPlatment=$this->HospitalModel->getPlatment()->toArray();
|
|
|
$this->assign('allPlatment',$allPlatment);
|
|
|
// $this->assign('allPlatment',$allPlatment);
|
|
|
return $this->fetch();
|
|
|
}
|
...
|
...
|
|