diff --git a/app/customer/controller/Index.php b/app/customer/controller/Index.php index 1d02945..bafc0ac 100644 --- a/app/customer/controller/Index.php +++ b/app/customer/controller/Index.php @@ -103,7 +103,7 @@ class Index extends BaseController } } } - $cc_sql= Db::name('CustomerContact')->group('cid,mobile,qq,wechat,email')->field('cid,mobile,qq,wechat,email')->buildSql(); + $cc_sql= Db::name('CustomerContact')->group('cid,name,mobile,qq,wechat,email')->field('cid,name,mobile,qq,wechat,email')->buildSql(); $ct_sql= Db::name('CustomerTrace')->group('cid')->field('cid,MAX(follow_time) AS follow_time,MAX(next_time) AS next_time')->buildSql(); $orderby = 'ct.next_time desc,a.create_time desc'; if(isset($param['orderby'])){ @@ -122,7 +122,7 @@ class Index extends BaseController ->join('department d', 'a.belong_did = d.id') ->join($ct_sql.' ct', 'ct.cid = a.id','left') ->join($cc_sql.' cc', 'a.id = cc.cid','left') - ->distinct() + ->group('a.id') ->order($orderby) ->paginate($rows, false, ['query' => $param]) ->each(function ($item, $key) { diff --git a/app/home/view/index/index.html b/app/home/view/index/index.html index 55803fe..d18100f 100644 --- a/app/home/view/index/index.html +++ b/app/home/view/index/index.html @@ -43,7 +43,7 @@ - + @@ -57,8 +57,8 @@ {$login_admin.nickname}
-
基本资料
-
修改密码
+
基本资料
+
修改密码

退出
diff --git a/app/home/view/index/layout_fastentry.html b/app/home/view/index/layout_fastentry.html index d7c4c3d..b4458d7 100644 --- a/app/home/view/index/layout_fastentry.html +++ b/app/home/view/index/layout_fastentry.html @@ -2,13 +2,13 @@