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 256c3cc0
authored
Feb 19, 2022
by
姜鹏凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug fixed
1 parent
410610f8
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
80 additions
and
27 deletions
linkwe-ui/src/api/drainageCode/customerService.js
linkwe-ui/src/views/customerService/components/RecordListInPhone.vue
linkwe-ui/src/views/customerService/components/SearchTitle.vue
linkwe-ui/src/views/customerService/components/WelcomeInPhonePre.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/api/drainageCode/customerService.js
View file @
256c3cc
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
const
service
=
window
.
CONFIG
.
services
.
kf
const
service
=
window
.
CONFIG
.
services
.
kf
// 同步客服
export
function
setAsync
()
{
return
request
({
url
:
service
+
'/wecom/kf/list/async'
})
}
// 客服接待人员列表
export
function
getMemeberInCustomer
(
data
)
{
return
request
({
url
:
service
+
'/wecom/kf/servicer/list'
,
params
:
data
})
}
// 客服列表
// 客服列表
export
function
getList
(
params
)
{
export
function
getList
(
params
)
{
return
request
({
return
request
({
...
...
linkwe-ui/src/views/customerService/components/RecordListInPhone.vue
View file @
256c3cc
...
@@ -154,7 +154,7 @@
...
@@ -154,7 +154,7 @@
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
border-bottom-left-radius
:
20px
;
border-bottom-left-radius
:
20px
;
border-bottom-right-radius
:
20px
;
border-bottom-right-radius
:
20px
;
padding
:
2
0px
;
padding
:
1
0px
;
.time
{
.time
{
width
:
100%
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
...
...
linkwe-ui/src/views/customerService/components/SearchTitle.vue
View file @
256c3cc
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
</el-select>
-->
</el-select>
-->
<el-select
size=
"mini"
@
change=
"submit()"
v-model=
"data.scenes"
clearable
placeholder=
"请选择场景"
>
<el-select
size=
"mini"
@
change=
"submit()"
v-model=
"data.scenes"
clearable
placeholder=
"请选择场景"
>
<el-option
value=
""
label=
"全部场景"
></el-option>
<el-option
value=
""
label=
"全部场景"
></el-option>
<el-option
v-for=
"(data, index) in sceneList"
:key=
"index"
:value=
"data.
id
"
:label=
"data.name"
></el-option>
<el-option
v-for=
"(data, index) in sceneList"
:key=
"index"
:value=
"data.
scenes
"
:label=
"data.name"
></el-option>
</el-select>
</el-select>
</div>
</div>
<div
class=
"item"
v-if=
"showMember"
>
<div
class=
"item"
v-if=
"showMember"
>
...
...
linkwe-ui/src/views/customerService/components/WelcomeInPhonePre.vue
View file @
256c3cc
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
transform
:
translateX
(
-50%
);
transform
:
translateX
(
-50%
);
border-bottom-left-radius
:
20px
;
border-bottom-left-radius
:
20px
;
border-bottom-right-radius
:
20px
;
border-bottom-right-radius
:
20px
;
padding
:
2
0px
;
padding
:
1
0px
;
.time
{
.time
{
width
:
100%
;
width
:
100%
;
text-align
:
center
;
text-align
:
center
;
...
...
linkwe-ui/src/views/customerService/customerServiceManage/index.vue
View file @
256c3cc
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
<span
class=
"sub"
v-if=
"list.length
< 11
"
>
还可以添加
{{
10
-
list
.
length
}}
个客服
</span>
<span
class=
"sub"
v-if=
"list.length
< 11
"
>
还可以添加
{{
10
-
list
.
length
}}
个客服
</span>
</div>
</div>
<div
class=
"item"
>
<div
class=
"item"
>
<el-button
type=
"primary"
size=
"mini"
v-loading=
"asyncLoading"
@
click=
"setAsyncFn"
>
同步客服
</el-button>
<el-button
type=
"primary"
plain
size=
"mini"
@
click=
"showDialog = true"
>
升级服务
</el-button>
<el-button
type=
"primary"
plain
size=
"mini"
@
click=
"showDialog = true"
>
升级服务
</el-button>
</div>
</div>
</div>
</div>
...
@@ -36,11 +38,11 @@
...
@@ -36,11 +38,11 @@
<el-table-column
label=
"接待场景"
align=
"center"
min-width=
"140"
prop=
"list2"
>
<el-table-column
label=
"接待场景"
align=
"center"
min-width=
"140"
prop=
"list2"
>
<
template
slot-scope=
"{ row }"
v-if=
"row.scenesList"
>
<
template
slot-scope=
"{ row }"
v-if=
"row.scenesList"
>
<template
v-if=
"row.scenesList.length
< 2
"
>
<template
v-if=
"row.scenesList.length
< 2
"
>
<el-tag
v-for=
"(data, key) in row.scenesList
"
:key=
"key"
size=
"mini"
>
{{
data
.
scenesName
}}
</el-tag>
<el-tag
style=
"cursor:pointer;"
v-for=
"(data, key) in row.scenesList"
@
click=
"gotoScene(row)
"
:key=
"key"
size=
"mini"
>
{{
data
.
scenesName
}}
</el-tag>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<template
v-for=
"(data, key) in row.scenesList"
>
<template
v-for=
"(data, key) in row.scenesList"
>
<el-tag
v-if=
"key
< 2
&&
data
"
:key=
"key"
size=
"mini
"
>
{{
data
.
scenesName
}}
</el-tag>
<el-tag
style=
"cursor:pointer;"
v-if=
"key
< 2
&&
data
"
:key=
"key"
size=
"mini"
@
click=
"gotoScene(row)
"
>
{{
data
.
scenesName
}}
</el-tag>
</
template
>
</
template
>
<el-tag
style=
"cursor:pointer;"
size=
"mini"
@
click=
"gotoScene(row)"
>
等{{row.scenesList.length}}个
</el-tag>
<el-tag
style=
"cursor:pointer;"
size=
"mini"
@
click=
"gotoScene(row)"
>
等{{row.scenesList.length}}个
</el-tag>
</template>
</template>
...
@@ -68,23 +70,27 @@
...
@@ -68,23 +70,27 @@
</div>
</div>
</el-dialog>
</el-dialog>
<el-dialog
title=
"接待员工"
:visible
.
sync=
"showMemberDialog"
width=
"600px"
>
<el-dialog
title=
"接待员工"
:visible
.
sync=
"showMemberDialog"
width=
"600px"
>
<div>
<el-form
label-position=
"right"
label-width=
"100px"
>
<el-form
label-position=
"right"
label-width=
"100px"
>
<el-form-item
label=
"接待状态"
>
<el-form-item
label=
"接待状态"
>
<el-select
>
<el-select
v-model=
"memberPage.status"
@
change=
"changeList()"
>
<el-option
value=
""
label=
"全部状态"
></el-option>
<el-option
value=
""
label=
"全部状态"
></el-option>
<el-option
value=
"0"
label=
"接待中"
></el-option>
<el-option
:
value=
"0"
label=
"接待中"
></el-option>
<el-option
value=
"0
"
label=
"停止接待"
></el-option>
<el-option
:value=
"1
"
label=
"停止接待"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
v-loading=
"loading"
:data=
"list"
style=
"margin-top:20px;width: 100%"
>
<div
style=
"max-height: 400px;overflow-y:auto;"
>
<el-table-column
label=
"员工"
align=
"center"
prop=
"name"
show-overflow-tooltip
/>
<el-table
v-loading=
"loading"
:data=
"memberList"
style=
"margin-top:20px;width: 100%"
>
<el-table-column
label=
"所属部门"
align=
"center"
prop=
"name"
show-overflow-tooltip
/>
<el-table-column
label=
"员工"
align=
"center"
prop=
"userName"
show-overflow-tooltip
/>
<el-table-column
label=
"接待状态"
align=
"center"
prop=
"name"
width=
"120px;"
></el-table-column>
<el-table-column
label=
"所属部门"
align=
"center"
prop=
"deptName"
show-overflow-tooltip
/>
<el-table-column
label=
"接待状态"
align=
"center"
prop=
"status"
width=
"120px;"
>
<
template
slot-scope=
"{ row }"
>
{{
row
.
status
===
0
?
'接待中'
:
'停止接待'
}}
</
template
>
</el-table-column>
</el-table>
</el-table>
<pagination
:total=
"memberPage.total"
:page
.
sync=
"memberPage.pageNum"
:limit
.
sync=
"memberPage.pageSize"
@
pagination=
"getMemberList()"
/>
</div>
</div>
<pagination
:total=
"memberPage.total"
:page
.
sync=
"memberPage.pageNum"
:limit
.
sync=
"memberPage.pageSize"
@
pagination=
"getMemberList()"
/>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"showMemberDialog = false"
>
取 消
</el-button>
<el-button
@
click=
"showMemberDialog = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"showMemberDialog = false"
>
确定
</el-button>
<el-button
type=
"primary"
@
click=
"showMemberDialog = false"
>
确定
</el-button>
...
@@ -95,7 +101,7 @@
...
@@ -95,7 +101,7 @@
<
script
>
<
script
>
import
ShowCustomerService
from
"../components/ShowCustomerSevice.vue"
import
ShowCustomerService
from
"../components/ShowCustomerSevice.vue"
import
pic
from
'@/assets/drainageCode/service.png'
import
pic
from
'@/assets/drainageCode/service.png'
import
{
getList
,
remove
}
from
'@/api/drainageCode/customerService.js'
import
{
getList
,
remove
,
setAsync
,
getMemeberInCustomer
}
from
'@/api/drainageCode/customerService.js'
export
default
{
export
default
{
name
:
'customer-service-manage'
,
name
:
'customer-service-manage'
,
components
:
{
components
:
{
...
@@ -103,19 +109,31 @@
...
@@ -103,19 +109,31 @@
},
},
data
()
{
data
()
{
return
{
return
{
asyncLoading
:
false
,
loading
:
false
,
loading
:
false
,
tableLoading
:
false
,
tableLoading
:
false
,
list
:
[],
list
:
[],
memberList
:
[],
showDialog
:
false
,
showDialog
:
false
,
showMemberDialog
:
false
,
showMemberDialog
:
false
,
memberPage
:
{
memberPage
:
{
pageSize
:
10
,
pageSize
:
10
,
pageNum
:
1
,
pageNum
:
1
,
total
:
0
total
:
0
,
status
:
''
,
openKfId
:
''
,
kfId
:
''
}
}
}
}
},
},
methods
:
{
methods
:
{
setAsyncFn
()
{
this
.
asyncLoading
=
true
setAsync
().
then
(
res
=>
{
this
.
asyncLoading
=
false
this
.
getData
()
})
},
gotoDetail
(
data
)
{
gotoDetail
(
data
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/drainageCode/customerService/detail'
,
path
:
'/drainageCode/customerService/detail'
,
...
@@ -140,23 +158,38 @@
...
@@ -140,23 +158,38 @@
},
},
getData
()
{
getData
()
{
this
.
tableLoading
=
true
this
.
tableLoading
=
true
getList
().
then
(
res
=>
{
getList
(
{
orderByColumn
:
'wki.update_time'
,
isAsc
:
'desc'
}).
then
(
res
=>
{
this
.
list
=
res
.
rows
this
.
list
=
res
.
rows
this
.
tableLoading
=
false
this
.
tableLoading
=
false
})
})
},
},
changeList
()
{
this
.
memberPage
.
pageNum
=
1
this
.
getMemberList
()
},
moreMemberFn
(
data
)
{
moreMemberFn
(
data
)
{
this
.
memberPage
.
openKfId
=
data
.
openKfId
this
.
memberPage
.
kfId
=
data
.
kfId
this
.
showMemberDialog
=
true
this
.
showMemberDialog
=
true
this
.
getMemberList
()
this
.
getMemberList
()
},
},
getMemberList
()
{
getMemberList
()
{
this
.
loading
=
true
getMemeberInCustomer
(
this
.
memberPage
).
then
(
res
=>
{
this
.
loading
=
false
this
.
memberList
=
res
.
rows
this
.
memberPage
.
total
=
Number
(
res
.
total
)
})
},
},
gotoScene
(
data
)
{
gotoScene
(
data
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/drainageCode/customerService/sceneManage'
,
path
:
'/drainageCode/customerService/sceneManage'
,
query
:
{
query
:
{
kfid
:
data
.
i
d
openKfId
:
data
.
openKfI
d
}
}
})
})
},
},
...
...
linkwe-ui/src/views/customerService/sceneManage/index.vue
View file @
256c3cc
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
name
:
''
,
name
:
''
,
type
:
''
,
type
:
''
,
openKfId
:
''
,
openKfId
:
''
,
orderByColumn
:
'update_time'
,
orderByColumn
:
'
wks.
update_time'
,
isAsc
:
'desc'
isAsc
:
'desc'
},
},
total
:
0
,
total
:
0
,
...
@@ -252,8 +252,8 @@
...
@@ -252,8 +252,8 @@
pageNum
:
1
,
pageNum
:
1
,
name
:
''
,
name
:
''
,
type
:
''
,
type
:
''
,
k
fId
:
''
,
openK
fId
:
''
,
orderByColumn
:
'update_time'
,
orderByColumn
:
'
wks.
update_time'
,
isAsc
:
'desc'
isAsc
:
'desc'
}
}
this
.
getData
()
this
.
getData
()
...
@@ -315,8 +315,8 @@
...
@@ -315,8 +315,8 @@
})
})
},
},
created
()
{
created
()
{
if
(
this
.
$route
.
query
.
kfi
d
)
{
if
(
this
.
$route
.
query
.
openKfI
d
)
{
this
.
search
.
kfId
=
this
.
$router
.
query
.
kfi
d
this
.
search
.
openKfId
=
this
.
$route
.
query
.
openKfI
d
}
}
getList
().
then
(
res
=>
{
getList
().
then
(
res
=>
{
this
.
customerList
=
res
.
rows
this
.
customerList
=
res
.
rows
...
...
linkwe-ui/src/views/customerService/searchRecord/index.vue
View file @
256c3cc
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
<el-form-item
label=
"咨询场景"
>
<el-form-item
label=
"咨询场景"
>
<el-select
v-model=
"search.scene"
>
<el-select
v-model=
"search.scene"
>
<el-option
value=
""
label=
"全部场景"
></el-option>
<el-option
value=
""
label=
"全部场景"
></el-option>
<el-option
v-for=
"(data, index) in sceneList"
:key=
"index"
:value=
"data.
id
"
:label=
"data.name"
></el-option>
<el-option
v-for=
"(data, index) in sceneList"
:key=
"index"
:value=
"data.
scenes
"
:label=
"data.name"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"是否企业客户"
label-width=
"100px"
>
<el-form-item
label=
"是否企业客户"
label-width=
"100px"
>
...
@@ -109,7 +109,9 @@
...
@@ -109,7 +109,9 @@
isQyCustomer
:
''
,
//0-是 1-否,
isQyCustomer
:
''
,
//0-是 1-否,
openKfId
:
''
,
openKfId
:
''
,
scene
:
''
,
scene
:
''
,
userId
:
''
userId
:
''
,
orderByColumn
:
'record.session_start_time'
,
isAsc
:
'desc'
},
},
total
:
0
,
total
:
0
,
form
:
{},
form
:
{},
...
@@ -175,7 +177,9 @@
...
@@ -175,7 +177,9 @@
isQyCustomer
:
''
,
//0-是 1-否,
isQyCustomer
:
''
,
//0-是 1-否,
openKfId
:
''
,
openKfId
:
''
,
scene
:
''
,
scene
:
''
,
userId
:
''
userId
:
''
,
orderByColumn
:
'record.session_start_time'
,
isAsc
:
'desc'
}
}
this
.
getList
()
this
.
getList
()
},
},
...
...
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