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
ae16ad4e
Commit
ae16ad4e
authored
Jul 30, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩修改
parent
e5ea5042
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
64 additions
and
21 deletions
+64
-21
realtimePerformance.html
application/index/view/realtime/realtimePerformance.html
+26
-4
realtimePerformance.js
public/resource/js/realtimePerformance.js
+29
-7
real_time_performance_template_tpl.html
...resource/template/real_time_performance_template_tpl.html
+9
-10
No files found.
application/index/view/realtime/realtimePerformance.html
View file @
ae16ad4e
...
...
@@ -38,11 +38,11 @@
<a
class=
"btn btn-default liudan_pic_btn"
>
个人业绩排行榜
</a>
</td>
</tr>
<!--
三级审核
的搜索功能-->
<!--
部门业绩 门店业绩 个人业绩
的搜索功能-->
<tr>
<td
colspan=
"11"
>
<form
id=
"maintable_form_search"
>
<
span
class=
"btn btn-primary btn3 left"
id=
"maintable_month"
>
本月
</span
>
<
!--<span class="btn btn-primary btn3 left" id="maintable_month">本月</span>--
>
<span
class=
"btn btn-primary btn3 left"
id=
"maintable_today"
>
今天
</span>
<span
class=
"fore-span margin-left-10"
>
时间:
</span>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_create_time"
name=
"start_date"
type=
"date"
>
...
...
@@ -80,7 +80,7 @@
×
</button>
<h4
class=
"modal-title"
>
时间:2018.02.08-2018.02.28
时间
门店
:2018.02.08-2018.02.28
</h4>
</div>
<div
class=
"modal-body"
>
...
...
@@ -102,7 +102,29 @@
×
</button>
<h4
class=
"modal-title"
>
时间:2018.02.08-2018.02.28
时间经纪人:2018.02.08-2018.02.28
</h4>
</div>
<div
class=
"modal-body"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<tbody
class=
"text-center"
id=
"agent_details_list"
>
</tbody>
</table>
</div>
</div>
<!-- /.modal-content -->
</div>
<!-- /.modal -->
</div>
<!-- (点击门店名字)弹出框 经纪人业绩排行 详情 -->
<div
class=
"modal fade"
id=
"modal-agent"
tabindex=
"-1"
role=
"dialog"
aria-labelledby=
"myModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
>
<div
class=
"modal-content modal-body-width"
>
<div
class=
"modal-header"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"modal"
aria-hidden=
"true"
>
×
</button>
<h4
class=
"modal-title"
>
时间经纪人:2018.02.08-2018.02.28
</h4>
</div>
<div
class=
"modal-body"
>
...
...
public/resource/js/realtimePerformance.js
View file @
ae16ad4e
...
...
@@ -18,8 +18,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//主页面一级审核,二级审核,三级审核,结单四个tab的点击事件
//专员审核 总监审核 经理审核 出纳审核
//主页面 部门业绩 门店业绩 个人业绩 三个tab的点击事件
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
...
...
@@ -29,6 +28,29 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
console
.
log
(
bargain
.
mainTabIndex
);
bargain
.
getList
(
1
);
});
//点击今天按钮事件 的搜素
_doc
.
on
(
'click'
,
'#maintable_today'
,
function
(
e
){
//获取当天的日期 格式如 mmmm-yy-dd
function
getNowFormatDate
()
{
var
date
=
new
Date
();
var
seperator1
=
"-"
;
var
month
=
date
.
getMonth
()
+
1
;
var
strDate
=
date
.
getDate
();
if
(
month
>=
1
&&
month
<=
9
)
{
month
=
"0"
+
month
;
}
if
(
strDate
>=
0
&&
strDate
<=
9
)
{
strDate
=
"0"
+
strDate
;
}
var
currentdate
=
date
.
getFullYear
()
+
seperator1
+
month
+
seperator1
+
strDate
;
return
currentdate
;
};
var
currentdate_
=
getNowFormatDate
();
$
(
"#maintable_create_time"
).
val
(
currentdate_
);
$
(
"#maintable_end_time"
).
val
(
currentdate_
);
bargain
.
getList
(
1
);
});
//点击 部门排行 的部门名字
_doc
.
on
(
'click'
,
'.store-ranking'
,
function
(
e
){
e
.
preventDefault
();
...
...
@@ -41,8 +63,6 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
e
.
stopPropagation
();
bargain
.
getListAgent
(
1
);
});
//搜索按钮的事件
_doc
.
on
(
'click'
,
'#maintable_search'
,
function
(
e
)
{
e
.
preventDefault
();
...
...
@@ -57,7 +77,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
},
//获取
一级审核,二级审核,三级审核,结单
不同的ajax请求url
//获取
部门业绩 门店业绩 个人业绩
不同的ajax请求url
switchType
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
...
...
@@ -70,6 +90,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
return
''
;
}
},
//获取部门业绩 门店业绩 个人业绩 不同的模板
switchTpl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
...
...
@@ -82,7 +103,7 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
return
''
;
}
},
//获取
一级审核,二级审核,三级审核,结单数据列表共用的
方法
//获取
部门业绩 门店业绩 个人业绩 的共用
方法
getList
:
function
(
pageNo
){
console
.
count
(
'bar'
);
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
...
...
@@ -94,7 +115,8 @@ define(['doT', 'text!temp/real_time_performance_template_tpl.html', 'css!style/h
'AuthToken'
:
user_info_obj
.
AuthToken
,
'agent_id'
:
user_info_obj
.
id
,
'start_day'
:
$
(
'#maintable_create_time'
).
val
(),
'end_day'
:
$
(
'#maintable_end_time'
).
val
()
'end_day'
:
$
(
'#maintable_end_time'
).
val
(),
'request_source_type'
:
1
};
$
.
ajax
({
type
:
'GET'
,
...
...
public/resource/template/real_time_performance_template_tpl.html
View file @
ae16ad4e
...
...
@@ -5,8 +5,8 @@
<
th
class
=
"text-center"
>
排名
<
/th
>
<
th
class
=
"text-center"
>
部门
<
/th
>
<
th
class
=
"text-center"
>
业绩(元)
<
/th
>
<
th
class
=
"text-center"
>
成交
报告(出租)
<
/th
>
<
th
class
=
"text-center"
>
成交报告(其他)
<
/th
>
<
th
class
=
"text-center"
>
成交
单数
<
/th
>
<
!--<
th
class
=
"text-center"
>
成交报告(其他)
<
/th>--
>
<
th
class
=
"text-center"
>
收款数
<
/th
>
<
th
class
=
"text-center"
>
进场数
<
/th
>
<
th
class
=
"text-center"
>
报备数
<
/th
>
...
...
@@ -16,14 +16,13 @@
<
/tr
>
[
%
for
(
var
item
in
it
[
"list"
]){
%
]
<
tr
data
-
id
=
"[%= it['list'][item]['id'] %]"
data
-
orderid
=
"[%= it['list'][item]['order_id'] %]"
>
<!--
index_
-->
<
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
>
<
/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
][
'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
>
...
...
@@ -46,8 +45,8 @@
<
th
class
=
"text-center"
>
排名
<
/th
>
<
td
class
=
"text-center"
>
门店
<
/td
>
<
th
class
=
"text-center"
>
业绩(元)
<
/th
>
<
th
class
=
"text-center"
>
成交
报告(出租)
<
/th
>
<
th
class
=
"text-center"
>
成交报告(其他)
<
/th
>
<
th
class
=
"text-center"
>
成交
单数
<
/th
>
<
!--<
th
class
=
"text-center"
>
成交报告(其他)
<
/th>--
>
<
th
class
=
"text-center"
>
收款数
<
/th
>
<
th
class
=
"text-center"
>
进场数
<
/th
>
<
th
class
=
"text-center"
>
报备数
<
/th
>
...
...
@@ -63,7 +62,7 @@
<
/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
][
'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
>
...
...
@@ -86,8 +85,8 @@
<
th
class
=
"text-center"
>
排名
<
/th
>
<
th
class
=
"text-center"
>
经纪人
<
/th
>
<
th
class
=
"text-center"
>
业绩(元)
<
/th
>
<
th
class
=
"text-center"
>
成交
报告(出租)
<
/th
>
<
th
class
=
"text-center"
>
成交报告(其他)
<
/th
>
<
th
class
=
"text-center"
>
成交
单数
<
/th
>
<
!--<
th
class
=
"text-center"
>
成交报告(其他)
<
/th>--
>
<
th
class
=
"text-center"
>
收款数
<
/th
>
<
th
class
=
"text-center"
>
进场数
<
/th
>
<
th
class
=
"text-center"
>
报备数
<
/th
>
...
...
@@ -100,7 +99,7 @@
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'district_name'
]
+
'-'
+
it
[
"list"
][
item
][
'store_name'
]
+
'-'
+
it
[
"list"
][
item
][
'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
][
'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
>
...
...
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