| xqd
@@ -33,17 +33,20 @@ class ApproveController extends AdminController
|
|
|
$grid ->model()->where('state','>=','1');
|
|
|
$grid->column('id', __('Id'));
|
|
|
$grid->column('docter.id', __('医生ID'));
|
|
|
- $grid->column('docter.name', __('名字'));
|
|
|
+ $grid->column('docter.name', __('医生姓名'));
|
|
|
+ $grid->column('docter.avatar', __('医生头像'))->image(50,50);
|
|
|
$grid->column('docter.sex', __('性别'))->using([0=>'未知',1=>'男',2=>'女']);
|
|
|
- $grid->column('docter.card_id', __('身份证'));
|
|
|
$grid->column('organization.name', __('机构'));
|
|
|
$grid->column('office.name', __('科室'));
|
|
|
$grid->column('qualification.name', __('医生资质'));
|
|
|
$grid->column('state', __('状态'))->using([1=>'待审核',2=>'已认证',3=>'已驳回']);
|
|
|
|
|
|
$grid->actions(function ($actions) {
|
|
|
+ //通过申请
|
|
|
$actions->add(new Pass());
|
|
|
+ //驳回申请
|
|
|
$actions->add(new Refuse());
|
|
|
+ //撤销申请
|
|
|
$actions->add(new Revoke());
|
|
|
});
|
|
|
return $grid;
|