|
@@ -77,17 +77,19 @@ class UserController extends AdminController
|
|
|
protected function form()
|
|
protected function form()
|
|
|
{
|
|
{
|
|
|
return Form::make(new User(), function (Form $form) {
|
|
return Form::make(new User(), function (Form $form) {
|
|
|
|
|
+ $form->model()->with(['parent']);
|
|
|
$form->display('id');
|
|
$form->display('id');
|
|
|
- $form->display('nickname');
|
|
|
|
|
- $form->display('openid');
|
|
|
|
|
- $form->display('heade_img');
|
|
|
|
|
- $form->display('parent_id');
|
|
|
|
|
|
|
+ $form->display('nickname','昵称');
|
|
|
|
|
+ $form->image('head_img')->disable();
|
|
|
|
|
+ $form->select('parent_id')->options(function () {
|
|
|
|
|
+ return User::selectOptions();
|
|
|
|
|
+ });
|
|
|
|
|
+ $form->display('parent.nickname','上级');
|
|
|
$form->display('phone_num');
|
|
$form->display('phone_num');
|
|
|
$form->display('income');
|
|
$form->display('income');
|
|
|
$form->switch('is_vip', '是否会员?')->default(1);
|
|
$form->switch('is_vip', '是否会员?')->default(1);
|
|
|
- $form->display('share_qrcode');
|
|
|
|
|
- $form->display('scene_code');
|
|
|
|
|
- $form->display('become_vip_at');
|
|
|
|
|
|
|
+ $form->image('share_qrcode')->image('',80,80);;
|
|
|
|
|
+ $form->display('become_vip_at')->disable();
|
|
|
$form->display('become_child_at');
|
|
$form->display('become_child_at');
|
|
|
|
|
|
|
|
$form->display('created_at');
|
|
$form->display('created_at');
|