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
87e4dc0d
Commit
87e4dc0d
authored
Sep 10, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
运营数据统计表
parent
b4c76022
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
287 additions
and
1 deletion
+287
-1
OperationalData.php
application/index/controller/OperationalData.php
+23
-0
operationalDataList.html
...ation/index/view/operationalData/operationalDataList.html
+63
-0
route.php
application/route.php
+3
-1
operationalDataList.js
public/resource/js/operationalDataList.js
+112
-0
operational_dataList_template_tpl.html
.../resource/template/operational_dataList_template_tpl.html
+86
-0
No files found.
application/index/controller/OperationalData.php
0 → 100644
View file @
87e4dc0d
<?php
namespace
app\index\controller
;
/**
* Created by PhpStorm.
* User: liu yin ping
* Date: 2018/9/10
* Time: 13:10
*/
use
app\index\extend\Basic
;
class
OperationalData
extends
Basic
{
public
function
operationalDataList
()
{
if
(
!
$this
->
request
->
isAjax
())
{
return
view
(
'operationalData/operationalDataList'
);
}
}
}
\ No newline at end of file
application/index/view/operationalData/operationalDataList.html
0 → 100644
View file @
87e4dc0d
{layout name="global/frame_tpl" /}
<input
type=
"hidden"
class=
"page-load"
id=
"operationalDataList"
/>
<style
type=
"text/css"
>
.left
{
float
:
left
;
}
#maintable_list
{
font-size
:
16px
;
}
</style>
<div
id=
"page-content-wrapper"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
""
>
<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=
"11"
class=
"maintable-top-sub-tr"
>
<a
class=
"btn btn-info liudan_pic_btn performance-district-click"
id=
'liudan_pic_btn_district'
>
微聊用户统计
</a>
<a
class=
"btn btn-default liudan_pic_btn performance-store-click"
id=
'liudan_pic_btn_store'
>
客户来电统计
</a>
<a
class=
"btn btn-default liudan_pic_btn performance-person-click"
id=
'liudan_pic_btn_person'
>
客户统计
</a>
<a
class=
"btn btn-default liudan_pic_btn performance-person-click"
id=
'liudan_pic_btn_person'
>
商铺统计
</a>
<a
class=
"btn btn-default liudan_pic_btn performance-person-click"
id=
'liudan_pic_btn_person'
>
进场和成交统计
</a>
</td>
</tr>
<!--部门业绩 门店业绩 个人业绩的搜索功能-->
<tr>
<td
colspan=
"11"
>
<form
id=
"maintable_form_search"
>
<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>
</form>
</td>
</tr>
</thead>
<tbody
class=
"text-center"
id=
"maintable_list"
>
</tbody>
</table>
</div>
<div
class=
"text-right"
id=
"pagediv"
>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
application/route.php
View file @
87e4dc0d
...
...
@@ -291,7 +291,9 @@ Route::group('index', [
'performancesubsidiaryList'
=>
[
'index/PerformanceSubsidiary/performancesubsidiaryList'
,
[
'method'
=>
'POST|GET'
]
],
//业绩明细liu
'myCollectionUserList'
=>
[
'index/myCollectionUser/myCollectionUserList'
,
[
'method'
=>
'POST|GET'
]
],
//我收藏的客户liu
'myCollectionShopList'
=>
[
'index/myCollectionShop/myCollectionShopList'
,
[
'method'
=>
'POST|GET'
]
],
//我收藏的客户liu
'inviteStatistics'
=>
[
'index/InviteStatistics/inviteStatisticsList'
,
[
'method'
=>
'POST|GET'
]
],
//实时业绩liu
'inviteStatistics'
=>
[
'index/InviteStatistics/inviteStatisticsList'
,
[
'method'
=>
'POST|GET'
]
],
//邀请注册liu
'operationalData'
=>
[
'index/OperationalData/operationalDataList'
,
[
'method'
=>
'POST|GET'
]
],
//运营数据统计liu
...
...
public/resource/js/operationalDataList.js
0 → 100644
View file @
87e4dc0d
define
([
'doT'
,
'text!temp/operational_dataList_template_tpl.html'
,
'css!style/home.css'
,
'css!style/report_list.css'
,
'ckfinder'
,
'ckfinderStart'
,
'pagination'
,
'bootstrapJs'
],
function
(
doT
,
template
)
{
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
operating
=
{
pageNo
:
1
,
/*第几页*/
pageSize
:
10
,
/*每页显示多少条*/
mainTabIndex
:
0
,
detailTabIndex
:
0
,
time_search_start
:
''
,
time_search_end
:
''
,
init
:
function
()
{
//初始化dot
$
(
document
.
body
).
append
(
template
);
operating
.
getList
(
1
);
operating
.
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'
);
operating
.
mainTabIndex
=
_this
.
index
();
operating
.
getList
(
1
);
});
},
//获取微聊 客户 商铺 不同的ajax请求url
switchUrl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
'/index/selectDistrictPerformance'
;
case
1
:
return
'/index/selectStorePerformance'
;
case
2
:
return
'/index/selectIndividualPerformance'
;
case
3
:
return
'/index/selectStorePerformance'
;
case
4
:
return
'/index/selectIndividualPerformance'
;
default
:
return
''
;
}
},
//获取微聊 客户 商铺 不同的模板
switchTpl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
'small_talk_list_tpl'
;
case
1
:
return
'user_call_list_tpl'
;
case
2
:
return
'user_total_list_tpl'
;
case
3
:
return
'shop_number_list_tpl'
;
case
4
:
return
'shop_deal_list_tpl'
;
default
:
return
''
;
}
},
//获取微聊 客户 商铺 的共用方法
getList
:
function
(
pageNo
){
var
user_info_obj
=
JSON
.
parse
(
decodeURIComponent
(
localStorage
.
getItem
(
'pcUserInfo'
)));
//读取缓存
var
params
=
{
'pageNo'
:
pageNo
,
'pageSize'
:
operating
.
pageSize
,
'start_day'
:
$
(
'#maintable_create_time'
).
val
(),
'end_day'
:
$
(
'#maintable_end_time'
).
val
(),
};
$
.
ajax
({
type
:
'GET'
,
url
:
operating
.
switchUrl
(),
data
:
params
,
timeout
:
30000
,
dataType
:
'json'
,
beforeSend
:
function
()
{},
success
:
function
(
data
)
{
if
(
typeof
data
===
'object'
)
{
// if(data.code == 200) {
var
tpl
=
operating
.
switchTpl
();
console
.
log
(
tpl
);
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
tpl
).
innerHTML
);
$
(
"#maintable_list"
).
html
(
doTtmpl
(
data
.
data
.
list
));
/*分页代码*/
add_page
(
data
.
data
.
total
,
pageNo
,
operating
.
pageSize
,
operating
.
getList
);
// } else {
// alert(data['msg']);
// };
}
else
{
alert
(
'数据错误'
);
};
},
error
:
function
()
{
alert
(
'error'
);
},
complete
:
function
(
xhr
,
textStatus
)
{
if
(
textStatus
===
'timeout'
)
{
alert
(
'请求超时'
);
};
}
});
},
};
return
operating
;
});
\ No newline at end of file
public/resource/template/operational_dataList_template_tpl.html
0 → 100644
View file @
87e4dc0d
<!--微聊用户数据统计-->
<script
id=
"small_talk_list_tpl"
type=
"text/template"
>
<
tr
>
<
th
class
=
"text-left"
width
=
"26%"
>
发起微聊用户数
:
<
span
id
=
""
><
/span></
th
>
<
/tr
>
</script>
<!--客户来电统计-->
<script
id=
"user_call_list_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
&&
it
.
length
>
0
)
{
%
]
<
tr
>
<
th
class
=
"text-center"
>
分部名称
<
/th
>
<
th
class
=
"text-center"
>
客户来电数
<
/td
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--客户统计-->
<script
id=
"user_total_list_tpl"
type=
"text/template"
>
<
tr
>
<
th
class
=
"text-left"
>
新增客户数
:
<
span
id
=
""
><
/span></
th
>
<
/tr
>
<
tr
>
<
th
class
=
"text-left"
>
注册客户数
:
<
span
id
=
""
><
/span></
th
>
<
/tr
>
<
tr
>
<
th
class
=
"text-left"
>
登录客户数
:
<
span
id
=
""
><
/span></
th
>
<
/tr
>
</script>
<!--商铺统计-->
<script
id=
"shop_number_list_tpl"
type=
"text/template"
>
<
tr
>
<
th
class
=
"text-left"
>&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
&
nbsp
;
商铺总量
:
<
span
id
=
""
><
/span></
th
>
<
/tr
>
<
tr
>
<
th
class
=
"text-left"
>
待租商铺数量
:
<
span
id
=
""
><
/span></
th
>
<
/tr
>
</script>
<!--成交和进场统计-->
<script
id=
"shop_deal_list_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
&&
it
.
length
>
0
)
{
%
]
<
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
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'index_'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
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