Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 588f01c7
authored
Feb 16, 2022
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
咨询分析
1 parent
dc35c1fb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
76 additions
and
12 deletions
linkwe-ui/src/api/drainageCode/customerService.js
linkwe-ui/src/views/customerService/components/SearchTitle.vue
linkwe-ui/src/views/customerService/statistics/index.vue
linkwe-ui/src/views/customerService/statistics/search.vue
linkwe-ui/src/api/drainageCode/customerService.js
View file @
588f01c
...
...
@@ -148,4 +148,44 @@ export function getTableExport (params) {
url
:
service
+
'/wecom/kf/statistic/scene/real/export'
,
params
})
}
// 咨询分析 抬头数据
export
function
getConsultTotal
()
{
return
request
({
url
:
service
+
'/wecom/kf/statistic/consult/getAnalysis'
})
}
// 咨询分析 数据趋势 客户总数/实时数据
export
function
getConsultLineChartTotal
(
params
)
{
return
request
({
url
:
service
+
'/wecom/kf/statistic/consult/getRealCnt'
,
params
})
}
// 咨询分析 访问场景 top5
export
function
getConsultBarTop5Total
(
params
)
{
return
request
({
url
:
service
+
'/wecom/kf/statistic/consult/getRankCnt'
,
params
})
}
// 咨询分析 数据报表
export
function
getConsultTableTotal
(
params
)
{
return
request
({
url
:
service
+
'/wecom/kf/statistic/consult/getRealPageCnt'
,
params
})
}
// 咨询分析 数据报表 导出
export
function
getConsultTableExport
(
params
)
{
return
request
({
url
:
service
+
'/wecom/kf/statistic/consult/real/export'
,
params
})
}
\ No newline at end of file
linkwe-ui/src/views/customerService/components/SearchTitle.vue
View file @
588f01c
...
...
@@ -21,13 +21,15 @@
</el-select>
</div>
<div
class=
"item"
v-if=
"showMember"
>
<el-select
size=
"mini"
v-model=
"value2"
placeholder=
"请选择客服"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-select
size=
"mini"
v-model=
"data.openKfIds"
@
change=
"setMemeber"
clearable
placeholder=
"请选择客服"
>
<el-option
value=
""
label=
"全部客服"
></el-option>
<el-option
v-for=
"(data, index) in customerList"
:key=
"index"
:value=
"data.openKfId"
:label=
"data.name"
></el-option>
</el-select>
</div>
<div
class=
"item"
v-if=
"showMember"
>
<el-select
size=
"mini"
v-model=
"value2"
placeholder=
"请选择接待员工"
>
<el-option
v-for=
"item in options"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
<el-select
size=
"mini"
v-model=
"data.userIds"
@
change=
"selectMember"
clearable
placeholder=
"请选择接待员工"
>
<el-option
value=
""
label=
"全部员工"
></el-option>
<el-option
v-for=
"item in manList"
:key=
"item.value"
:label=
"item.userName"
:value=
"item.userId"
>
</el-option>
</el-select>
</div>
...
...
@@ -35,7 +37,7 @@
</
template
>
<
script
>
import
moment
from
'moment'
import
{
getSceneList
}
from
'@/api/drainageCode/customerService.js'
import
{
getSceneList
,
getList
}
from
'@/api/drainageCode/customerService.js'
export
default
{
name
:
'search-title'
,
props
:
{
...
...
@@ -53,17 +55,31 @@
active
:
1
,
value
:
[],
options
:
[{
value
:
10
,
label
:
'1123'
}],
value2
:
''
,
value2
:
[]
,
data
:
{
openKfIds
:
''
,
scenes
:
''
,
userIds
:
''
,
beginTime
:
''
,
endTime
:
''
},
sceneList
:
[]
sceneList
:
[],
customerList
:
[],
manList
:
[]
}
},
methods
:
{
setMemeber
(
e
)
{
this
.
customerList
.
forEach
(
dd
=>
{
if
(
dd
.
openKfId
===
e
)
{
this
.
manList
=
dd
.
userIdList
}
})
this
.
submit
()
},
selectMember
(
e
)
{
this
.
submit
()
},
submit
()
{
console
.
log
(
this
.
data
)
this
.
$emit
(
'search'
,
this
.
data
)
...
...
@@ -94,9 +110,17 @@
},
},
created
()
{
getSceneList
({
pageSize
:
1000
}).
then
(
dd
=>
{
this
.
sceneList
=
dd
.
rows
})
if
(
this
.
showScene
)
{
getSceneList
({
pageSize
:
1000
}).
then
(
dd
=>
{
this
.
sceneList
=
dd
.
rows
})
}
if
(
this
.
showMember
)
{
getList
().
then
(
res
=>
{
this
.
customerList
=
res
.
rows
})
}
this
.
setType
(
1
)
}
}
...
...
linkwe-ui/src/views/customerService/statistics/index.vue
View file @
588f01c
...
...
@@ -2,10 +2,10 @@
<div>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"场景分析"
name=
"first"
>
<Scene
/>
<Scene
v-if=
"activeName === 'first'"
/>
</el-tab-pane>
<el-tab-pane
label=
"咨询分析"
name=
"second"
>
<Search
/>
<Search
v-if=
"activeName === 'second'"
/>
</el-tab-pane>
</el-tabs>
</div>
...
...
linkwe-ui/src/views/customerService/statistics/search.vue
View file @
588f01c
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
Attach a file
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 post a comment