| xqd
@@ -30,7 +30,8 @@ class OrganizationController extends AdminController
|
|
|
$grid = new Grid(new Organization());
|
|
|
|
|
|
$grid->column('id', __('Id'));
|
|
|
- $grid->column('type', __('类型'));
|
|
|
+ $grid->column('type', __('机构类型'))->using([1=>'公立医院',2=>'私立医院']);
|
|
|
+ $grid->column('level', __('机构级别'))->using([0=>'未定级',1=>'一级',2=>'二级',3=>'三级']);
|
|
|
$grid->column('name', __('名称'));
|
|
|
$grid->column('province_id', __('省份'))->display(function ($id){
|
|
|
return Area::where('id',$id)->value('name');
|
| xqd
@@ -92,7 +93,16 @@ class OrganizationController extends AdminController
|
|
|
{
|
|
|
$form = new Form(new Organization());
|
|
|
|
|
|
- $form->select('type', __('类型'))->options(Organization::getType())->required();
|
|
|
+ $form->select('type', __('机构类型'))->options([
|
|
|
+ 1=>'公立医院',
|
|
|
+ 2=>'私立医院'
|
|
|
+ ])->required();
|
|
|
+ $form->select('level', __('机构级别'))->options([
|
|
|
+ 0=>'未定级',
|
|
|
+ 1=>'一级',
|
|
|
+ 2=>'二级',
|
|
|
+ 3=>'三级',
|
|
|
+ ])->required();
|
|
|
$form->text('name', __('名称'))->required();
|
|
|
$form->select('province_id', __('省份'))->options(function (){
|
|
|
return Area::where('level',1)->pluck('name','id');
|