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 0efcb19a
authored
Jan 13, 2022
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
页面UI 警告解决
1 parent
4278a1af
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
766 additions
and
15 deletions
linkwe-ui/src/api/drainageCode/staff.js
linkwe-ui/src/assets/drainageCode/service.png
linkwe-ui/src/views/customerService/components/ShowCustomerSevice.vue
linkwe-ui/src/views/customerService/customerServiceManage/add.vue
linkwe-ui/src/views/customerService/customerServiceManage/detail.vue
linkwe-ui/src/views/customerService/customerServiceManage/index.vue
linkwe-ui/src/views/customerService/sceneManage/index.vue
linkwe-ui/src/views/customerService/searchRecord/index.vue
linkwe-ui/src/views/customerService/statistics/index.vue
linkwe-ui/src/views/customerService/statistics/scene.vue
linkwe-ui/src/views/customerService/statistics/search.vue
linkwe-ui/src/views/groupMessage/add.vue
linkwe-ui/src/views/groupMessage/detail.vue
linkwe-ui/src/api/drainageCode/staff.js
View file @
0efcb19
...
...
@@ -24,13 +24,20 @@ const service = '/wecom/category'
}]
}
*/
// export function update (data) {
// return request({
// url: service + '/update',
// method: 'put',
// data
// })
// }
export
function
download
(
data
)
{
// return request({
// url: service + '/update',
// method: 'put',
// data
// })
}
export
function
getUserAddCustomerStat
(
data
)
{
// return request({
// url: service + '/update',
// method: 'put',
// data
// })
}
/**
...
...
linkwe-ui/src/assets/drainageCode/service.png
0 → 100644
View file @
0efcb19
158 KB
linkwe-ui/src/views/customerService/components/ShowCustomerSevice.vue
0 → 100644
View file @
0efcb19
<
template
>
<div
class=
"show"
>
<div
class=
"show_img"
>
<el-image
:src=
"url"
fit=
"fit"
:preview-src-list=
"[url]"
style=
"width: 40px; height: 40px"
></el-image>
</div>
<div
class=
"show_name"
:style=
"showicon ? '' : showiconStyle"
>
<div>
{{
name
}}
</div>
<div
class=
"company"
v-if=
"showicon"
>
@合肥xxxxx有限公司
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'show-customer-service'
,
props
:
{
url
:
{
type
:
String
,
default
:
'测试'
},
name
:
{
type
:
String
,
default
:
'测试'
},
showicon
:
{
type
:
Boolean
,
default
:
false
}
},
data
()
{
return
{
showiconStyle
:
{
'justify-content'
:
'center'
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.show
{
height
:
40px
;
display
:
flex
;
align-items
:
center
;
.show_img
{
margin-right
:
7px
;
}
.show_name
{
height
:
40px
;
line-height
:
normal
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
flex-start
;
justify-content
:
space-between
;
font-size
:
12px
;
.company
{
color
:
#ffcf0e
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
}
</
style
>
\ No newline at end of file
linkwe-ui/src/views/customerService/customerServiceManage/add.vue
0 → 100644
View file @
0efcb19
<
template
>
<div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'customer-service-manage-add'
,
data
()
{
return
{}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
linkwe-ui/src/views/customerService/customerServiceManage/detail.vue
0 → 100644
View file @
0efcb19
<
template
>
<div>
</div>
</
template
>
<
script
>
export
default
{
name
:
'customer-service-manage-detail'
,
data
()
{
return
{}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
linkwe-ui/src/views/customerService/customerServiceManage/index.vue
0 → 100644
View file @
0efcb19
<
template
>
<div
class=
"g-card g-pad20"
>
<div
class=
"operation"
>
<div
class=
"item"
>
<el-button
type=
"primary"
size=
"mini"
:disabled=
"list.length === 10"
>
新建客服
</el-button>
<span
class=
"sub"
v-if=
"list.length
< 11
"
>
还可以添加
{{
10
-
list
.
length
}}
个客服
</span>
</div>
<div
class=
"item"
>
<el-button
type=
"primary"
plain
size=
"mini"
@
click=
"showDialog = true"
>
升级服务
</el-button>
</div>
</div>
<el-table
v-loading=
"loading"
:data=
"list"
style=
"margin-top:20px;width: 100%"
>
<el-table-column
label=
"客服"
align=
"center"
prop=
""
min-width=
"120"
>
<template
slot-scope=
"
{ row }">
<show-customer-service
:url=
'row.url'
:name=
'row.test'
></show-customer-service>
</
template
>
</el-table-column>
<el-table-column
label=
"接待方式"
align=
"center"
min-width=
"100"
prop=
"name"
show-overflow-tooltip
/>
<el-table-column
label=
"接待员工"
align=
"center"
min-width=
"140"
prop=
"list"
>
<
template
slot-scope=
"{ row }"
>
<template
v-if=
"row.list.length
< 2
"
>
<el-tag
v-for=
"(data, key) in row.list"
:key=
"key"
size=
"mini"
>
{{
data
}}
</el-tag>
</
template
>
<
template
v-else
>
<template
v-for=
"(data, key) in row.list"
>
<el-tag
v-if=
"key
< 2
&&
data
"
:key=
"key"
size=
"mini"
>
{{
data
}}
</el-tag>
</
template
>
<el-tag
style=
"cursor:pointer;"
size=
"mini"
@
click=
"moreMemberFn(row)"
>
等{{row.list.length}}人
</el-tag>
</template>
</template>
</el-table-column>
<el-table-column
label=
"接待场景"
align=
"center"
min-width=
"140"
prop=
"list2"
>
<
template
slot-scope=
"{ row }"
>
<template
v-if=
"row.list2.length
< 2
"
>
<el-tag
v-for=
"(data, key) in row.list2"
:key=
"key"
size=
"mini"
>
{{
data
}}
</el-tag>
</
template
>
<
template
v-else
>
<template
v-for=
"(data, key) in row.list2"
>
<el-tag
v-if=
"key
< 2
&&
data
"
:key=
"key"
size=
"mini"
>
{{
data
}}
</el-tag>
</
template
>
<el-tag
style=
"cursor:pointer;"
size=
"mini"
>
等{{row.list2.length}}个
</el-tag>
</template>
</template>
</el-table-column>
<el-table-column
label=
"最近更新时间"
align=
"center"
prop=
"updateTime"
width=
"180"
>
</el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"180"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"{ row }"
>
<el-button
type=
"text"
>
详情
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-button
type=
"text"
>
编辑
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-button
type=
"text"
@
click=
"deleteFn(row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-dialog
title=
"升级服务"
:visible
.
sync=
"showDialog"
>
<p>
请前往企业微信后台->应用管理->微信客服详情页面,点击升级服务中的配置按钮,将专员服务及客户群服务根据需求配置好即可。
</p>
<p
style=
"margin: 20px 0;"
>
企业配置后,接待人员可发送添加服务专员或加入客户群的邀请给客户,让客户享受更好的服务。
</p>
<img
src=
"@/assets/drainageCode/service.png"
fit=
"fit"
style=
"width:100%;height:100%;"
></img>
<div
slot=
"footer"
class=
"dialog-footer"
>
<!-- <el-button @click="showDialog = false">取 消</el-button> -->
<el-button
type=
"primary"
@
click=
"showDialog = false"
>
我知道了
</el-button>
</div>
</el-dialog>
<el-dialog
title=
"接待员工"
:visible
.
sync=
"showMemberDialog"
width=
"600px"
>
<div>
<el-form
label-position=
"right"
label-width=
"100px"
>
<el-form-item
label=
"接待状态"
>
<el-select>
<el-option
value=
""
label=
"全部状态"
></el-option>
<el-option
value=
"0"
label=
"接待中"
></el-option>
<el-option
value=
"0"
label=
"停止接待"
></el-option>
</el-select>
</el-form-item>
</el-form>
<el-table
v-loading=
"loading"
:data=
"list"
style=
"margin-top:20px;width: 100%"
>
<el-table-column
label=
"员工"
align=
"center"
prop=
"name"
show-overflow-tooltip
/>
<el-table-column
label=
"所属部门"
align=
"center"
prop=
"name"
show-overflow-tooltip
/>
<el-table-column
label=
"接待状态"
align=
"center"
prop=
"name"
width=
"120px;"
></el-table-column>
</el-table>
<pagination
:total=
"memberPage.total"
:page
.
sync=
"memberPage.pageNum"
:limit
.
sync=
"memberPage.pageSize"
@
pagination=
"getMemberList()"
/>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"showMemberDialog = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"showMemberDialog = false"
>
确定
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
ShowCustomerService
from
"../components/ShowCustomerSevice.vue"
import
pic
from
'@/assets/drainageCode/service.png'
export
default
{
name
:
'customer-service-manage'
,
components
:
{
ShowCustomerService
},
data
()
{
return
{
loading
:
false
,
list
:
[{
url
:
'123'
,
test
:
'测试新建客服'
,
name
:
'DDD'
,
list
:
[
'姜鹏凯'
,
'姜鹏凯'
,
'姜鹏凯'
,
'姜鹏凯'
],
list2
:
[
'场景一'
,
'场景23'
,
'场景3'
]
}],
showDialog
:
false
,
showMemberDialog
:
false
,
memberPage
:
{
pageSize
:
10
,
pageNum
:
1
,
total
:
0
}
}
},
methods
:
{
moreMemberFn
(
data
)
{
this
.
showMemberDialog
=
true
this
.
getMemberList
()
},
getMemberList
()
{
},
deleteFn
(
data
)
{
if
(
data
)
{
this
.
$confirm
(
'请删除当前客服下所有关联场景后,再删除当前客服。'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
})
.
then
(()
=>
{
})
.
catch
(
function
()
{
})
return
false
}
this
.
$confirm
(
'是否确定删除当前客服?该操作不可恢复,请谨慎操作'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
// return remove(ids)
})
.
then
(()
=>
{
// this.search()
this
.
msgSuccess
(
'删除成功'
)
})
.
catch
(
function
()
{
})
}
},
created
()
{
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
<div>微信客服支持企业在微信内、外各个场景中接入,由用户发起咨询,企业进行回复</div>
`
)
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.operation
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.item
{
display
:
flex
;
.sub
{
font-size
:
12px
;
color
:
#999
;
margin-left
:
10px
;
align-self
:
flex-end
;
}
}
}
</
style
>
linkwe-ui/src/views/customerService/sceneManage/index.vue
0 → 100644
View file @
0efcb19
<
template
>
<div
class=
"g-card g-pad20"
>
<el-form
:inline=
"true"
label-width=
"80px"
label-position=
"left"
>
<el-form-item
label=
"场景名称"
>
<el-input
placeholder=
"请输入场景名称"
clearable
@
keyup
.
enter
.
native=
"search()"
/>
</el-form-item>
<el-form-item
label=
"所属客服"
prop=
""
>
<el-select>
<el-option
value=
""
label=
"全部"
></el-option>
<el-option
value=
"0"
label=
"客服1"
></el-option>
<el-option
value=
"0"
label=
"客服2"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"场景类型"
prop=
""
>
<el-select>
<el-option
value=
""
label=
"全部场景"
></el-option>
<el-option
value=
"0"
label=
"接待中"
></el-option>
<el-option
value=
"0"
label=
"停止接待"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label-width=
"0"
>
<!--
<el-button
v-hasPermi=
"['wecom:code:list']"
type=
"cyan"
@
click=
"getList(1)"
>
查询
</el-button>
-->
<el-button
type=
"primary"
@
click=
"search()"
>
查询
</el-button>
<el-button
@
click=
"resetQuery"
type=
"info"
plain
>
清空
</el-button>
</el-form-item>
</el-form>
<div
class=
"operation"
>
<div
class=
"item"
>
<el-button
type=
"primary"
size=
"mini"
@
click=
"addFn()"
>
新建场景
</el-button>
</div>
<div
class=
"item"
>
<el-button
type=
"primary"
plain
size=
"mini"
>
批量下载
</el-button>
<el-button
type=
"primary"
plain
size=
"mini"
>
批量删除
</el-button>
</div>
</div>
<el-table
v-loading=
"loading"
:data=
"list"
style=
"margin-top:20px;width: 100%"
>
<el-table-column
label=
"场景名称"
align=
"center"
prop=
""
min-width=
"100"
></el-table-column>
<el-table-column
label=
"场景分类"
align=
"center"
min-width=
"100"
prop=
"name"
show-overflow-tooltip
/>
<el-table-column
label=
"所属客服"
align=
"center"
min-width=
"160"
prop=
"list"
>
<template
slot-scope=
"
{ row }">
<show-customer-service
:url=
'row.url'
:name=
'row.test'
></show-customer-service>
</
template
>
</el-table-column>
<el-table-column
label=
"访问客户数"
align=
"center"
min-width=
"140"
prop=
""
></el-table-column>
<el-table-column
label=
"咨询客户数"
align=
"center"
min-width=
"140"
prop=
""
></el-table-column>
<el-table-column
label=
"接待客户数"
align=
"center"
min-width=
"140"
prop=
""
></el-table-column>
<el-table-column
label=
"最近更新时间"
align=
"center"
prop=
"updateTime"
width=
"180"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"230"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"{ row }"
>
<el-button
type=
"text"
>
复制链接
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-button
type=
"text"
>
下载二维码
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-button
type=
"text"
@
click=
"addFn(row)"
>
编辑
</el-button>
<el-divider
direction=
"vertical"
></el-divider>
<el-button
type=
"text"
@
click=
"deleteFn(row)"
>
删除
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
:total=
"total"
:page
.
sync=
"search.pageNum"
:limit
.
sync=
"search.pageSize"
@
pagination=
"getList()"
/>
<el-dialog
:title=
"state + '场景'"
:visible
.
sync=
"showDialog"
width=
"500px"
>
<div>
<el-form
ref=
"form"
:rules=
"formRules"
:model=
"form"
label-position=
"right"
label-width=
"100px"
>
<el-form-item
label=
"场景名称"
prop=
""
>
<el-input
placeholder=
"请输入场景名称"
show-word-limit
clearable
maxlength=
"15"
/>
</el-form-item>
<el-form-item
label=
"场景类型"
>
<el-select>
<el-option
value=
""
label=
"全部状态"
></el-option>
<el-option
value=
"0"
label=
"接待中"
></el-option>
<el-option
value=
"0"
label=
"停止接待"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"选择客服"
class=
"my-select"
>
<el-select>
<el-option
style=
"height:50px;padding-top: 5px;"
value=
""
label=
"全部状态"
>
<div
style=
"height: 40px;"
>
<show-customer-service
url=
'12333'
name=
'测试'
></show-customer-service>
</div>
</el-option>
<el-option
style=
"height:50px;padding-top: 5px;"
value=
""
label=
"全部状态"
>
<div
style=
"height: 40px;"
>
<show-customer-service
url=
'12333'
name=
'测试'
></show-customer-service>
</div>
</el-option>
<el-option
style=
"height:50px;padding-top: 5px;"
value=
""
label=
"全部状态"
>
<div
style=
"height: 40px;"
>
<show-customer-service
url=
'12333'
name=
'测试'
></show-customer-service>
</div>
</el-option>
</el-select>
</el-form-item>
</el-form>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"showDialog = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"showDialog = false"
>
确定
</el-button>
</div>
</el-dialog>
</div>
</template>
<
script
>
import
ShowCustomerService
from
"../components/ShowCustomerSevice.vue"
export
default
{
name
:
'scene-manage'
,
components
:
{
ShowCustomerService
},
data
()
{
return
{
loading
:
false
,
list
:
[{
url
:
'123'
,
test
:
'测试新建客服'
,
name
:
'DDD'
,
list
:
[
'姜鹏凯'
,
'姜鹏凯'
,
'姜鹏凯'
,
'姜鹏凯'
],
list2
:
[
'场景一'
,
'场景23'
,
'场景3'
]
}],
showDialog
:
false
,
search
:
{
pageSize
:
10
,
pageNum
:
1
,
},
total
:
0
,
state
:
'新建'
,
editData
:
{},
form
:
{},
formRules
:
{
}
}
},
methods
:
{
search
()
{
},
resetQuery
()
{
},
addFn
(
data
)
{
console
.
log
(
data
)
if
(
data
)
{
this
.
editData
=
data
this
.
state
=
'编辑'
}
else
{
this
.
state
=
'新建'
}
this
.
showDialog
=
true
},
getList
()
{
},
deleteFn
(
data
)
{
this
.
$confirm
(
'是否确定删除当前场景?该操作不可恢复,请谨慎操作'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
// return remove(ids)
})
.
then
(()
=>
{
// this.search()
this
.
msgSuccess
(
'删除成功'
)
})
.
catch
(
function
()
{
})
}
},
created
()
{
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
<div>可将客服链接或二维码可配置到公众号菜单、商城小程序等渠道场景,客服一键咨询</div>
`
)
}
}
</
script
>
<
style
lang=
"scss"
>
.operation
{
margin-top
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.item
{
display
:
flex
;
.sub
{
font-size
:
12px
;
color
:
#999
;
margin-left
:
10px
;
align-self
:
flex-end
;
}
}
}
</
style
>
linkwe-ui/src/views/customerService/searchRecord/index.vue
0 → 100644
View file @
0efcb19
<
template
>
<div
class=
"g-card g-pad20"
>
<el-form
:inline=
"true"
label-width=
"80px"
label-position=
"left"
>
<el-form-item
label=
"所属客服"
prop=
""
>
<el-select>
<el-option
value=
""
label=
"全部状态"
></el-option>
<el-option
value=
"0"
label=
"接待中"
></el-option>
<el-option
value=
"0"
label=
"停止接待"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"咨询场景"
prop=
""
>
<el-select>
<el-option
value=
""
label=
"全部场景"
></el-option>
<el-option
value=
"0"
label=
"场景1"
></el-option>
<el-option
value=
"0"
label=
"场景2"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"是否企业客户"
prop=
""
label-width=
"100px"
>
<el-select>
<el-option
value=
""
label=
"全部"
></el-option>
<el-option
value=
"0"
label=
"是"
></el-option>
<el-option
value=
"0"
label=
"否"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"选择员工"
prop=
"name"
>
<el-input
:value=
"search.name"
readonly
@
focus=
"dialogVisible = true"
placeholder=
"请选择员工"
/>
</el-form-item>
<el-form-item
label-width=
"0"
>
<!--
<el-button
v-hasPermi=
"['wecom:code:list']"
type=
"cyan"
@
click=
"getList(1)"
>
查询
</el-button>
-->
<el-button
type=
"primary"
@
click=
"search()"
>
查询
</el-button>
<el-button
@
click=
"resetQuery"
type=
"info"
plain
>
清空
</el-button>
</el-form-item>
</el-form>
<div
class=
"operation"
>
<div
class=
"item"
>
</div>
<div
class=
"item"
>
<el-button
type=
"primary"
plain
size=
"mini"
>
导出Excel
</el-button>
</div>
</div>
<el-table
v-loading=
"loading"
:data=
"list"
style=
"margin-top:20px;width: 100%"
>
<el-table-column
label=
"咨询客户"
align=
"center"
prop=
""
min-width=
"140"
>
<template
slot-scope=
"
{ row }">
<show-customer-service
:url=
'row.url'
:name=
'row.test'
></show-customer-service>
</
template
>
</el-table-column>
<el-table-column
label=
"是否是企业客户"
align=
"center"
min-width=
"100"
prop=
"name"
show-overflow-tooltip
/>
<el-table-column
label=
"咨询场景"
align=
"center"
min-width=
"100"
prop=
"name"
show-overflow-tooltip
/>
<el-table-column
label=
"所属客服"
align=
"center"
min-width=
"160"
prop=
"list"
>
<
template
slot-scope=
"{ row }"
>
<show-customer-service
:url=
'row.url'
:name=
'row.test'
showicon
></show-customer-service>
</
template
>
</el-table-column>
<el-table-column
label=
"接待方式"
align=
"center"
min-width=
"140"
prop=
""
></el-table-column>
<el-table-column
label=
"接待员工"
align=
"center"
min-width=
"140"
prop=
""
></el-table-column>
<el-table-column
label=
"接待客户数"
align=
"center"
min-width=
"140"
prop=
""
></el-table-column>
<el-table-column
label=
"咨询开始时间"
align=
"center"
prop=
"updateTime"
width=
"180"
></el-table-column>
<el-table-column
label=
"咨询结束时间"
align=
"center"
prop=
"updateTime"
width=
"180"
></el-table-column>
<el-table-column
label=
"咨询时长"
align=
"center"
prop=
"updateTime"
width=
"100"
></el-table-column>
<el-table-column
label=
"操作"
align=
"center"
fixed=
"right"
width=
"230"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"{ row }"
>
<el-button
type=
"text"
>
咨询记录
</el-button>
</
template
>
</el-table-column>
</el-table>
<pagination
:total=
"total"
:page
.
sync=
"search.pageNum"
:limit
.
sync=
"search.pageSize"
@
pagination=
"getList()"
/>
<SelectUser
:visible
.
sync=
"dialogVisible"
title=
"组织架构"
:defaultValues=
"userArray"
@
success=
"getSelectUser"
></SelectUser>
</div>
</template>
<
script
>
import
SelectUser
from
'@/components/SelectUser'
import
ShowCustomerService
from
"../components/ShowCustomerSevice.vue"
export
default
{
name
:
'search-record'
,
components
:
{
ShowCustomerService
,
SelectUser
},
data
()
{
return
{
loading
:
false
,
list
:
[{
url
:
'123'
,
test
:
'测试新建客服'
,
name
:
'DDD'
,
list
:
[
'姜鹏凯'
,
'姜鹏凯'
,
'姜鹏凯'
,
'姜鹏凯'
],
list2
:
[
'场景一'
,
'场景23'
,
'场景3'
]
}],
search
:
{
pageSize
:
10
,
pageNum
:
1
,
name
:
''
},
total
:
0
,
form
:
{},
formRules
:
{},
dialogVisible
:
false
,
userArray
:
[]
}
},
methods
:
{
getSelectUser
(
data
)
{
this
.
userArray
=
data
this
.
search
.
name
=
this
.
userArray
.
map
(
function
(
obj
,
index
)
{
return
obj
.
name
}).
join
(
","
)
},
search
()
{
},
resetQuery
()
{
},
getList
()
{
},
deleteFn
(
data
)
{
this
.
$confirm
(
'是否确定删除当前场景?该操作不可恢复,请谨慎操作'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
})
.
then
(()
=>
{
// return remove(ids)
})
.
then
(()
=>
{
// this.search()
this
.
msgSuccess
(
'删除成功'
)
})
.
catch
(
function
()
{
})
}
},
created
()
{
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
<div>查看所有客服场景中客户咨询的详细记录</div>
`
)
}
}
</
script
>
<
style
lang=
"scss"
>
.operation
{
margin-top
:
10px
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.item
{
display
:
flex
;
.sub
{
font-size
:
12px
;
color
:
#999
;
margin-left
:
10px
;
align-self
:
flex-end
;
}
}
}
</
style
>
linkwe-ui/src/views/customerService/statistics/index.vue
0 → 100644
View file @
0efcb19
<
template
>
<div>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"场景分析"
name=
"first"
>
<Scene
/>
</el-tab-pane>
<el-tab-pane
label=
"咨询分析"
name=
"second"
>
<Search
/>
</el-tab-pane>
</el-tabs>
</div>
</
template
>
<
script
>
import
Scene
from
'./scene.vue'
import
Search
from
"./search.vue"
export
default
{
name
:
'customer-service-statistics'
,
components
:
{
Scene
,
Search
},
data
()
{
return
{
activeName
:
'first'
}
},
methods
:
{
},
created
()
{
this
.
$store
.
dispatch
(
'app/setBusininessDesc'
,
`
<div>渠道场景与客服维度相关数据统计与分析</div>
`
)
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
\ No newline at end of file
linkwe-ui/src/views/customerService/statistics/scene.vue
0 → 100644
View file @
0efcb19
<
template
>
<div>
<div
class=
"total-list"
>
<CardGroupIndex
:data=
"cardData"
></CardGroupIndex>
</div>
</div>
</
template
>
<
script
>
import
CardGroupIndex
from
'@/components/CardGroupIndex.vue'
export
default
{
name
:
'scene-statistics'
,
components
:
{
CardGroupIndex
},
data
()
{
return
{
cardData
:
[
{
title
:
'访问客户总数'
,
tips
:
'进入咨询页面的客户总数(包含重复);'
,
value
:
1234
,
noArrow
:
true
},
{
title
:
'咨询客户总数'
,
tips
:
'企业员工在单聊中发送的消息的数量'
,
value
:
12345
,
},
{
title
:
'接待客户总数'
,
tips
:
'一个自然日内,客户首先发消息的会话中,成员回复了的会话的占比。若数据展示为“-”代表没有给成员发送消息的客户,该项无法计算'
,
value
:
1222453
,
title1
:
'较前日'
,
value1
:
344
},
{
title
:
'平均首次回复时长(分)'
,
tips
:
'一个自然日内,客户首先发消息至成员回复之间的时长,为首次回复时长。所有的首次回复总时长/已回复单聊总数,即为平均首次回复时长。若数据展示为“-”代表没有给成员发送消息的客户,该项无法计算'
,
value
:
1222453
,
title1
:
'较前日'
,
value1
:
344
}
],
}
},
methods
:
{
},
created
()
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.total-list
{
.item
{
padding
:
10px
;
background-color
:
#fff
;
}
}
</
style
>
\ No newline at end of file
linkwe-ui/src/views/customerService/statistics/search.vue
0 → 100644
View file @
0efcb19
<
template
>
<div>
2222222222222
</div>
</
template
>
<
script
>
export
default
{
name
:
'search-statistics'
,
data
()
{
return
{}
},
methods
:
{
},
created
()
{
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
\ No newline at end of file
linkwe-ui/src/views/groupMessage/add.vue
View file @
0efcb19
...
...
@@ -44,7 +44,8 @@
<el-form-item
v-if=
"form.pushRange == 1"
>
<div>
<div
class=
"item-magin aic"
>
<div
class=
"item-name"
>
添加人
</div>
<div
class=
"item-name"
>
<span
style=
"color:red;"
>
*
</span>
添加人
</div>
<el-button
class=
"mr10"
size=
"mini"
icon=
"el-icon-circle-plus-outline"
type=
"primary"
plain
@
click=
"onSelectUser(2)"
>
选择添加人
</el-button>
<el-tag
v-for=
"item in form.sendClientUserList"
:key=
"item.userId"
>
{{
item
.
name
}}
</el-tag>
</div>
...
...
@@ -58,7 +59,8 @@
</el-select>
</div>
<div
class=
"item-magin"
>
<div
class=
"item-name"
>
添加时间
</div>
<div
class=
"item-name"
>
<span
style=
"color:red;"
>
*
</span>
添加时间
</div>
<el-date-picker
v-model=
"form.rangeTime"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
>
</el-date-picker>
</div>
...
...
@@ -295,6 +297,14 @@
trackState
:
''
}
if
(
this
.
form
.
pushRange
==
1
)
{
if
(
!
this
.
form
.
sendClientUserList
.
length
)
{
this
.
msgError
(
'请选择添加人!'
)
return
}
if
(
!
this
.
form
.
rangeTime
[
0
]
||
!
this
.
form
.
rangeTime
[
1
])
{
this
.
msgError
(
'请选择添加时间!'
)
return
}
data
.
userIds
=
this
.
form
.
sendClientUserList
.
map
(
i
=>
i
.
userId
).
join
(
','
)
data
.
tagIds
=
this
.
form
.
sendClientTagList
.
map
(
i
=>
i
.
tagId
).
join
(
','
)
data
.
beginTime
=
this
.
form
.
rangeTime
[
0
]
?
moment
(
this
.
form
.
rangeTime
[
0
]).
format
(
"YYYY-MM-DD"
)
:
''
...
...
@@ -302,15 +312,18 @@
data
.
gender
=
this
.
form
.
gender
data
.
trackState
=
this
.
form
.
trackState
getCustomerList
(
data
).
then
(
res
=>
{
this
.
form
.
customerList
=
res
.
data
if
(
res
.
data
&&
res
.
data
.
length
)
{
this
.
currentActive
=
2
if
(
res
.
code
===
200
)
{
this
.
form
.
customerList
=
res
.
data
if
(
res
.
data
&&
res
.
data
.
length
)
{
this
.
currentActive
=
2
}
else
{
this
.
msgError
(
'未找到可发送客户!'
)
}
}
else
{
this
.
msgError
(
'未找到可发送客户!'
)
this
.
msgError
(
res
.
msg
)
}
})
}
else
{
this
.
currentActive
=
2
}
}
else
{
...
...
linkwe-ui/src/views/groupMessage/detail.vue
View file @
0efcb19
...
...
@@ -341,7 +341,7 @@
}
.operation
{
display
:
flex
;
align-items
:
end
;
align-items
:
flex-
end
;
font-size
:
12px
;
color
:
#999
;
}
...
...
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