diff --git a/app/admin/controller/User.php b/app/admin/controller/User.php index b6f29954a..48dbddb39 100644 --- a/app/admin/controller/User.php +++ b/app/admin/controller/User.php @@ -75,7 +75,7 @@ class User extends Controller } // 列表排序并显示 $query->equal('status,usertype')->dateBetween('login_at,create_at'); - $query->like('username,contact_phone#phone,contact_mail#mail')->layTable(); + $query->like('username,nickname,contact_phone#phone,contact_mail#mail')->layTable(); } } diff --git a/app/admin/view/user/form.html b/app/admin/view/user/form.html index 5acd9a08d..f11224d9f 100644 --- a/app/admin/view/user/form.html +++ b/app/admin/view/user/form.html @@ -33,7 +33,7 @@ - {if !empty($authorizes) && !empty($bases)} + {if !empty($authorizes) || !empty($bases)}