Commit 5cc2ecc5 authored by agping's avatar agping

业绩排行修改

parent b261408e
...@@ -224,7 +224,7 @@ ...@@ -224,7 +224,7 @@
× ×
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
<a href="#"><span id="performance_ranking_agent_two">收款数时间:</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="rank_start_day_agent_two"></span>&nbsp;&nbsp;<span id="rank_end_day_agent_two"></span></a> <a href="#"><span id="performance_ranking_agent_two">收款数时间:</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="collection_details_time_start"></span>&nbsp;&nbsp;<span id="collection_details_time_end"></span></a>
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
...@@ -247,7 +247,7 @@ ...@@ -247,7 +247,7 @@
× ×
</button> </button>
<h4 class="modal-title"> <h4 class="modal-title">
<a href="#"><span id="performance_ranking_agent_two">进场数时间:</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="rank_start_day_agent_two"></span>&nbsp;&nbsp;<span id="rank_end_day_agent_two"></span></a> <a href="#"><span id="performance_ranking_agent_two">进场数时间:</span>&nbsp;&nbsp;&nbsp;&nbsp;<span id="approach_details_time_start"></span>&nbsp;&nbsp;<span id="approach_details_time_end"></span></a>
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
......
...@@ -124,6 +124,13 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -124,6 +124,13 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
realtime.district_store_agent_id = $(this).attr("data-id"); realtime.district_store_agent_id = $(this).attr("data-id");
realtime.getcollectionNumberDetails(1); realtime.getcollectionNumberDetails(1);
}); });
//部门-进场数-弹出框
_doc.on('click', '.approach-number-details', function(e) {
e.preventDefault();
e.stopPropagation();
realtime.district_store_agent_id = $(this).attr("data-id");
realtime.getapproachNumberDetails(1);
});
//点击详情按钮事件,获取报告详情 //点击详情按钮事件,获取报告详情
_doc.on('click', '.details-btn', function() { _doc.on('click', '.details-btn', function() {
...@@ -480,11 +487,53 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -480,11 +487,53 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
success: function(data) { success: function(data) {
if(typeof data === 'object') { if(typeof data === 'object') {
if(data.code == 200) { if(data.code == 200) {
var doTtmpl = doT.template(document.getElementById('performance_details_tpl').innerHTML); var doTtmpl = doT.template(document.getElementById('collection_number_details_tpl').innerHTML);
$("#performance_details_list").html(doTtmpl(data.data.data)); $("#collection_number_details_list").html(doTtmpl(data.data));
//获取统计时间 //获取统计时间
$('#performance_details_time_start').html(realtime.time_search_start); $('#collection_details_time_start').html(realtime.time_search_start);
$('#performance_details_time_end').html(realtime.time_search_end); $('#collection_details_time_end').html(realtime.time_search_end);
} else {
alert(data['msg']);
};
} else {
alert('数据错误');
};
},
error: function() {
alert('error');
},
complete: function(xhr, textStatus) {
if(textStatus === 'timeout') {
alert('请求超时');
};
}
});
},
//部门-进场-弹出框-详情
getapproachNumberDetails: function(pageNo){
var params = {
'id': realtime.district_store_agent_id,
'type': realtime.switchType(),
'start_time': realtime.time_search_start,
'end_time': realtime.time_search_end
};
$.ajax({
type: 'GET',
url: '/broker/housingResourcePcInfo',
data: params,
timeout: 30000,
dataType: 'json',
beforeSend: function() {},
success: function(data) {
if(typeof data === 'object') {
if(data.code == 200) {
var doTtmpl = doT.template(document.getElementById('approach_number_details_tpl').innerHTML);
$("#approach_number_details_list").html(doTtmpl(data.data));
//获取统计时间
$('#approach_details_time_start').html(realtime.time_search_start);
$('#approach_details_time_end').html(realtime.time_search_end);
} else { } else {
alert(data['msg']); alert(data['msg']);
......
...@@ -970,7 +970,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind ...@@ -970,7 +970,7 @@ define(['doT', 'text!temp/user_template_tpl.html', 'css!style/home.css', 'ckfind
success: function(data) { success: function(data) {
if(typeof data === 'object') { if(typeof data === 'object') {
if (data.code == 200) { if (data.code == 200) {
_backPhone = data['data']['data']['phone']; _backPhone = data['data']['phone'];
_temp_follow_id = data['data']['follow_id'];//临时的跟进id _temp_follow_id = data['data']['follow_id'];//临时的跟进id
console.log(_backPhone); console.log(_backPhone);
$('.call-hide-area>p:nth-of-type(1)>span').html(_selectPhone); $('.call-hide-area>p:nth-of-type(1)>span').html(_selectPhone);
......
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