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
aefed8c8
Commit
aefed8c8
authored
Jul 23, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩排行修改
parent
2ac2c71b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
266 additions
and
3 deletions
+266
-3
realtimePerformance.html
application/index/view/realtime/realtimePerformance.html
+72
-3
realtimePerformance.js
public/resource/js/realtimePerformance.js
+124
-0
real_time_performance_template_tpl.html
...resource/template/real_time_performance_template_tpl.html
+70
-0
No files found.
application/index/view/realtime/realtimePerformance.html
View file @
aefed8c8
{layout name="global/frame_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"getCollection"
/>
实时业绩
\ No newline at end of file
<input
type=
"hidden"
class=
"page-load"
id=
"realtimePerformance"
/>
<style
type=
"text/css"
>
.left
{
float
:
left
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col-lg-10 col-lg-offset-0"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading breadcrumb"
>
<li>
<a
href=
"#"
>
实时业绩
</a>
</li>
</div>
<div
class=
"panel-body"
>
<div
class=
"table-responsive"
>
<table
class=
"table table-striped table-bordered table-hover table-condensed"
>
<thead>
<tr>
<td
colspan=
"9"
class=
"maintable-top-sub-tr"
>
<a
class=
"btn btn-info liudan_pic_btn"
>
部门业绩排行榜
</a>
<a
class=
"btn btn-default liudan_pic_btn"
>
门店业绩排行榜
</a>
<a
class=
"btn btn-default liudan_pic_btn"
>
个人业绩排行榜
</a>
</td>
</tr>
<!--三级审核的搜索功能-->
<tr>
<td
colspan=
"9"
>
<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_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"
>
<span
class=
"fore-span margin-left-10"
>
-
</span>
<input
class=
"form-control btn4"
value=
""
data-rule-phoneus=
"false"
data-rule-required=
"false"
id=
"maintable_end_time"
name=
"end_date"
type=
"date"
>
<span
class=
"btn btn-primary btn3 search"
id=
"maintable_search"
>
搜索
</span>
<span
class=
"btn btn-primary btn3"
id=
"maintable_reset"
>
重置
</span>
<!--<span class="btn btn-info btn3" id="maintable_export">导出excel</span>-->
</form>
</td>
</tr>
<tr
class=
"maintable-tr-bar"
>
<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>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list"
>
</tbody>
</table>
</div>
<!-- /#page-content-wrapper -->
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
public/resource/js/realtimePerformance.js
0 → 100644
View file @
aefed8c8
define
([
'doT'
,
'text!temp/real_time_performance_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
,
template_tax
,
template_maid
,
template_maid_sub1
)
{
bargain
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
mainTabIndex
:
0
,
detailTabIndex
:
0
,
bargain_id
:
''
,
order_id
:
0
,
//订单id
panfangData
:
null
,
maidTotalCommission
:
0
,
//应收总佣金
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
bargain
.
getList
(
1
);
bargain
.
event
();
},
event
:
function
()
{
var
_doc
=
$
(
document
);
//主页面一级审核,二级审核,三级审核,结单四个tab的点击事件
//专员审核 总监审核 经理审核 出纳审核
_doc
.
on
(
'click'
,
'.maintable-top-sub-tr>a'
,
function
(
e
){
e
.
preventDefault
();
e
.
stopPropagation
();
var
_this
=
$
(
this
);
_this
.
removeClass
(
'btn-default'
).
addClass
(
'btn-info'
).
siblings
().
removeClass
(
'btn-info'
).
addClass
(
'btn-default'
);
bargain
.
mainTabIndex
=
_this
.
index
();
console
.
log
(
bargain
.
mainTabIndex
);
bargain
.
getList
(
1
);
});
//搜索按钮的事件
_doc
.
on
(
'click'
,
'#maintable_search'
,
function
(
e
)
{
e
.
preventDefault
();
e
.
stopPropagation
();
bargain
.
getList
(
1
);
//一级审核搜索
});
//搜索的重置
$
(
"#maintable_reset"
).
click
(
function
()
{
document
.
getElementById
(
"maintable_form_search"
).
reset
();
});
},
//获取一级审核,二级审核,三级审核,结单不同的ajax请求url
switchTpl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
'realtimePerformance_list_tpl_one'
;
case
1
:
return
'realtimePerformance_list_tpl_two'
;
case
2
:
return
'realtimePerformance_list_tpl_three'
;
default
:
return
''
;
}
},
switchUrl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
'/index/reportListOne/1'
;
case
1
:
return
'/index/reportListTwo/2'
;
case
2
:
return
'/index/reportListThree/3'
;
default
:
return
''
;
}
},
//获取一级审核,二级审核,三级审核,结单数据列表共用的方法
getList
:
function
(
pageNo
){
console
.
count
(
'bar'
);
var
params
=
{
'pageNo'
:
pageNo
,
'pageSize'
:
bargain
.
pageSize
,
'shop_type'
:
$
(
'#maintable_shop_type'
).
val
(),
'create_time'
:
$
.
trim
(
$
(
'#maintable_create_time'
).
val
()),
'end_time'
:
$
.
trim
(
$
(
'#maintable_end_time'
).
val
()),
'internal_address'
:
$
.
trim
(
$
(
'#maintable_internal_address'
).
val
()),
'user_phone'
:
$
.
trim
(
$
(
'#maintable_user_phone'
).
val
()),
'house_number'
:
$
.
trim
(
$
(
'#maintable_shop_num'
).
val
())
};
$
.
ajax
({
type
:
'GET'
,
url
:
bargain
.
switchUrl
(),
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
if
(
data
.
code
==
200
)
{
var
tpl
=
bargain
.
switchTpl
();
console
.
log
(
tpl
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
tpl
).
innerHTML
);
$
(
"#maintable_list"
).
html
(
doTtmpl
(
data
.
data
));
// var user_info_obj = JSON.parse(decodeURIComponent(localStorage.getItem('pcUserInfo')));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
bargain
.
pageSize
,
bargain
.
getList
);
}
else
{
alert
(
data
[
'msg'
]);
};
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
}
};
return
bargain
;
});
\ No newline at end of file
public/resource/template/real_time_performance_template_tpl.html
0 → 100644
View file @
aefed8c8
<script
id=
"realtimePerformance_list_tpl_one"
type=
"text/template"
>
[
%
if
(
it
[
"list"
]
&&
it
[
"list"
].
length
&&
it
[
"list"
].
length
>
0
)
{
%
]
<
tr
>
<
td
>
1
<
/td
>
<
tr
>
[
%
for
(
var
item
in
it
[
"list"
]){
%
]
<
tr
data
-
id
=
"[%= it['list'][item]['id'] %]"
data
-
orderid
=
"[%= it['list'][item]['order_id'] %]"
>
<
td
class
=
"text-center"
width
=
"10%"
>
[
%=
it
[
"list"
][
item
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
width
=
"8%"
>
[
%=
it
[
"list"
][
item
][
'is_open'
]?
'是'
:
'否'
%
]
<
/td
>
<
td
class
=
"text-left"
>
[
%=
it
[
"list"
][
item
][
'internal_address'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'house_number'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'user_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideTel
(
it
[
"list"
][
item
][
'user_phone'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'trade_type'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'commission'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<script
id=
"realtimePerformance_list_tpl_two"
type=
"text/template"
>
[
%
if
(
it
[
"list"
]
&&
it
[
"list"
].
length
&&
it
[
"list"
].
length
>
0
)
{
%
]
<
tr
>
<
td
>
2
<
/td
>
<
tr
>
[
%
for
(
var
item
in
it
[
"list"
]){
%
]
<
tr
data
-
id
=
"[%= it['list'][item]['id'] %]"
data
-
orderid
=
"[%= it['list'][item]['order_id'] %]"
>
<
td
class
=
"text-center"
width
=
"10%"
>
[
%=
it
[
"list"
][
item
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
width
=
"8%"
>
[
%=
it
[
"list"
][
item
][
'is_open'
]?
'是'
:
'否'
%
]
<
/td
>
<
td
class
=
"text-left"
>
[
%=
it
[
"list"
][
item
][
'internal_address'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'house_number'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'user_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideTel
(
it
[
"list"
][
item
][
'user_phone'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'trade_type'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'commission'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<script
id=
"realtimePerformance_list_tpl_three"
type=
"text/template"
>
[
%
if
(
it
[
"list"
]
&&
it
[
"list"
].
length
&&
it
[
"list"
].
length
>
0
)
{
%
]
<
tr
>
<
td
>
3
<
/td
>
<
tr
>
[
%
for
(
var
item
in
it
[
"list"
]){
%
]
<
tr
data
-
id
=
"[%= it['list'][item]['id'] %]"
data
-
orderid
=
"[%= it['list'][item]['order_id'] %]"
>
<
td
class
=
"text-center"
width
=
"10%"
>
[
%=
it
[
"list"
][
item
][
'create_time'
]
%
]
<
/td
>
<
td
class
=
"text-center"
width
=
"8%"
>
[
%=
it
[
"list"
][
item
][
'is_open'
]?
'是'
:
'否'
%
]
<
/td
>
<
td
class
=
"text-left"
>
[
%=
it
[
"list"
][
item
][
'internal_address'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'house_number'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'user_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
hideTel
(
it
[
"list"
][
item
][
'user_phone'
])
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'trade_type'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
"list"
][
item
][
'commission'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"8"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
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