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 145ca4c9
authored
May 30, 2023
by
怪兽?别跑
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
会话存档图表数据调整
1 parent
fcaf62c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
25 deletions
linkwe-pc/src/views/operateCenter/operateAnalysis/conversationAnalysis/Archive.vue
linkwe-pc/src/views/operateCenter/operateAnalysis/conversationAnalysis/Archive.vue
View file @
145ca4c
<
script
>
import
ChartPie
from
'@/components/ChartPie'
import
ChartPie
from
'@/components/ChartPie'
import
TabContent
from
'../components/TabContent'
import
{
getAnalysisArchive
,
getArchiveList
}
from
'@/api/operateCenter/conversationAnalysis'
export
default
{
import
TabContent
from
'../components/TabContent'
import
{
getAnalysisArchive
,
getArchiveList
}
from
'@/api/operateCenter/conversationAnalysis'
export
default
{
name
:
''
,
components
:
{
TabContent
,
ChartPie
},
data
()
{
...
...
@@ -12,13 +12,13 @@ export default {
// 查询参数
query
:
{
pageNum
:
undefined
,
pageSize
:
undefined
,
pageSize
:
undefined
},
cardData
:
[],
pieData
:
{},
total
:
0
,
// 表格数据
list
:
[],
list
:
[]
}
},
computed
:
{},
...
...
@@ -37,40 +37,43 @@ export default {
this
.
cardData
=
[
{
title
:
'开启会话存档员工'
,
value
:
data
.
openUserCnt
,
value
:
data
.
openUserCnt
},
{
title
:
'未开启会话存档员工'
,
value
:
data
.
notOpenUserCnt
,
value
:
data
.
notOpenUserCnt
},
{
title
:
'已同意会话存档客户'
,
value
:
data
.
openCustomerCnt
,
value
:
data
.
openCustomerCnt
},
{
title
:
'未同意会话存档客户'
,
value
:
data
.
notOpenCustomerCnt
,
},
value
:
data
.
notOpenCustomerCnt
}
]
this
.
pieData
.
staff
=
[
{
name
:
'开启'
,
value
:
(
data
.
openUserCnt
/
(
data
.
openUserCnt
+
data
.
notOpenUserCnt
||
1
))
*
100
,
value
:
((
data
.
openUserCnt
/
(
data
.
openUserCnt
+
data
.
notOpenUserCnt
||
1
))
*
100
).
toFixed
(
2
)
},
{
name
:
'未开启'
,
value
:
(
data
.
notOpenUserCnt
/
(
data
.
openUserCnt
+
data
.
notOpenUserCnt
||
1
))
*
100
,
},
value
:
((
data
.
notOpenUserCnt
/
(
data
.
openUserCnt
+
data
.
notOpenUserCnt
||
1
))
*
100
).
toFixed
(
2
)
}
]
this
.
pieData
.
customer
=
[
{
name
:
'已同意'
,
value
:
(
data
.
openCustomerCnt
/
(
data
.
openCustomerCnt
+
data
.
notopenCustomerCnt
||
1
))
*
100
,
value
:
((
data
.
openCustomerCnt
/
(
data
.
openCustomerCnt
+
data
.
notopenCustomerCnt
||
1
))
*
100
).
toFixed
(
2
)
},
{
name
:
'未同意'
,
value
:
(
data
.
notOpenCustomerCnt
/
(
data
.
openCustomerCnt
+
data
.
notOpenCustomerCnt
||
1
))
*
100
,
},
value
:
(
(
data
.
notOpenCustomerCnt
/
(
data
.
openCustomerCnt
+
data
.
notOpenCustomerCnt
||
1
))
*
100
).
toFixed
(
2
)
}
]
})
.
catch
((
e
)
=>
{
...
...
@@ -93,9 +96,9 @@ export default {
.
finally
(()
=>
{
this
.
loading
=
false
})
},
},
}
}
}
}
</
script
>
<
template
>
...
...
@@ -108,13 +111,15 @@ export default {
<el-col
:span=
"12"
>
<ChartPie
:series=
"pieData.staff"
:option=
"
{ series: { tooltip: { valueFormatter: (value) => value + '%' } } }">
</ChartPie>
:option=
"
{ series: { tooltip: { valueFormatter: (value) => value + '%' } } }"
>
</ChartPie>
<div
class=
"ac"
>
会话存档员工开启情况统计
</div>
</el-col>
<el-col
:span=
"12"
>
<ChartPie
:series=
"pieData.customer"
:option=
"
{ series: { tooltip: { valueFormatter: (value) => value + '%' } } }">
</ChartPie>
:option=
"
{ series: { tooltip: { valueFormatter: (value) => value + '%' } } }"
>
</ChartPie>
<div
class=
"ac"
>
会话存档客户同意情况统计
</div>
</el-col>
</el-row>
...
...
@@ -122,7 +127,7 @@ export default {
<div
class=
"g-card"
>
<div
class=
"g-card-title"
>
会话存档同意明细
</div>
<el-table
:data=
"list"
style=
"width: 100%"
>
<el-table
:data=
"list"
style=
"width: 100%
;
"
>
<el-table-column
align=
"center"
prop=
"userName"
label=
"存档员工"
></el-table-column>
<el-table-column
align=
"center"
prop=
"customerName"
label=
"客户"
></el-table-column>
<el-table-column
align=
"center"
prop=
"openChatTime"
label=
"同意时间"
></el-table-column>
...
...
@@ -133,7 +138,7 @@ export default {
</
template
>
<
style
lang=
"scss"
scoped
>
.chart-pie
{
.chart-pie
{
height
:
400px
;
}
}
</
style
>
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