Commit abaa4f8f authored by agping's avatar agping

后台 业绩排行榜 排版修改 添加城市筛选

parent b4e35a15
...@@ -74,6 +74,11 @@ ...@@ -74,6 +74,11 @@
margin-top: 7px; margin-top: 7px;
float: left; float: left;
} }
.performance-ranking-head{
float: left;
margin-right: 30px;
margin-top: 10px;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
...@@ -83,7 +88,12 @@ ...@@ -83,7 +88,12 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading breadcrumb"> <div class="panel-heading breadcrumb">
<li> <li>
<a href="#"><span id="performance_ranking">业绩排行</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="rank_start_day"></span>&nbsp;&nbsp;<span id="rank_end_day"></span></a> <a href="#" class="performance-ranking-head" style=""><span id="performance_ranking">业绩排行</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="rank_start_day"></span>&nbsp;&nbsp;<span id="rank_end_day"></span></a>
<select class="form-control btn2-city" id="realtime_city_choose" style="display: block;margin-top: 6px;">
<option value="">全部</option>
<option value="上海市">上海市</option>
<option value="杭州市">杭州市</option>
</select>
</li> </li>
</div> </div>
<div class="panel-body"> <div class="panel-body">
......
...@@ -25,7 +25,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -25,7 +25,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
init: function() { init: function() {
//初始化dot //初始化dot
$(document.body).append(template + template_tax); $(document.body).append(template + template_tax);
realtime.getList(1); //初始化城市 区域筛选
realtime.initializationCityFunction();
realtime.event(); realtime.event();
}, },
event: function() { event: function() {
...@@ -413,7 +414,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -413,7 +414,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
'district_id':$('#district_id').val(), 'district_id':$('#district_id').val(),
'store_id':$('#guest_stores').val(), 'store_id':$('#guest_stores').val(),
'agent_id':realtime.agent_id_choose, 'agent_id':realtime.agent_id_choose,
'order':realtime.order_ranking 'order':realtime.order_ranking,
'city':$('#realtime_city_choose').val()
}; };
$.ajax({ $.ajax({
...@@ -461,7 +463,20 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -461,7 +463,20 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
} }
}); });
}, },
//初始化 城市
initializationCityFunction: function(params) {
$.ajax({
url: '/index/getCurrentCity',
type: 'GET',
async: true,
data: params,
dataType: 'json',
success: function(data) {
$('#realtime_city_choose').val(data.data.city);
realtime.getList(1);
}
});
},
//获取门店排行详情 //获取门店排行详情
getListStore: function(pageNo){ getListStore: function(pageNo){
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存 var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
......
...@@ -4,14 +4,15 @@ ...@@ -4,14 +4,15 @@
<tr class="maintable-tr-bar"> <tr class="maintable-tr-bar">
<th class="text-center">排名</th> <th class="text-center">排名</th>
<th class="text-center">部门</th> <th class="text-center">部门</th>
<th class="text-center">业绩(元)<span class="glyphicon glyphicon-triangle-bottom positive-sequence-yeji"></span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></span></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>
<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>
<th class="text-center">报备数</th>
<th class="text-center">进场数</th>
<th class="text-center">收款数</th>
<th class="text-center">成交单数</th>
<th class="text-center">业绩(元)<span class="glyphicon glyphicon-triangle-bottom positive-sequence-yeji"></span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></span></th>
</tr> </tr>
[% for(var item in it){ %] [% for(var item in it){ %]
<tr data-id="[%= it[item]['district_id'] %]"> <tr data-id="[%= it[item]['district_id'] %]">
...@@ -19,15 +20,14 @@ ...@@ -19,15 +20,14 @@
<td class="text-center"> <td class="text-center">
<a class="store-ranking" href="#modal-store" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['district_name']%]</a> <a class="store-ranking" href="#modal-store" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['district_name']%]</a>
</td> </td>
<td class="text-center"><a class="performance-number-details performance-district-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]" >[%= it[item]['performance_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details performance-district-click" href="#modal-deal-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-district-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details performance-district-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details performance-district-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details performance-district-click" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="newuser-number-details performance-district-click" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
<td class="text-center"><a class="team-number-details performance-district-click" href="#modal-team-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['team_num'] %]</a></td> <td class="text-center"><a class="team-number-details performance-district-click" href="#modal-team-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['team_num'] %]</a></td>
<td class="text-center"><a class="newuser-number-details performance-district-click" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details performance-district-click" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details performance-district-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details performance-district-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-district-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details performance-district-click" href="#modal-deal-number-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="performance-number-details performance-district-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['district_id'] %]" >[%= it[item]['performance_total'] %]</a></td>
</tr> </tr>
[% } %] [% } %]
[% }else{ %] [% }else{ %]
...@@ -45,14 +45,15 @@ ...@@ -45,14 +45,15 @@
<tr class="maintable-tr-bar"> <tr class="maintable-tr-bar">
<th class="text-center">排名</th> <th class="text-center">排名</th>
<th class="text-center">门店</th> <th class="text-center">门店</th>
<th class="text-center">业绩(元)<span class="glyphicon glyphicon-triangle-bottom positive-sequence-yeji"></span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></span></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>
<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>
<th class="text-center">报备数</th>
<th class="text-center">进场数</th>
<th class="text-center">收款数</th>
<th class="text-center">成交单数</th>
<th class="text-center">业绩(元)<span class="glyphicon glyphicon-triangle-bottom positive-sequence-yeji"></span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></span></th>
</tr> </tr>
[% for(var item in it){ %] [% for(var item in it){ %]
<tr> <tr>
...@@ -60,14 +61,14 @@ ...@@ -60,14 +61,14 @@
<td class="text-center"> <td class="text-center">
<a class="agent-ranking" href="#modal-agent" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['district_name']+'-'+it[item]['store_name']%]</a> <a class="agent-ranking" href="#modal-agent" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['district_name']+'-'+it[item]['store_name']%]</a>
</td> </td>
<td class="text-center"><a class="performance-number-details performance-store-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]" >[%= it[item]['performance_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details performance-store-click" href="#modal-deal-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-store-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]" >[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details performance-store-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details performance-store-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details performance-store-click" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="newuser-number-details performance-store-click" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
<td class="text-center"><a class="team-number-details" href="#modal-team-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['team_num'] %]</a></td> <td class="text-center"><a class="team-number-details" href="#modal-team-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['team_num'] %]</a></td>
<td class="text-center"><a class="newuser-number-details performance-store-click" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details performance-store-click" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details performance-store-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details performance-store-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-store-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]" >[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details performance-store-click" href="#modal-deal-number-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="performance-number-details performance-store-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['store_id'] %]" >[%= it[item]['performance_total'] %]</a></td>
</tr> </tr>
[% } %] [% } %]
[% }else{ %] [% }else{ %]
...@@ -85,25 +86,27 @@ ...@@ -85,25 +86,27 @@
<tr class="maintable-tr-bar"> <tr class="maintable-tr-bar">
<th class="text-center">排名</th> <th class="text-center">排名</th>
<th class="text-center">经纪人</th> <th class="text-center">经纪人</th>
<th class="text-center">业绩(元)<span class="glyphicon glyphicon-triangle-bottom positive-sequence-yeji"></span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></span></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>
<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>
<th class="text-center">收款数</th>
<th class="text-center">成交单数</th>
<th class="text-center">业绩(元)<span class="glyphicon glyphicon-triangle-bottom positive-sequence-yeji"></span><span class="glyphicon glyphicon-triangle-top reverse-order-yeji"></span></th>
</tr> </tr>
[% for(var item in it){ %] [% for(var item in it){ %]
<tr data-id="[%= it[item]['id'] %]" data-orderid="[%= it[item]['order_id'] %]"> <tr data-id="[%= it[item]['id'] %]" data-orderid="[%= it[item]['order_id'] %]">
<td class="text-center">[%= it[item]['index_'] %]</td> <td class="text-center">[%= it[item]['index_'] %]</td>
<td class="text-center">[%= it[item]['district_name']+'-'+it[item]['store_name']+'-'+it[item]['name'] %]</a></td> <td class="text-center">[%= it[item]['district_name']+'-'+it[item]['store_name']+'-'+it[item]['name'] %]</a></td>
<td class="text-center"><a class="performance-number-details performance-person-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['performance_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details performance-person-click" href="#modal-deal-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-person-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details performance-person-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details performance-person-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details performance-person-click" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="newuser-number-details performance-person-click" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td> <td class="text-center"><a class="newuser-number-details performance-person-click" href="#modal-newuser-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['add_user_num_total'] %]</a></td>
<td class="text-center"><a class="newshop-number-details performance-person-click" href="#modal-newshop-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['add_house_num_total'] %]</a></td>
<td class="text-center"><a class="reported-number-details performance-person-click" href="#modal-reported-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['look_at_num_total'] %]</a></td>
<td class="text-center"><a class="approach-number-details performance-person-click" href="#modal-approach-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['march_in_num_total'] %]</a></td>
<td class="text-center"><a class="collection-number-details performance-person-click" href="#modal-collection-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['paylog_total'] %]</a></td>
<td class="text-center"><a class="deal-number-details performance-person-click" href="#modal-deal-number-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['bargain_sum_total'] %]</a></td>
<td class="text-center"><a class="performance-number-details performance-person-click" href="#modal-performance-details" data-toggle="modal" data-id="[%= it[item]['agent_id'] %]">[%= it[item]['performance_total'] %]</a></td>
</tr> </tr>
[% } %] [% } %]
[% }else{ %] [% }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