diff --git a/admin/controllers/receiver/Clues.php b/admin/controllers/receiver/Clues.php index 53514fa3..84829dc2 100644 --- a/admin/controllers/receiver/Clues.php +++ b/admin/controllers/receiver/Clues.php @@ -70,6 +70,7 @@ class Clues extends HD_Controller $this->data['statusList'] = $statusList; $this->data['maintainAry'] = $this->maintainAry; $this->data['export_button'] = $export_button; + $this->data['role'] = $this->role; $this->data['_title'] = '线索池列表'; return $this->show_view('receiver/clues/lists', true); } @@ -93,6 +94,8 @@ class Clues extends HD_Controller } if ($this->admin_biz_str) { $where["belong_id in ($this->admin_biz_str)"] = null; + }else{ + $where["belong_id"] = $params['belong_id']; } //创建时间 if ($params['c_time']) { @@ -452,6 +455,7 @@ class Clues extends HD_Controller 'brand_id' => $info['brand_id'], 'series_id' => $info['series_id'], 'admin_id' => $this->uid, + 'belong_id' => $this->admin_biz[0], 'c_time' => time(), 'en_time' => date('Y-m-d H:i:s'), ); @@ -1161,6 +1165,7 @@ class Clues extends HD_Controller 'city_id' => $map_city[$v['city_name']] ? $map_city[$v['city_name']] : 0, 'county_id' => $map_county[$v['county_name']] ? $map_county[$v['county_name']] : 0, 'biz_id' => $map_biz[$v['biz_name']] ? $map_biz[$v['biz_name']] : 0, + 'belong_id' => $this->admin_biz[0], 'p_time' => $map_biz[$v['biz_name']] ? date('Y-m-d H:i:s') : 0, ); $adds[] = $temp; diff --git a/admin/views/receiver/clues/lists.php b/admin/views/receiver/clues/lists.php index 7be229d4..f3bd6185 100644 --- a/admin/views/receiver/clues/lists.php +++ b/admin/views/receiver/clues/lists.php @@ -76,6 +76,22 @@ + + +