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 865ed4ac
authored
Jan 19, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
51283a53
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
66 additions
and
7 deletions
linkwe-ui/src/api/operateCenter/conversationAnalysis.js
linkwe-ui/src/api/operateCenter/customerAnalysis.js
linkwe-ui/src/components/TagEllipsis.vue
linkwe-ui/src/views/enterpriseWechat/list.vue
linkwe-ui/src/views/operateCenter/operateAnalysis/customerAnalysis.vue
linkwe-ui/src/api/operateCenter/conversationAnalysis.js
0 → 100644
View file @
865ed4a
import
request
from
'@/utils/request'
const
service
=
window
.
CONFIG
.
services
.
wecom
+
'/chat'
linkwe-ui/src/api/operateCenter/customerAnalysis.js
0 → 100644
View file @
865ed4a
import
request
from
'@/utils/request'
const
service
=
window
.
CONFIG
.
services
.
wecom
+
'/operation/customer'
/**
* 客户数据分析
* @param {*} params
*/
export
function
getAnalysis
()
{
return
request
({
url
:
'http://demo.linkwechat.cn/prod-api/'
+
service
+
'/getAnalysis'
})
}
/**
* 客户数据-员工客户排行
* @param {*}
* deptIds 否[]部门
userIds 否[]员工
beginTime 是 开始时间
endTime 是 结束时间
*/
export
function
getRankCnt
()
{
return
request
({
url
:
service
+
'/getRankCnt'
})
}
/**
* 客户数据-实时数据
* @param {*}
* deptIds 否[]部门
userIds 否[]员工
beginTime 是 开始时间
endTime 是 结束时间
*/
export
function
getRealCnt
()
{
return
request
({
url
:
service
+
'/getRealCnt'
})
}
/**
* 客户数据-客户总数
* @param {*} params
* deptIds 否[]部门
userIds 否[]员工
beginTime 是 开始时间
endTime 是 结束时间
*/
export
function
getTotalCnt
()
{
return
request
({
url
:
service
+
'/getTotalCnt'
})
}
linkwe-ui/src/components/TagEllipsis.vue
View file @
865ed4a
...
...
@@ -29,16 +29,16 @@ export default {
<
template
>
<div
class=
"tag-ellipsis"
>
<el-popover
placement=
"bottom"
trigger=
"hover"
:disabled=
"list.length
<
= +limit">
<el-tag
v-for=
"(item, unique) in list.slice(0, +limit)"
:key=
"unique"
>
{{
item
[
defaultProps
]
||
item
}}
</el-tag>
<el-popover
placement=
"bottom"
trigger=
"hover"
>
<div>
<el-tag
v-for=
"(item, unique) in list"
:key=
"unique"
>
{{
item
[
defaultProps
]
||
item
}}
</el-tag>
</div>
<div
slot=
"reference"
>
<el-tag
v-for=
"(item, unique) in list.slice(0, +limit)"
:key=
"unique"
>
{{
item
[
defaultProps
]
||
item
}}
</el-tag>
<el-tag
key=
"a"
v-if=
"list.length > +limit"
>
...
</el-tag>
</div>
</el-popover>
...
...
linkwe-ui/src/views/enterpriseWechat/list.vue
View file @
865ed4a
...
...
@@ -252,6 +252,7 @@ export default {
<el-form-item
label=
"EncodingAESKey"
prop=
"encodingAesKey"
>
<el-input
v-model=
"form.encodingAesKey"
placeholder=
"应用回调消息体加密密钥"
></el-input>
</el-form-item>
<div>
应用配置
</div>
<el-form-item
label=
"消息提醒agentId"
prop=
"agentId"
>
<el-input
v-model=
"form.agentId"
></el-input>
...
...
linkwe-ui/src/views/operateCenter/operateAnalysis/customerAnalysis.vue
View file @
865ed4a
<
script
>
import
TabContent
from
'./components/TabContent'
import
CardGroupIndex
from
'@/components/CardGroupIndex'
import
{
getAnalysis
}
from
'@/api/operateCenter/customerAnalysis'
export
default
{
name
:
''
,
components
:
{
TabContent
},
components
:
{
TabContent
,
CardGroupIndex
},
data
()
{
return
{
cardData
:
[
...
...
@@ -49,7 +51,7 @@ export default {
computed
:
{},
watch
:
{},
created
()
{
//
this.getList()
this
.
getList
()
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
...
...
@@ -61,7 +63,7 @@ export default {
methods
:
{
getList
()
{
this
.
loading
=
true
get
List
(
this
.
query
)
get
Analysis
(
this
.
query
)
.
then
(({
rows
,
total
})
=>
{
this
.
list
=
rows
this
.
total
=
Number
(
total
)
...
...
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