xiaogang 3 年之前
父節點
當前提交
098ea5a5a0
共有 2 個文件被更改,包括 2 次插入3 次删除
  1. 1 1
      app/Admin/Actions/Users/SetUserInfo.php
  2. 1 2
      app/Admin/Actions/Users/UsersInfoForm.php

+ 1 - 1
app/Admin/Actions/Users/SetUserInfo.php

xqd
@@ -59,7 +59,7 @@ class SetUserInfo extends RowAction
     public function render()
     {
         $form = UsersInfoForm::make(new UserInfoModel(),$this->getKey());
-        return Modal::make(new UserInfoModel())
+        return Modal::make()
             ->lg()
             ->title($this->title)
             ->body($form)

+ 1 - 2
app/Admin/Actions/Users/UsersInfoForm.php

xqd xqd
@@ -22,7 +22,6 @@ class UsersInfoForm extends Form implements LazyRenderable
     {
         $user = User::query()->find($input['id']);
         if(!$user){
-
             return $this->response()->error('请刷新后重试');
         }
         if($input['mobile']!=$user->mobile && User::query()->where('mobile',$input['mobile'])->first()){
@@ -42,7 +41,7 @@ class UsersInfoForm extends Form implements LazyRenderable
     public function form()
     {
         //$user_info = UserInfoModel::query()->where('user_id',$this->payload['id'])->first();
-        //dd($this->model());
+        dd($this->model());
         $this->text('user_id');//->value($this->payload['id'])->readOnly();
         $this->text('nickname', '昵称');//->value($user_info->nickname);
         $this->image('avatar', '头像');//->url($user_info->avatar);