Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
416a8eba
Commit
416a8eba
authored
Oct 11, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
9ecf3e23
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
7 deletions
+71
-7
realtimePerformance.html
application/index/view/realtime/realtimePerformance.html
+1
-0
performance_subsidiary.js
public/resource/js/performance_subsidiary.js
+7
-7
realtimePerformance.js
public/resource/js/realtimePerformance.js
+63
-0
No files found.
application/index/view/realtime/realtimePerformance.html
View file @
416a8eba
...
...
@@ -109,6 +109,7 @@
<span
class=
"btn btn-primary btn3 search left"
id=
"maintable_search"
>
搜索
</span>
<span
class=
"btn btn-primary btn3 left"
id=
"maintable_reset"
>
重置
</span>
<span
class=
"btn btn-primary btn3 left"
id=
"export"
>
导出报表
</span>
<!--<span class="btn btn-info btn3" id="maintable_export">导出excel</span>-->
</form>
</td>
...
...
public/resource/js/performance_subsidiary.js
View file @
416a8eba
...
...
@@ -1354,15 +1354,15 @@ define(['doT','text!temp/performance_subsidiary_template_tpl.html', 'text!temp/r
maintableExport
:
function
(
pageNo
)
{
var
shop_type
=
$
(
'#maintable_shop_type_yeji'
).
val
();
var
trade_type
=
$
(
'#maintable_deal_type'
).
val
();
var
create_time_start
=
$
.
trim
(
$
(
'#maintable_create_time'
).
val
()
);
var
create_time_end
=
$
.
trim
(
$
(
'#maintable_end_time'
).
val
()
);
var
landmark
=
$
.
trim
(
$
(
'#maintable_internal_address'
).
val
()
);
var
house_id
=
$
.
trim
(
$
(
'#maintable_shop_num'
).
val
()
);
var
create_time_start
=
$
(
'#maintable_create_time'
).
val
(
);
var
create_time_end
=
$
(
'#maintable_end_time'
).
val
(
);
var
landmark
=
$
(
'#maintable_internal_address'
).
val
(
);
var
house_id
=
$
(
'#maintable_shop_num'
).
val
(
);
var
district_id
=
$
(
"select[name='district_id'] option:selected"
).
val
();
var
store_id
=
$
(
"select[name='store_id'] option:selected"
).
val
();
var
name
=
$
.
trim
(
$
(
'#agent_name'
).
val
()
);
var
phone
=
$
.
trim
(
$
(
'#agent_phone'
).
val
()
);
var
bargain_id
=
$
.
trim
(
$
(
'#bargain_id'
).
val
()
);
var
name
=
$
(
'#agent_name'
).
val
(
);
var
phone
=
$
(
'#agent_phone'
).
val
(
);
var
bargain_id
=
$
(
'#bargain_id'
).
val
(
);
window
.
open
(
'/index/getPerformanceInfoExcel?'
+
'shop_type='
+
shop_type
+
'&trade_type='
+
trade_type
+
'&create_time_start='
+
create_time_start
+
'&create_time_end='
+
create_time_end
+
'&landmark='
+
landmark
+
'&house_id='
+
house_id
+
'&district_id='
+
district_id
+
'&store_id='
+
store_id
+
'&name='
+
name
+
'&phone='
+
phone
);
},
// 获取客户详情
...
...
public/resource/js/realtimePerformance.js
View file @
416a8eba
...
...
@@ -92,6 +92,22 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
realtime
.
agent_id_choose
=
''
;
//将业绩排行的 经纪人id置空
}
realtime
.
getList
(
1
);
});
//导出列表事件
_doc
.
on
(
'click'
,
'#export'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
if
(
realtime
.
mainTabIndex
==
0
){
realtime
.
exportListDistrict
();
}
if
(
realtime
.
mainTabIndex
==
1
){
realtime
.
exportListStore
();
}
if
(
realtime
.
mainTabIndex
==
2
){
realtime
.
exportListPerson
();
}
});
//点击部门列表-参数初始化
_doc
.
on
(
'click'
,
'.performance-district-click'
,
function
(
e
){
...
...
@@ -339,6 +355,53 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
// realtime.agents_id = $(this).attr("data-id");
// };
// },
// 导出列表 部门排行
exportListDistrict
:
function
(
pageNo
)
{
realtime
.
pageNo
=
pageNo
;
var
params
=
{};
var
is_excel
=
1
;
var
start_day
=
$
.
trim
(
$
(
'#maintable_create_time'
).
val
());
var
end_day
=
$
(
'#maintable_end_time'
).
val
();
var
end_time
=
$
(
'#end_date'
).
val
();
var
store_id
=
$
(
'#guest_stores'
).
val
();
var
district_id
=
$
(
'#district_id'
).
val
();
var
agent_id
=
realtime
.
agent_id_choose
;
var
order
=
realtime
.
order_ranking
;
window
.
open
(
'/index/selectDistrictPerformance?'
+
'is_excel='
+
is_excel
+
'&start_day='
+
start_day
+
'&end_day='
+
end_day
+
'&district_id='
+
district_id
+
'&store_id='
+
store_id
+
'&agent_id='
+
agent_id
+
'&order='
+
order
);
},
// 导出列表 门店排行
exportListStore
:
function
(
pageNo
)
{
realtime
.
pageNo
=
pageNo
;
var
params
=
{};
var
is_excel
=
1
;
var
start_day
=
$
.
trim
(
$
(
'#maintable_create_time'
).
val
());
var
end_day
=
$
(
'#maintable_end_time'
).
val
();
var
end_time
=
$
(
'#end_date'
).
val
();
var
store_id
=
$
(
'#guest_stores'
).
val
();
var
district_id
=
$
(
'#district_id'
).
val
();
var
agent_id
=
realtime
.
agent_id_choose
;
var
order
=
realtime
.
order_ranking
;
window
.
open
(
'/index/selectStorePerformance?'
+
'is_excel='
+
is_excel
+
'&start_day='
+
start_day
+
'&end_day='
+
end_day
+
'&district_id='
+
district_id
+
'&store_id='
+
store_id
+
'&agent_id='
+
agent_id
+
'&order='
+
order
);
},
// 导出列表 个人排行
exportListPerson
:
function
(
pageNo
)
{
realtime
.
pageNo
=
pageNo
;
realtime
.
pageNo
=
pageNo
;
var
params
=
{};
var
is_excel
=
1
;
var
start_day
=
$
.
trim
(
$
(
'#maintable_create_time'
).
val
());
var
end_day
=
$
(
'#maintable_end_time'
).
val
();
var
end_time
=
$
(
'#end_date'
).
val
();
var
store_id
=
$
(
'#guest_stores'
).
val
();
var
district_id
=
$
(
'#district_id'
).
val
();
var
agent_id
=
realtime
.
agent_id_choose
;
var
order
=
realtime
.
order_ranking
;
window
.
open
(
'/index/selectIndividualPerformance?'
+
'is_excel='
+
is_excel
+
'&start_day='
+
start_day
+
'&end_day='
+
end_day
+
'&district_id='
+
district_id
+
'&store_id='
+
store_id
+
'&agent_id='
+
agent_id
+
'&order='
+
order
);
},
//获取部门业绩 门店业绩 个人业绩 的共用方法
getList
:
function
(
pageNo
){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment