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
2e77a22a
Commit
2e77a22a
authored
Jul 31, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
699275bf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
realtimePerformance.js
public/resource/js/realtimePerformance.js
+11
-11
real_time_performance_template_tpl.html
...resource/template/real_time_performance_template_tpl.html
+1
-1
No files found.
public/resource/js/realtimePerformance.js
View file @
2e77a22a
...
...
@@ -6,10 +6,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
/*每页显示多少条*/
mainTabIndex
:
0
,
detailTabIndex
:
0
,
bargain_id
:
''
,
order_id
:
0
,
//订单id
district_id
:
0
,
//部门id
panfangData
:
null
,
maidTotalCommission
:
0
,
//应收总佣金
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
...
...
@@ -105,9 +103,7 @@ 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
,
...
...
@@ -118,7 +114,6 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
'end_day'
:
$
(
'#maintable_end_time'
).
val
(),
'request_source_type'
:
1
,
'second_select'
:
0
};
$
.
ajax
({
type
:
'GET'
,
...
...
@@ -160,15 +155,22 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
//获取门店排行详情
getListStore
:
function
(
pageNo
){
console
.
count
(
'bar'
);
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
params
=
{
'pageNo'
:
pageNo
,
'pageSize'
:
bargain
.
pageSize
,
'type'
:
bargain
.
switchType
(),
'AuthToken'
:
user_info_obj
.
AuthToken
,
'agent_id'
:
user_info_obj
.
id
,
'start_day'
:
$
(
'#maintable_create_time'
).
val
(),
'end_day'
:
$
(
'#maintable_end_time'
).
val
(),
'request_source_type'
:
1
,
'second_select'
:
1
,
'second_id'
:
0
,
};
$
.
ajax
({
type
:
'GET'
,
url
:
bargain
.
switchUrl
()
,
url
:
'/broker/selectPerformanceByTime'
,
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
...
...
@@ -176,8 +178,6 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
tpl
=
bargain
.
switchTpl
();
console
.
log
(
tpl
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
'store_list_tpl'
).
innerHTML
);
$
(
"#store_details_list"
).
html
(
doTtmpl
(
data
.
data
));
...
...
public/resource/template/real_time_performance_template_tpl.html
View file @
2e77a22a
...
...
@@ -15,7 +15,7 @@
<
th
class
=
"text-center"
>
团队人数
<
/th
>
<
/tr
>
[
%
for
(
var
item
in
it
[
"list"
]){
%
]
<
tr
data
-
id
=
"[%= it['list'][item]['
id'] %]"
data
-
orderid
=
"[%= it['list'][item]['order
_id'] %]"
>
<
tr
data
-
id
=
"[%= it['list'][item]['
district
_id'] %]"
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
<
a
class
=
"store-ranking"
href
=
"#modal-store"
data
-
toggle
=
"modal"
>
[
%=
it
[
"list"
][
item
][
'district_name'
]
+
'-'
+
it
[
"list"
][
item
][
'name'
]
%
]
<
/a
>
...
...
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