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
ef264836
Commit
ef264836
authored
Sep 27, 2018
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微聊修改 分部门 客户来电加时间搜索
parent
3b540eeb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
16 deletions
+46
-16
operationalDataList.html
...ation/index/view/operationalData/operationalDataList.html
+6
-5
operationalDataList.js
public/resource/js/operationalDataList.js
+20
-10
operational_dataList_template_tpl.html
.../resource/template/operational_dataList_template_tpl.html
+20
-1
No files found.
application/index/view/operationalData/operationalDataList.html
View file @
ef264836
...
...
@@ -25,11 +25,12 @@
<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>
<a
class=
"btn btn-info"
>
微聊用户统计
</a>
<a
class=
"btn btn-default"
>
微聊用户统计(部门)
</a>
<a
class=
"btn btn-default"
>
客户来电统计
</a>
<a
class=
"btn btn-default"
>
客户统计
</a>
<a
class=
"btn btn-default"
>
商铺统计
</a>
<a
class=
"btn btn-default"
>
进场和成交统计
</a>
</td>
</tr>
<!--部门业绩 门店业绩 个人业绩的搜索功能-->
...
...
public/resource/js/operationalDataList.js
View file @
ef264836
...
...
@@ -45,29 +45,33 @@ define(['doT', 'text!temp/operational_dataList_template_tpl.html', 'css!style/ho
case
0
:
return
'/index/operationChatUserNum'
;
case
1
:
return
'/index/operationUserPhoneNum'
;
return
'/index/operationUserPhoneNum'
;
case
2
:
return
'/index/operation
Login
Num'
;
return
'/index/operation
UserPhone
Num'
;
case
3
:
return
'/index/operation
House
Num'
;
return
'/index/operation
Login
Num'
;
case
4
:
return
'/index/operationHouseNum'
;
case
5
:
return
'/index/operationHouseBargainNum'
;
default
:
return
''
;
}
},
//获取微聊 客户 商铺 不同的模板
//获取微聊 客户 商铺 不同的模板
switchTpl
:
function
(){
switch
(
Number
(
this
.
mainTabIndex
)){
case
0
:
return
'small_talk_list_tpl'
;
case
1
:
return
'user_call_lis
t_tpl'
;
return
'small_talk_list_distric
t_tpl'
;
case
2
:
return
'user_
tota
l_list_tpl'
;
return
'user_
cal
l_list_tpl'
;
case
3
:
return
'
shop_number
_list_tpl'
;
return
'
user_total
_list_tpl'
;
case
4
:
return
'shop_number_list_tpl'
;
case
5
:
return
'shop_deal_list_tpl'
;
default
:
return
''
;
...
...
@@ -95,18 +99,25 @@ define(['doT', 'text!temp/operational_dataList_template_tpl.html', 'css!style/ho
var
doTtmpl
=
doT
.
template
(
document
.
getElementById
(
tpl
).
innerHTML
);
$
(
"#maintable_list"
).
html
(
doTtmpl
(
data
.
data
));
$
(
'#maintable_form_search'
).
show
();
//微聊统计
if
(
tpl
==
'small_talk_list_tpl'
&&
data
.
data
){
$
(
'#maintable_form_search'
).
show
();
$
(
'#chat_user_num'
).
html
(
data
.
data
.
chat_user_num
);
$
(
'#chat_user_all_num'
).
html
(
data
.
data
.
chat_user_all_num
);
}
//微聊统计(部门)
if
(
tpl
==
'small_talk_list_district_tpl'
&&
data
.
data
){
$
(
'#maintable_form_search'
).
show
();
$
(
'#chat_user_num'
).
html
(
data
.
data
.
chat_user_num
);
$
(
'#chat_user_all_num'
).
html
(
data
.
data
.
chat_user_all_num
);
}
//客户来电统计
if
(
tpl
==
'user_call_list_tpl'
&&
data
.
data
){
$
(
'#maintable_form_search'
).
hide
();
$
(
'#maintable_form_search'
).
show
();
}
//客户统计
if
(
tpl
==
'user_total_list_tpl'
&&
data
.
data
){
$
(
'#maintable_form_search'
).
show
();
$
(
'#add_user_num'
).
html
(
data
.
data
.
add_user_num
);
$
(
'#create_user_num'
).
html
(
data
.
data
.
create_user_num
);
$
(
'#login_user_num'
).
html
(
data
.
data
.
login_user_num
);
...
...
@@ -118,7 +129,6 @@ define(['doT', 'text!temp/operational_dataList_template_tpl.html', 'css!style/ho
$
(
'#house_num'
).
html
(
data
.
data
.
house_num
);
}
/*分页代码*/
// add_page(data.data.total, pageNo, operating.pageSize, operating.getList);
...
...
public/resource/template/operational_dataList_template_tpl.html
View file @
ef264836
...
...
@@ -9,7 +9,26 @@
</script>
<!--微聊用户数据统计(部门)-->
<script
id=
"small_talk_list_district_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
&&
it
.
length
>
0
)
{
%
]
<
tr
>
<
th
class
=
"text-center"
>
分部名称
<
/th
>
<
th
class
=
"text-center"
>
C
端微聊关系数
<
/td
>
<
/tr
>
[
%
for
(
var
item
in
it
){
%
]
<
tr
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'district_name'
]
%
]
<
/td
>
<
td
class
=
"text-center"
>
[
%=
it
[
item
][
'user_phone_num'
]
%
]
<
/td
>
<
/tr
>
[
%
}
%
]
[
%
}
else
{
%
]
<
tr
>
<
td
colspan
=
"10"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
[
%
}
%
]
</script>
<!--客户来电统计-->
<script
id=
"user_call_list_tpl"
type=
"text/template"
>
[
%
if
(
it
&&
it
.
length
&&
it
.
length
>
0
)
{
%
]
...
...
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