Commit e40eadd1 authored by agping's avatar agping

业绩对比优化

parent a9170351
......@@ -99,7 +99,7 @@
<tr>
<td colspan="11">
<form action="" method="get" id="form_search">
<span class="fore-span ld-Marheight">对比月份(至少选择3个月):</span>
<span class="fore-span ld-Marheight">对比月份:</span>
<input id="count_time1" class="form-control btn4 ld-Marheight" type="text" placeholder="请选择"
onClick="WdatePicker({el:this,dateFmt:'yyyy-MM',readOnly:'readonly' })">
<span class="fore-span ld-Marheight">-</span>
......@@ -132,6 +132,7 @@
</tr>-->
</thead>
</table>
<div class="search-con text-danger" >暂无数据,请输入时间进行搜索</div>
<!--<div style="width: 680px;height: 700px;overflow-y: scroll;">-->
<table class="table table-bordered table-hover table-condensed" style="width: 650px;font-size: 13px;">
<tbody id="users_list" class="text-center">
......
......@@ -10,7 +10,7 @@ define (['doT', 'text!temp/performanceContrast_template_tpl.html','ckfinder','ck
init: function () {
//初始化dot
$ ("body").append (template);
user.getList ();
// user.getList ();
user.event ();
},
event: function () {
......@@ -89,14 +89,48 @@ define (['doT', 'text!temp/performanceContrast_template_tpl.html','ckfinder','ck
},
//获取业绩对比
getList: function (pageNo) {
$(".search-con").hide();//隐藏提示内容
user.pageNo = pageNo;
var params = {};
params.time_start = $("#count_time1").val();
params.time_end = $("#count_time2").val();
params.performance_time_start = $("#count_time3").val();
params.performance_time_end = $("#count_time4").val();;
params.real_performance_time_start = $("#count_time5").val();;
params.real_performance_time_end = $("#count_time6").val();;
params.real_performance_time_start = $("#count_time3").val();
params.real_performance_time_end = $("#count_time4").val();
params.performance_time_start = $("#count_time5").val();
params.performance_time_end = $("#count_time6").val();
if(!params.time_start){
alert('请选择对比月份');
return;
}
if(!params.time_end){
alert('请选择对比月份');
return;
}
if(!params.real_performance_time_start){
alert('请选择实收对比时间');
return;
}
if(!params.real_performance_time_end){
alert('请选择实收对比时间');
return;
}
if(!params.performance_time_start){
alert('请选择业绩对比时间');
return;
}
if(!params.performance_time_end){
alert('请选择业绩对比时间');
return;
}
$.ajax ({
url: 'https://pre2.tonglianjituan.com/index/performanceStatistics',
type: 'GET',
......
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