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
d20efc80
Commit
d20efc80
authored
Aug 15, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
efbce62c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
realtimePerformance.js
public/resource/js/realtimePerformance.js
+9
-4
No files found.
public/resource/js/realtimePerformance.js
View file @
d20efc80
...
@@ -11,7 +11,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
...
@@ -11,7 +11,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
store_id_Two
:
0
,
//二级门店id
store_id_Two
:
0
,
//二级门店id
is_today_yeji
:
0
,
//默认搜索的不是今天 传参数0
is_today_yeji
:
0
,
//默认搜索的不是今天 传参数0
panfangData
:
null
,
panfangData
:
null
,
orderList
:
'data.data.list'
,
orderList
:
0
,
init
:
function
()
{
init
:
function
()
{
//初始化dot
//初始化dot
$
(
document
.
body
).
append
(
template
);
$
(
document
.
body
).
append
(
template
);
...
@@ -86,14 +86,14 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
...
@@ -86,14 +86,14 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
_doc
.
on
(
'click'
,
'.positive-sequence-yeji'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'.positive-sequence-yeji'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
realtime
.
orderList
=
'data.data.list.reverse()'
;
realtime
.
orderList
=
1
;
realtime
.
getList
(
1
);
realtime
.
getList
(
1
);
});
});
//倒序
//倒序
_doc
.
on
(
'click'
,
'.reverse-order-yeji'
,
function
(
e
)
{
_doc
.
on
(
'click'
,
'.reverse-order-yeji'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
preventDefault
();
e
.
stopPropagation
();
e
.
stopPropagation
();
realtime
.
orderList
=
'data.data.list'
;
realtime
.
orderList
=
0
;
realtime
.
getList
(
1
);
realtime
.
getList
(
1
);
});
});
...
@@ -155,7 +155,12 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
...
@@ -155,7 +155,12 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
var
tpl
=
realtime
.
switchTpl
();
var
tpl
=
realtime
.
switchTpl
();
console
.
log
(
tpl
);
console
.
log
(
tpl
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
tpl
).
innerHTML
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
tpl
).
innerHTML
);
$
(
"#maintable_list"
).
html
(
doTtmpl
(
eval
(
realtime
.
orderList
)));
if
(
realtime
.
orderList
==
0
){
$
(
"#maintable_list"
).
html
(
doTtmpl
(
data
.
data
.
list
.
slice
(
0
,
19
)));
}
if
(
realtime
.
orderList
==
1
){
$
(
"#maintable_list"
).
html
(
doTtmpl
(
data
.
data
.
list
.
reverse
().
slice
(
0
,
19
)));
}
//获取统计时间
//获取统计时间
$
(
'#rank_start_day'
).
html
(
data
.
data
.
start_time
);
$
(
'#rank_start_day'
).
html
(
data
.
data
.
start_time
);
$
(
'#rank_end_day'
).
html
(
data
.
data
.
end_time
);
$
(
'#rank_end_day'
).
html
(
data
.
data
.
end_time
);
...
...
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