Commit 970ba304 by HTML5-侯张振
parents 8ae91122 12b426d9
...@@ -193,9 +193,7 @@ class Distributionadmin extends CI_Controller ...@@ -193,9 +193,7 @@ class Distributionadmin extends CI_Controller
//$where = 'R.user_id = ' . $user_id; //$where = 'R.user_id = ' . $user_id;
$where = 'B.id in (' . $manager_info['building_id'].')'; $where = 'B.id in (' . $manager_info['building_id'].')';
$con_arr = array(); $con_arr = array();
if ($get) { if ($get) {
$con_arr = array( $con_arr = array(
'company_name' => $get['company_name'] ? : '', 'company_name' => $get['company_name'] ? : '',
'uniqid_id' => $get['uniqid_id'] ? : '' 'uniqid_id' => $get['uniqid_id'] ? : ''
...@@ -205,7 +203,7 @@ class Distributionadmin extends CI_Controller ...@@ -205,7 +203,7 @@ class Distributionadmin extends CI_Controller
$where .= ' and D.company_name like "%' . trim($get['company_name']) . '%"'; $where .= ' and D.company_name like "%' . trim($get['company_name']) . '%"';
} }
if (isset($get['uniqid_id']) && $get['uniqid_id']) { if (isset($get['uniqid_id'])) {
$where .= ' and D.uniqid_id like "%' . trim($get['uniqid_id']) . '%"'; $where .= ' and D.uniqid_id like "%' . trim($get['uniqid_id']) . '%"';
} }
} }
......
...@@ -35,7 +35,7 @@ class Channel_model extends My_Model{ ...@@ -35,7 +35,7 @@ class Channel_model extends My_Model{
//按首字母排列 //按首字母排列
//$where.=' order by B.create_time desc'; //$where.=' order by B.create_time desc';
$this->db->select('B.id,A.customer_user,A.customer_mobile,A.customer_type,B.create_time,B.recommend_status,H.user_name sale_name,F.manager_name channel_name,C.company_name,I.building_title,J.user_name,B.remark,RR.region_name') $this->db->select('B.id,A.customer_user,A.customer_mobile,A.customer_type,B.sale_id,B.create_time,B.recommend_status,H.user_name sale_name,F.manager_name channel_name,C.company_name,I.building_title,J.user_name,B.remark,RR.region_name')
->from('tb_customer_building B') ->from('tb_customer_building B')
->join('tb_customer A','A.id=B.customer_id') ->join('tb_customer A','A.id=B.customer_id')
......
...@@ -66,7 +66,7 @@ ...@@ -66,7 +66,7 @@
</div> </div>
</div> </div>
<div class="form-group"> <div class="form-group">
<input type="text" name="captcha" id="captcha" class="input-sm input-small" onkeypress="EnterPress()"> <input type="text" name="captcha" id="captcha" class="input-sm input-small" onkeypress="EnterPress()" onkeydown="EnterPress(event)">
<?php echo isset($image)?$image:'no';?> <?php echo isset($image)?$image:'no';?>
</div> </div>
...@@ -116,7 +116,8 @@ ...@@ -116,7 +116,8 @@
// $("#password").val($.cookie("password")); // $("#password").val($.cookie("password"));
} }
}); });
function EnterPress(){ function EnterPress(e){ //传入 event
var e = e || window.event;
if(event.keyCode == 13){ if(event.keyCode == 13){
$('.login-btn').trigger('click'); $('.login-btn').trigger('click');
} }
......
...@@ -367,8 +367,7 @@ ...@@ -367,8 +367,7 @@
format: 'yyyy-mm-dd', format: 'yyyy-mm-dd',
language: 'cn', language: 'cn',
}); });
var aa = "<?php echo $customer['recommend_status']?>";
console.log(aa);
//分销商筛选 //分销商筛选
$('#parent_name').on('keyup click',function(){ $('#parent_name').on('keyup click',function(){
$('#channel_list').show(); $('#channel_list').show();
......
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