Commit 33a88da5 authored by agping's avatar agping

修改

parent 0b73b75e
......@@ -58,7 +58,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
},
//获取一级审核,二级审核,三级审核,结单不同的ajax请求url
switchTpl: function(){
switchType: function(){
switch (Number(this.mainTabIndex)){
case 0:
return 3;
......@@ -70,14 +70,14 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
return '';
}
},
switchUrl: function(){
switchTpl: function(){
switch (Number(this.mainTabIndex)){
case 0:
return '/index/reportListOne/1';
return 'realtimePerformance_list_tpl_one';
case 1:
return '/index/reportListTwo/2';
return 'realtimePerformance_list_tpl_two';
case 2:
return '/index/reportListThree/3';
return 'realtimePerformance_list_tpl_three';
default:
return '';
}
......@@ -85,15 +85,18 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
//获取一级审核,二级审核,三级审核,结单数据列表共用的方法
getList: function(pageNo){
console.count('bar');
var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo'))); //读取缓存
console.log(user_info_obj);
var params = {
'pageNo': pageNo,
'pageSize': bargain.pageSize,
'type':bargain.switchUrl(),
'type':bargain.switchType(),
'AuthToken':user_info_obj.AuthToken,
'agent_id':user_info_obj.id
};
$.ajax({
type: 'GET',
// url: bargain.switchUrl(),
url: /broker/selectPerformanceByTime,
url: '/broker/selectPerformanceByTime',
data: params,
timeout: 30000,
dataType: 'json',
......
......@@ -16,17 +16,17 @@
[% for(var item in it["list"]){ %]
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]">
<td class="text-center">
<a class="store-ranking" href="#modal-store" data-toggle="modal">[%= it["list"][item]['create_time'] %]</a>
<a class="store-ranking" href="#modal-store" data-toggle="modal">[%= it["list"][item]['district_name'] %]</a>
</td>
<td class="text-center">[%= it["list"][item]['is_open']?'是':'否' %]</td>
<td class="text-center">[%= it["list"][item]['internal_address'] %]</td>
<td class="text-center">[%= it["list"][item]['house_number'] %]</td>
<td class="text-center">[%= it["list"][item]['user_name'] %]</td>
<td class="text-center">[%= hideTel(it["list"][item]['user_phone']) %]</td>
<td class="text-center">[%= it["list"][item]['trade_type'] %]</td>
<td class="text-center">[%= it["list"][item]['commission'] %]</td>
<td class="text-center">[%= it["list"][item]['trade_type'] %]</td>
<td class="text-center">[%= it["list"][item]['commission'] %]</td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
<td class="text-center">[%= it["list"][item]['paylog'] %]</td>
<td class="text-center">[%= it["list"][item]['march_in_num'] %]</td>
<td class="text-center">[%= it["list"][item]['look_at_num'] %]</td>
<td class="text-center">[%= it["list"][item]['add_house_num'] %]</td>
<td class="text-center">[%= it["list"][item]['add_user_num'] %]</td>
<td class="text-center">[%= it["list"][item]['team_num'] %]</td>
</tr>
[% } %]
[% }else{ %]
......@@ -54,17 +54,17 @@
[% for(var item in it["list"]){ %]
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]">
<td class="text-center">
<a class="agent-ranking" href="#modal-agent" data-toggle="modal">[%= it["list"][item]['create_time'] %]</a>
<a class="store-ranking" href="#modal-store" data-toggle="modal">[%= it["list"][item]['district_name'] %]</a>
</td>
<td class="text-center">[%= it["list"][item]['is_open']?'是':'否' %]</td>
<td class="text-center">[%= it["list"][item]['internal_address'] %]</td>
<td class="text-center">[%= it["list"][item]['house_number'] %]</td>
<td class="text-center">[%= it["list"][item]['user_name'] %]</td>
<td class="text-center">[%= hideTel(it["list"][item]['user_phone']) %]</td>
<td class="text-center">[%= it["list"][item]['trade_type'] %]</td>
<td class="text-center">[%= it["list"][item]['commission'] %]</td>
<td class="text-center">[%= it["list"][item]['trade_type'] %]</td>
<td class="text-center">[%= it["list"][item]['commission'] %]</td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
<td class="text-center">[%= it["list"][item]['paylog'] %]</td>
<td class="text-center">[%= it["list"][item]['march_in_num'] %]</td>
<td class="text-center">[%= it["list"][item]['look_at_num'] %]</td>
<td class="text-center">[%= it["list"][item]['add_house_num'] %]</td>
<td class="text-center">[%= it["list"][item]['add_user_num'] %]</td>
<td class="text-center">[%= it["list"][item]['team_num'] %]</td>
</tr>
[% } %]
[% }else{ %]
......@@ -90,16 +90,15 @@
</tr>
[% for(var item in it["list"]){ %]
<tr data-id="[%= it['list'][item]['id'] %]" data-orderid="[%= it['list'][item]['order_id'] %]">
<td class="text-center">[%= it["list"][item]['create_time'] %]</td>
<td class="text-center">[%= it["list"][item]['is_open']?'是':'否' %]</td>
<td class="text-center">[%= it["list"][item]['internal_address'] %]</td>
<td class="text-center">[%= it["list"][item]['house_number'] %]</td>
<td class="text-center">[%= it["list"][item]['user_name'] %]</td>
<td class="text-center">[%= hideTel(it["list"][item]['user_phone']) %]</td>
<td class="text-center">[%= it["list"][item]['trade_type'] %]</td>
<td class="text-center">[%= it["list"][item]['commission'] %]</td>
<td class="text-center">[%= it["list"][item]['commission'] %]</td>
<td class="text-center">[%= it["list"][item]['district_name'] %]</a></td>
<td class="text-center">[%= it["list"][item]['performance_total'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
<td class="text-center">[%= it["list"][item]['bargain_sum'] %]</td>
<td class="text-center">[%= it["list"][item]['paylog'] %]</td>
<td class="text-center">[%= it["list"][item]['march_in_num'] %]</td>
<td class="text-center">[%= it["list"][item]['look_at_num'] %]</td>
<td class="text-center">[%= it["list"][item]['add_house_num'] %]</td>
<td class="text-center">[%= it["list"][item]['add_user_num'] %]</td>
</tr>
[% } %]
[% }else{ %]
......@@ -129,7 +128,7 @@
<td class="text-center">[%= it["list"][item]['internal_address'] %]</td>
<td class="text-center">[%= it["list"][item]['house_number'] %]</td>
<td class="text-center">[%= it["list"][item]['user_name'] %]</td>
<td class="text-center">[%= hideTel(it["list"][item]['user_phone']) %]</td>
<td class="text-center">[%= it["list"][item]['user_phone'] %]</td>
<td class="text-center">[%= it["list"][item]['trade_type'] %]</td>
<td class="text-center">[%= it["list"][item]['commission'] %]</td>
</tr>
......@@ -160,7 +159,7 @@
<td class="text-center">[%= it["list"][item]['internal_address'] %]</td>
<td class="text-center">[%= it["list"][item]['house_number'] %]</td>
<td class="text-center">[%= it["list"][item]['user_name'] %]</td>
<td class="text-center">[%= hideTel(it["list"][item]['user_phone']) %]</td>
<td class="text-center">[%= it["list"][item]['user_phone'] %]</td>
<td class="text-center">[%= it["list"][item]['trade_type'] %]</td>
<td class="text-center">[%= it["list"][item]['commission'] %]</td>
<td class="text-center">[%= it["list"][item]['commission'] %]</td>
......
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