Commit dfa30ae5 authored by agping's avatar agping

业绩排行修改

parent 7d80476a
...@@ -61,6 +61,9 @@ ...@@ -61,6 +61,9 @@
width: 9%!important; width: 9%!important;
} }
.clear{
clear: both;
}
</style> </style>
<div id="page-content-wrapper"> <div id="page-content-wrapper">
<div class="container"> <div class="container">
...@@ -90,10 +93,12 @@ ...@@ -90,10 +93,12 @@
<input class="form-control btn2 ld-Marheight btn2-2" data-rule-phoneus="false" data-rule-required="false" id="user_name" placeholder="修改人姓名" type="text" value=""> <input class="form-control btn2 ld-Marheight btn2-2" data-rule-phoneus="false" data-rule-required="false" id="user_name" placeholder="修改人姓名" type="text" value="">
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_phone" placeholder="修改人手机号" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="user_phone" placeholder="修改人手机号" type="text" value="">
<div class="clear">
</div>
<input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="bargain_id" placeholder="成交报告id" type="text" value=""> <input class="form-control btn2 ld-Marheight" data-rule-phoneus="false" data-rule-required="false" id="bargain_id" placeholder="成交报告id" type="text" value="">
<br/> <span class="btn btn-info btn3 ld-Marheight" id="search">搜索</span>
<span class="btn btn-info btn3" id="search">搜索</span> <span class="btn btn-info btn3 ld-Marheight" id="reset">重置</span>
<span class="btn btn-info btn3" id="reset">重置</span>
<!--<span class="btn btn-info btn3" id="export">导出excel</span>--> <!--<span class="btn btn-info btn3" id="export">导出excel</span>-->
</form> </form>
</td> </td>
......
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,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="deal_details_time_start"></span>&nbsp;&nbsp;<span id="deal_details_time_end"></span></a>
</h4> </h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
......
...@@ -147,6 +147,13 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -147,6 +147,13 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
e.stopPropagation(); e.stopPropagation();
realtime.getPerformanceDetails(1); realtime.getPerformanceDetails(1);
}); });
//部门-成交单数-弹出框
_doc.on('click', '.deal-number-details', function(e) {
e.preventDefault();
e.stopPropagation();
realtime.district_store_agent_id = $(this).attr("data-id");
realtime.getDealDetails(1);
});
//部门-收款数-弹出框 //部门-收款数-弹出框
_doc.on('click', '.collection-number-details', function(e) { _doc.on('click', '.collection-number-details', function(e) {
e.preventDefault(); e.preventDefault();
...@@ -514,6 +521,51 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r ...@@ -514,6 +521,51 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
}); });
}, },
//部门-收款数-弹出框-详情
getDealDetails: 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,
'AuthToken':user_info_obj.AuthToken
};
$.ajax({
type: 'GET',
url: '/broker/bargainSumPcInfo',
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('deal_number_details_tpl').innerHTML);
$("#deal_number_details_list").html(doTtmpl(data.data));
//获取统计时间
$('#deal_details_time_start').html(realtime.time_search_start);
$('#deal_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('请求超时');
};
}
});
},
//部门-收款数-弹出框-详情 //部门-收款数-弹出框-详情
getcollectionNumberDetails: function(pageNo){ getcollectionNumberDetails: function(pageNo){
var params = { var params = {
......
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