From da6d3ad1fe2a2788edc8ae86f925c9e29f46b86c Mon Sep 17 00:00:00 2001 From: liapples Date: Tue, 17 Aug 2021 18:16:15 +0800 Subject: [PATCH] =?UTF-8?q?guide=5Fname=E6=94=B9=E4=B8=BAname?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Admin/Controllers/GuideController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Admin/Controllers/GuideController.php b/app/Admin/Controllers/GuideController.php index 0ca623b..08880a1 100644 --- a/app/Admin/Controllers/GuideController.php +++ b/app/Admin/Controllers/GuideController.php @@ -29,7 +29,7 @@ class GuideController extends AdminController } $grid->column('id')->sortable(); $grid->column('username'); - $grid->column('guide_name'); + $grid->column('name'); $grid->column('photo')->image(60, 60); $grid->column('license_pic')->image(60, 60); $grid->column('contact_phone'); @@ -56,7 +56,7 @@ class GuideController extends AdminController $filter->panel(); $filter->equal('id')->width(2); - $filter->like('guide_name')->width(3); + $filter->like('name')->width(3); $filter->equal('status')->select(UserStatus::array())->width(2); }); }); @@ -76,7 +76,7 @@ class GuideController extends AdminController $show->field('id'); $show->field('username'); - $show->field('guide_name'); + $show->field('name'); $show->field('status')->using(UserStatus::array()); $show->field('photo')->image(); $show->field('license_pic')->image(); @@ -108,7 +108,7 @@ class GuideController extends AdminController $form->text('password')->customFormat(fn() => ''); } $form->select('status')->options(UserStatus::array())->default(UserStatus::NORMAL); - $form->text('guide_name'); + $form->text('name'); $form->image('photo'); $form->image('license_pic'); $form->text('contact_phone');