diff --git a/admin/controllers/receiver/Clues.php b/admin/controllers/receiver/Clues.php index c8267c52..03dea18a 100644 --- a/admin/controllers/receiver/Clues.php +++ b/admin/controllers/receiver/Clues.php @@ -8,6 +8,8 @@ class Clues extends HD_Controller protected $log_dir; private $maintainAry = ['0-0' => '待处理', '1-10' => '已加微信', '3-7' => '明确拒绝', '2-4' => '未接通', '2-5' => '未完整触碰'];//保养客户专用 + private $role_id = 2; + public function __construct() { parent::__construct(); @@ -128,6 +130,7 @@ class Clues extends HD_Controller $params['cfrom_id2'] && $where['cf2_id'] = $params['cfrom_id2']; $params['brand_id'] && $where['brand_id'] = $params['brand_id']; $params['series_id'] && $where['series_id'] = $params['series_id']; + $params['admin_id'] && $where['admin_id'] = $params['admin_id']; //门店筛选 if ($params['biz_id_admin']) { @@ -146,6 +149,7 @@ class Clues extends HD_Controller !$params['biz_id_admin'] && $params['biz_id_admin'] = ''; !$params['brand_id'] && $params['brand_id'] = 0; !$params['series_id'] && $params['series_id'] = 0; + !$params['admin_id'] && $params['admin_id'] = 0; $count = $this->clues_model->count($where); $lists = []; @@ -248,6 +252,9 @@ class Clues extends HD_Controller $lists[] = $val; } } + $where = ['status' => 1, 'role_id' => $this->role_id]; + $adminLists = $this->sys_admin_model->select($where, 'id desc', 0, 0, 'id,username'); + $this->data['adminLists'] = $adminLists; $this->data['pager'] = array('count' => ceil($count / $size), 'curr' => $page, 'totle' => $count); return [$lists, $count]; @@ -1192,7 +1199,7 @@ class Clues extends HD_Controller } return $this->show_json(SYS_CODE_SUCCESS, '操作成功'); } - $where = ['status' => 1, 'role_id' => 2]; + $where = ['status' => 1, 'role_id' => $this->role_id]; $adminLists = $this->sys_admin_model->select($where, 'id desc', 0, 0, 'id,username'); $this->data['adminLists'] = $adminLists; $this->data['ids'] = $ids; diff --git a/admin/views/receiver/clues/lists.php b/admin/views/receiver/clues/lists.php index b5f2aeba..86c3202a 100644 --- a/admin/views/receiver/clues/lists.php +++ b/admin/views/receiver/clues/lists.php @@ -141,16 +141,24 @@ -