| xqd
@@ -43,7 +43,7 @@ class ServiceController extends AdminController
|
|
|
$batch->disableDelete();
|
|
|
});
|
|
|
});
|
|
|
- $grid->model()->orderBy('id','desc');
|
|
|
+ $grid->model()->where('status','!=',3)->orderBy('id','desc');
|
|
|
$grid->column('id', __('Id'));
|
|
|
$grid->column('ondocter.avatar', __('头像'))->lightbox(['width' =>'', 'height' => 30]);
|
|
|
$grid->column('ondocter.id', __('医生ID'));
|
| xqd
@@ -51,9 +51,9 @@ class ServiceController extends AdminController
|
|
|
$grid->column('service_type','服务类别')->using([1=>'图文咨询',2=>'电话咨询',3=>'门诊预约'])->label('default');
|
|
|
$grid->column('ondocter.sex','性别')->using([1=>'男',2=>'女']);
|
|
|
$grid->column('docterorganization', __('所属机构'))->pluck('organization_id')->display(function ($organization){
|
|
|
- $value = Organization::whereIn('id',$organization->toArray())->pluck('name')->toArray();
|
|
|
+ $value = Organization::whereIn('id',$organization->toArray())->pluck('intro')->toArray();
|
|
|
return $value;
|
|
|
- })->label('info');
|
|
|
+ })->label('info')->width(300);
|
|
|
$grid->column('ondocter.label', __('标签'))->display(function ($label){
|
|
|
if($label==null || $label == '无')
|
|
|
{
|