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
1169fb05
Commit
1169fb05
authored
Oct 23, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩排行 加城市 筛选
parent
a659b4d9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
9 deletions
+42
-9
realtimePerformance.html
application/index/view/realtime/realtimePerformance.html
+2
-5
realtimePerformance.js
public/resource/js/realtimePerformance.js
+40
-4
No files found.
application/index/view/realtime/realtimePerformance.html
View file @
1169fb05
...
...
@@ -89,11 +89,8 @@
<div
class=
"panel-heading breadcrumb"
>
<li>
<a
href=
"#"
class=
"performance-ranking-head"
style=
""
><span
id=
"performance_ranking"
>
业绩排行
</span>
<span
id=
"rank_start_day"
></span>
至
<span
id=
"rank_end_day"
></span></a>
<!--<select class="form-control btn2-city" id="realtime_city_choose" style="display: block;margin-top: 6px;">
<option value="">全部</option>
<option value="上海市">上海市</option>
<option value="杭州市">杭州市</option>
</select>-->
<select
class=
"form-control btn2-city"
id=
"realtime_city_choose"
style=
"display: block;margin-top: 6px;"
>
</select>
</li>
</div>
<div
class=
"panel-body"
>
...
...
public/resource/js/realtimePerformance.js
View file @
1169fb05
...
...
@@ -25,8 +25,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
+
template_tax
);
//初始化
城市 区域
筛选
realtime
.
initializationCityFunction
();
//初始化
站点城市
筛选
realtime
.
getSiteTags
();
realtime
.
event
();
},
event
:
function
()
{
...
...
@@ -414,8 +414,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
'district_id'
:
$
(
'#district_id'
).
val
(),
'store_id'
:
$
(
'#guest_stores'
).
val
(),
'agent_id'
:
realtime
.
agent_id_choose
,
'order'
:
realtime
.
order_ranking
// 'city
':$('#realtime_city_choose').val()
'order'
:
realtime
.
order_ranking
,
'site_id
'
:
$
(
'#realtime_city_choose'
).
val
()
};
$
.
ajax
({
...
...
@@ -463,6 +463,42 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'text!temp/r
}
});
},
//获取站点 标签
getSiteTags
:
function
()
{
$
.
ajax
({
type
:
'GET'
,
url
:
'/index/getSiteList'
,
data
:
{},
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
_data
)
{
if
(
typeof
_data
===
'object'
)
{
if
(
_data
[
'code'
]
==
'200'
)
{
var
_str
=
'<option value="">城市筛选</option>'
;
$
.
each
(
_data
.
data
.
list
,
function
(
i
,
item
)
{
_str
+=
'<option value="'
+
item
.
id
+
'">'
+
item
.
city
+
'</option>'
;
});
$
(
"#realtime_city_choose"
).
html
(
_str
);
realtime
.
getList
(
1
);
}
else
{
alert
(
_data
[
'msg'
]);
}
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'enter error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
//处理超时的逻辑
alert
(
'请求超时,请重试'
);
};
}
});
},
//初始化 城市
initializationCityFunction
:
function
(
params
)
{
$
.
ajax
({
...
...
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