|
@@ -42,9 +42,7 @@ class DoctorManagementController extends AdminController
|
|
0 => '禁用',
|
|
0 => '禁用',
|
|
1 => '启用',
|
|
1 => '启用',
|
|
]);
|
|
]);
|
|
-
|
|
|
|
});
|
|
});
|
|
-
|
|
|
|
$grid->actions(function ($actions) {
|
|
$grid->actions(function ($actions) {
|
|
// 去掉编辑
|
|
// 去掉编辑
|
|
$actions->disableEdit();
|
|
$actions->disableEdit();
|
|
@@ -57,7 +55,6 @@ class DoctorManagementController extends AdminController
|
|
//标签管理
|
|
//标签管理
|
|
$actions->add(new LabelManagement());
|
|
$actions->add(new LabelManagement());
|
|
});
|
|
});
|
|
-
|
|
|
|
$grid->column('id', __('Id'))->sortable();
|
|
$grid->column('id', __('Id'))->sortable();
|
|
$grid->column('name', __('姓名'));
|
|
$grid->column('name', __('姓名'));
|
|
$grid->column('avatar', __('头像'))->image('',50,50);
|
|
$grid->column('avatar', __('头像'))->image('',50,50);
|
|
@@ -75,7 +72,6 @@ class DoctorManagementController extends AdminController
|
|
})->label('info');
|
|
})->label('info');
|
|
return $grid;
|
|
return $grid;
|
|
}
|
|
}
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Make a show builder.
|
|
* Make a show builder.
|
|
*
|
|
*
|
|
@@ -85,44 +81,6 @@ class DoctorManagementController extends AdminController
|
|
protected function detail($id)
|
|
protected function detail($id)
|
|
{
|
|
{
|
|
$show = new Show(Docter::findOrFail($id));
|
|
$show = new Show(Docter::findOrFail($id));
|
|
-
|
|
|
|
- $show->field('id', __('Id'));
|
|
|
|
- $show->field('type', __('Type'));
|
|
|
|
- $show->field('name', __('Name'));
|
|
|
|
- $show->field('phone', __('Phone'));
|
|
|
|
- $show->field('sex', __('Sex'));
|
|
|
|
- $show->field('birthday', __('Birthday'));
|
|
|
|
- $show->field('avatar', __('Avatar'));
|
|
|
|
- $show->field('status', __('Status'));
|
|
|
|
- $show->field('label', __('Label'));
|
|
|
|
- $show->field('sign', __('Sign'));
|
|
|
|
- $show->field('intro', __('Intro'));
|
|
|
|
- $show->field('office_id', __('Office id'));
|
|
|
|
- $show->field('qualification_id', __('Qualification id'));
|
|
|
|
- $show->field('score', __('Score'));
|
|
|
|
- $show->field('service_persons', __('Service persons'));
|
|
|
|
- $show->field('eva_num', __('Eva num'));
|
|
|
|
- $show->field('service_days', __('Service days'));
|
|
|
|
- $show->field('phone_minutes', __('Phone minutes'));
|
|
|
|
- $show->field('chat_price', __('Chat price'));
|
|
|
|
- $show->field('phone_price', __('Phone price'));
|
|
|
|
- $show->field('appoint_price', __('Appoint price'));
|
|
|
|
- $show->field('is_chat', __('Is chat'));
|
|
|
|
- $show->field('is_phone', __('Is phone'));
|
|
|
|
- $show->field('is_appoint', __('Is appoint'));
|
|
|
|
- $show->field('latitude', __('Latitude'));
|
|
|
|
- $show->field('longitude', __('Longitude'));
|
|
|
|
- $show->field('created_at', __('Created at'));
|
|
|
|
- $show->field('updated_at', __('Updated at'));
|
|
|
|
- $show->field('user_id', __('User id'));
|
|
|
|
- $show->field('password', __('Password'));
|
|
|
|
- $show->field('is_then', __('Is then'));
|
|
|
|
- $show->field('practice', __('Practice'));
|
|
|
|
- $show->field('card_photo', __('Card photo'));
|
|
|
|
- $show->field('is_quail', __('Is quail'));
|
|
|
|
- $show->field('card_id', __('Card id'));
|
|
|
|
- $show->field('receiving_time', __('Receiving time'));
|
|
|
|
-
|
|
|
|
return $show;
|
|
return $show;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -134,7 +92,6 @@ class DoctorManagementController extends AdminController
|
|
protected function form()
|
|
protected function form()
|
|
{
|
|
{
|
|
$form = new Form(new Docter());
|
|
$form = new Form(new Docter());
|
|
-
|
|
|
|
$form->switch('status', __('状态'));
|
|
$form->switch('status', __('状态'));
|
|
return $form;
|
|
return $form;
|
|
}
|
|
}
|