Commit 2d7fc044 authored by hujun's avatar hujun

公客处理

parent 9effa03f
...@@ -145,8 +145,8 @@ class Basic extends Controller ...@@ -145,8 +145,8 @@ class Basic extends Controller
} }
} }
//处理客方编辑客户 //处理客方编辑、跟进、公客客户
if (($requestPath == 'index/pcEditClient' || $requestPath == 'index/pcAddFollow') && isset($this->params['id'])) { if (($requestPath == 'index/pcEditClient' || $requestPath == 'index/pcAddFollow' || $requestPath == 'index/useraction_search') && isset($this->params['id'])) {
if (empty($this->params['id'])) { if (empty($this->params['id'])) {
$is_auth = 1; $is_auth = 1;
...@@ -154,11 +154,16 @@ class Basic extends Controller ...@@ -154,11 +154,16 @@ class Basic extends Controller
$m_user = new Users(); $m_user = new Users();
$where['agent_id'] = $this->userId; $where['agent_id'] = $this->userId;
$where['id'] = $this->params['id']; $where['id'] = $this->params['id'];
$is_ = $m_user->getUserAgentTotal($where); $is_ = $m_user->selectUser($where, 'id,agent_id');
if ($is_['agent_id'] == 0) {
$is_auth = 1;
} else {
$is_auth = $is_ > 0 ? 1:0; $is_auth = $is_ > 0 ? 1:0;
} }
} }
} }
}
if (empty($is_auth) && $this->userId != 1) { if (empty($is_auth) && $this->userId != 1) {
if($this->request->isAjax()){ if($this->request->isAjax()){
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
[% if (it[item]['first_login_time'] != null){ %] [%= it[item]["first_login_time"] %] [% } %] [% if (it[item]['first_login_time'] != null){ %] [%= it[item]["first_login_time"] %] [% } %]
</td> </td>
<td> <td>
[% if((check_auth('auth_vip ') && it[item]['vip']) || (it[item]['agent_id'] == it[item]['current_agent_id']) || (check_auth('index/pcEditClient'))) { %] [% if((check_auth('auth_vip') && it[item]['vip']) || (it[item]['agent_id'] == 0) || (it[item]['agent_id'] == it[item]['current_agent_id']) || check_auth('index/pcEditClient') ) { %]
<a class="btn1 btn-success caozuo" href="#modal-record" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["id"] %]'> <a class="btn1 btn-success caozuo" href="#modal-record" data-toggle="modal" data-phone='[%= it[item]["user_phone"] %]' data-id='[%= it[item]["id"] %]'>
详细信息 详细信息
</a> </a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment