| xqd
@@ -3,6 +3,7 @@
|
|
|
namespace App\Community\Actions\Docter;
|
|
|
|
|
|
use App\Models\Docter;
|
|
|
+use App\Models\DocterType;
|
|
|
use Encore\Admin\Actions\RowAction;
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
| xqd
@@ -20,9 +21,10 @@ class ChangeType extends RowAction
|
|
|
}
|
|
|
|
|
|
public function form(){
|
|
|
-// 1.问诊医生 2.疫苗医生 3.儿保医生)
|
|
|
+ //1.问诊医生 2.疫苗医生 3.儿保医生)
|
|
|
$type = $this->row->docter->type;
|
|
|
- $this->select('type','类型')->options([1=>'门诊医生',2=>'计免医生',3=>'儿保医生'])->value(intval($type));
|
|
|
+ $docterType = DocterType::where(['status'=>1])->pluck('name','id')->toArray();
|
|
|
+ $this->select('type','类型')->options($docterType)->value(intval($type));
|
|
|
}
|
|
|
|
|
|
}
|