Commit fead0bb9 authored by agping's avatar agping

客户列表修改

parent 049e5859
......@@ -176,14 +176,14 @@
</select>
<!--业态选择-->
<select class="form-control btn2 margin-top-ld" name="login_status">
<option value="-1">是否登录过</option>
<option value="-1">下载登录app</option>
<option value="1"></option>
<option value="2"></option>
</select>
<select class="form-control btn2 margin-top-ld" name="activate">
<option value="-1">APP状态筛选</option>
<option value="1">激活</option>
<option value="2">未激活</option>
<option value="-1">是否注册app</option>
<option value="1"></option>
<option value="2"></option>
</select>
<select class="form-control btn2 margin-top-ld" name="male_status">
......@@ -196,6 +196,12 @@
</select>
<input class="form-control btn2 margin-top-ld input" data-rule-phoneus="false" data-rule-required="false" id="guest_stores" placeholder="客方所属门店" type="text" value="">
<!--邀请人-->
<select class="form-control btn2 margin-top-ld input" name="" id="district_id2" placeholder="">
</select>
<input class="form-control btn2 margin-top-ld input" data-rule-phoneus="false" data-rule-required="false" id="guest_stores2" placeholder="邀请人所属门店" type="text" value="">
<select class="form-control btn2 margin-top-ld" name="public_status">
<option value="2">客户状态</option>
......@@ -223,7 +229,7 @@
<th class="text-center">创建时间</th>
<th class="text-center">最后跟进时间</th>
<th class="text-center">App状态</th>
<th class="text-center">是否登录过</th>
<th class="text-center">下载登录</th>
<th class="text-center">昵称</th>
<th class="text-center">注册时间</th>
<th class="text-center">操作</th>
......
......@@ -12,6 +12,7 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
user.getList ();
user.event ();
user.getDistrict();
user.getDistricttwo();
//时间控件初始化
/* $('#datetimepicker').datetimepicker({
format: 'yyyy-MM-dd',
......@@ -393,7 +394,9 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
params.rent_user=$("select[name=public_status]").val();
params.public_user=$("select[name=male_status]").val();
params.store_name=$("#guest_stores").val();
params.district_id=$("#district_id").val()
params.referrer_store_name=$("#guest_stores2").val();
params.district_name=$("#district_id").val()
params.referrer_district_id=$("#district_id2").val()
params.login_status = $("select[name=login_status]").val();
params.activate = $("select[name=activate]").val();
params.pageNo = user.pageNo;
......@@ -403,10 +406,6 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
params.price_type = $("select[name=price_type]").val();
params.industry_type = $("select[name=industry_type]").val();
$.ajax ({
url: '/index/users_list',
type: 'GET',
......@@ -524,6 +523,26 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
str += '<option value="'+item.id+'">'+item.district_name+'</option>';
});
$("#district_id").html(str);
}
}
});
},
getDistricttwo : function () {
$.ajax ({
url: '/index/getDistrict',
type: 'GET',
async: true,
data: {"pageSize":50},
dataType: 'json',
success: function (data) {
if (data.code == 200 && data.data != null) {
var str = '<option value="-1">邀请人所属部门</option>';
$.each(data.data, function(i,item) {
str += '<option value="'+item.id+'">'+item.district_name+'</option>';
});
$("#district_id2").html(str);
}
}
});
......
......@@ -17,9 +17,9 @@
</td>
<td>
[% if(it[item]["status"] == -1) { %]
激活
注册
[% }else if(it[item]["status"] == 0) { %]
已激活
注册
[% }else{ %]
删除
[% } %]
......
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