Commit c8fb7853 authored by agping's avatar agping

经纪人修改

parent 6b0a8950
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<table class="table table-striped table-bordered table-hover table-condensed"> <table class="table table-striped table-bordered table-hover table-condensed">
<thead> <thead>
<tr> <tr>
<td colspan="11"> <td colspan="14">
<form id="form_search"> <form id="form_search">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="industry_type" placeholder="角色" type="text" value="" name="groupname"> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="industry_type" placeholder="角色" type="text" value="" name="groupname">
<!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="门店" <!--<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="dish" placeholder="门店"
...@@ -52,38 +52,21 @@ ...@@ -52,38 +52,21 @@
</form> </form>
</td> </td>
</tr> </tr>
<tr> <tr class="text-center">
<th>注册时间</th> <th class="text-center">注册时间</th>
<th>用户ID</th> <th>用户ID</th>
<th>用户头像</th> <th>用户头像</th>
<th>账号类型</th>
<th>部门</th>
<th>门店</th>
<th>姓名</th> <th>姓名</th>
<th>手机号</th> <th>手机号</th>
<th>角色</th> <th>角色</th>
<!--2.2版本 --> <!--2.2版本 -->
<th>评价次数</th> <th>评价次数</th>
<th>分数</th> <th>分数</th>
<th>操作</th> <th class="text-center">操作</th>
</tr> </tr>
</thead>
<tbody id="agentlist">
</form>
</td>
</tr>
<tr>
<th>注册时间</th>
<th>用户ID</th>
<th>用户头像</th>
<th>姓名</th>
<th>手机号</th>
<th>角色</th>
<!--2.2版本 -->
<!--<th>评价次数</th>-->
<!--<th>分数</th>-->
<th>操作</th>
</tr>
</thead>
<tbody id="agentlist"> <tbody id="agentlist">
</tbody> </tbody>
......
...@@ -521,8 +521,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp ...@@ -521,8 +521,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
// console.log(data.data[0].agent_evaluate_num); // console.log(data.data[0].agent_evaluate_num);
$("#agentlist tr").each(function(e) { $("#agentlist tr").each(function(e) {
//e代表索引 从0开始 eq(0)就是第一行 //e代表索引 从0开始 eq(0)就是第一行
$("#agentlist").find("tr").eq(e).find("td").eq(6).html(data.data[e].agent_evaluate_num); //获取一列的值 $("#agentlist").find("tr").eq(e).find("td").eq(9).html(data.data[e].agent_evaluate_num); //获取一列的值
$("#agentlist").find("tr").eq(e).find("td").eq(7).html(data.data[e].agent_evaluate_fraction); $("#agentlist").find("tr").eq(e).find("td").eq(10).html(data.data[e].agent_evaluate_fraction);
}) })
} }
} }
......
...@@ -2,22 +2,36 @@ ...@@ -2,22 +2,36 @@
[% if(it) { %] [% if(it) { %]
[% for(var item in it){ %] [% for(var item in it){ %]
<tr data-groupname="[%= it[item]['groupname'] %]" class="text-center"> <tr data-groupname="[%= it[item]['groupname'] %]" class="text-center">
<td>[%= it[item]["create_time"] %]</td> <td class="text-center">[%= it[item]["create_time"] %]</td>
<td>[%= it[item]["id"] %]</td> <td class="text-center">[%= it[item]["id"] %]</td>
<td> <td class="text-center">
<input type="hidden" value='[%= it[item]["agent_img"] %]'> <input type="hidden" value='[%= it[item]["agent_img"] %]'>
<img src='[%= it[item]["agent_img"] %]' class="diagram-image J_preview" <img src='[%= it[item]["agent_img"] %]' class="diagram-image J_preview"
data-bimg='[%= it[item]["agent_img"] %]'> data-bimg='[%= it[item]["agent_img"] %]'>
</td> </td>
<td>[%= it[item]["level"] %]</td> <!--<td>[%= it[item]["level"] %]</td>-->
<td>[%= it[item]["district_name"] %]</td> <td class="text-center">
<td>[%= it[item]["store_name"] %]</td> [% if(it[item]["level"] == 10) { %]
<td>[%= it[item]["name"] %]</td> 经纪人
<td>[%= it[item]["phone"] %]</td> [% } %]
<td>[%= it[item]["groupname"] %]</td> [% if(it[item]["level"] == 20) { %]
店长
[% } %]
[% if(it[item]["level"] == 30) { %]
总监
[% } %]
[% if(it[item]["level"] == 40) { %]
总监和店长
[% } %]
</td>
<td class="text-center">[%= it[item]["district_name"] %]</td>
<td class="text-center">[%= it[item]["store_name"] %]</td>
<td class="text-center">[%= it[item]["name"] %]</td>
<td class="text-center">[%= it[item]["phone"] %]</td>
<td class="text-center">[%= it[item]["groupname"] %]</td>
<td class="number-evaluation text-center" data-id='[%= it[item]["id"] %]'>--</td> <td class="number-evaluation text-center" data-id='[%= it[item]["id"] %]'>--</td>
<td class="score-evaluation text-center" data-id='[%= it[item]["id"] %]'>--</td> <td class="score-evaluation text-center" data-id='[%= it[item]["id"] %]'>--</td>
<td> <td class="text-center">
<a class="btn1 btn-success edit" href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>编辑</a> <a class="btn1 btn-success edit" href="#modal-edit" data-toggle="modal" data-id='[%= it[item]["id"] %]'>编辑</a>
[% if(it[item]["status"] == 0) { %] [% if(it[item]["status"] == 0) { %]
......
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