From e7f99f47eb9053406ec5c530d733295313909c80 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 15 Jun 2022 17:16:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Queue.php | 2 +- app/admin/controller/User.php | 2 +- app/admin/view/queue/index_search.html | 11 ++--------- app/admin/view/user/index.html | 10 +++++----- app/admin/view/user/index_search.html | 11 ++--------- 5 files changed, 11 insertions(+), 25 deletions(-) diff --git a/app/admin/controller/Queue.php b/app/admin/controller/Queue.php index ce69ded35..2d48b97f3 100644 --- a/app/admin/controller/Queue.php +++ b/app/admin/controller/Queue.php @@ -54,7 +54,7 @@ class Queue extends Controller } } }, function (QueryHelper $query) { - $query->equal('status')->like('code,title,command'); + $query->equal('status')->like('code|title#title,command'); $query->timeBetween('enter_time,exec_time')->dateBetween('create_at'); }); } diff --git a/app/admin/controller/User.php b/app/admin/controller/User.php index 4c64dc440..dc5243ec1 100644 --- a/app/admin/controller/User.php +++ b/app/admin/controller/User.php @@ -59,7 +59,7 @@ class User extends Controller // 数据列表搜索过滤 $query->equal('status,usertype')->dateBetween('login_at,create_at'); - $query->like('username,nickname,contact_phone#phone,contact_mail#mail'); + $query->like('username|nickname#username,contact_phone#phone,contact_mail#mail'); }); } diff --git a/app/admin/view/queue/index_search.html b/app/admin/view/queue/index_search.html index 6762a175a..b13f2cf2e 100644 --- a/app/admin/view/queue/index_search.html +++ b/app/admin/view/queue/index_search.html @@ -3,16 +3,9 @@