Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
仟微科技
Link Wechat
提交
9a44d76f
Link Wechat
项目概览
仟微科技
/
Link Wechat
通知
48
Star
3
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Link Wechat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9a44d76f
编写于
8月 05, 2021
作者:
孙
孙喜旺
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
会话存档客户检索接口调整
上级
d2f0484b
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
56 addition
and
31 deletion
+56
-31
linkwe-ui/src/api/conversation/content.js
linkwe-ui/src/api/conversation/content.js
+14
-4
linkwe-ui/src/views/conversation/component/customerList.vue
linkwe-ui/src/views/conversation/component/customerList.vue
+5
-5
linkwe-ui/src/views/conversation/page/userTest.vue
linkwe-ui/src/views/conversation/page/userTest.vue
+37
-22
未找到文件。
linkwe-ui/src/api/conversation/content.js
浏览文件 @
9a44d76f
import
request
from
'
@/utils/request
'
const
getExternalChatList
=
(
params
)
=>
{
return
request
({
url
:
'
/
linkwe
chat/msg/selectExternalChatList/
'
+
params
.
fromId
,
url
:
'
/chat/msg/selectExternalChatList/
'
+
params
.
fromId
,
method
:
'
get
'
})
}
const
selectAloneChatList
=
(
params
)
=>
{
return
request
({
url
:
'
/chat/msg/selectAloneChatList
\n
/
'
,
method
:
'
get
'
,
params
})
}
const
getInternalChatList
=
(
params
)
=>
{
return
request
({
url
:
'
/
linkwe
chat/msg/selectInternalChatList/
'
+
params
.
fromId
,
url
:
'
/chat/msg/selectInternalChatList/
'
+
params
.
fromId
,
method
:
'
get
'
})
}
const
getGroupChatList
=
(
params
)
=>
{
return
request
({
url
:
'
/
linkwe
chat/msg/selectGroupChatList/
'
+
params
.
fromId
,
url
:
'
/chat/msg/selectGroupChatList/
'
+
params
.
fromId
,
method
:
'
get
'
})
}
const
chatList
=
(
params
)
=>
{
return
request
({
url
:
'
/
linkwe
chat/msg/list
'
,
url
:
'
/chat/msg/list
'
,
method
:
'
get
'
,
params
,
})
...
...
@@ -66,6 +75,7 @@ export const content = {
indexEchart
,
indexTable
,
getExternalChatList
,
selectAloneChatList
,
getInternalChatList
,
getGroupChatList
,
chatList
,
...
...
linkwe-ui/src/views/conversation/component/customerList.vue
浏览文件 @
9a44d76f
...
...
@@ -9,17 +9,17 @@
>
<el-row
style=
"padding:10px"
>
<el-col
:span=
"3"
><img
:src=
"item.
receiveWeUser.avatarMediaid
"
><img
:src=
"item.
avatar
"
/></el-col>
<el-col
:span=
"21"
>
<p>
{{
item
.
receiveWeUser
.
name
}}
{{
item
.
name
}}
<span
class=
"fr gray"
>
{{
parseTime
(
item
.
finalChatContext
.
msgtime
)
item
.
msgTime
}}
</span>
</p>
<p
class=
"gray padt10"
v-if=
"item.
finalChatContext.tex
t"
>
{{
item
.
finalChatContext
.
text
.
content
}}
<p
class=
"gray padt10"
v-if=
"item.
contac
t"
>
{{
JSON
.
parse
(
item
.
contact
)
.
content
}}
</p>
</el-col>
</el-row>
...
...
linkwe-ui/src/views/conversation/page/userTest.vue
浏览文件 @
9a44d76f
...
...
@@ -42,6 +42,7 @@
placeholder=
"搜索聊天记录"
prefix-icon=
"el-icon-search"
v-model=
"chatContent"
@
keyup.enter.native=
"chatMsgList"
>
</el-input>
</div>
...
...
@@ -271,7 +272,7 @@ export default {
CList
:
[],
personList
:
[],
loading
:
false
,
employ
Id
:
''
,
from
Id
:
''
,
chatData
:
{},
allChat
:
[],
...
...
@@ -288,7 +289,7 @@ export default {
methods
:
{
chatFn
(
data
)
{
this
.
chatData
=
data
console
.
log
(
data
)
console
.
log
(
data
,
"
<><><><>><
"
)
this
.
activeNameThreeClick
()
},
groupFn
(
data
)
{
...
...
@@ -305,29 +306,43 @@ export default {
personCheck
(
data
,
e
)
{
this
.
personIndex
=
e
this
.
talkName
=
data
.
name
this
.
employ
Id
=
data
.
externalUserid
this
.
from
Id
=
data
.
externalUserid
this
.
getChatList
()
},
getChatList
(
flag
)
{
if
(
!
this
.
employ
Id
)
{
if
(
!
this
.
from
Id
)
{
return
}
if
(
flag
)
{
this
.
loading
=
true
}
this
.
personList
=
[]
content
.
getTree
({
fromId
:
this
.
employId
,
searchType
:
this
.
activeName
})
.
then
(({
rows
})
=>
{
this
.
loading
=
false
this
.
personList
=
rows
})
.
catch
((
err
)
=>
{
this
.
loading
=
false
})
if
(
this
.
activeName
==
'
0
'
){
content
.
selectAloneChatList
({
fromId
:
this
.
fromId
,
contact
:
this
.
chatContent
})
.
then
(({
data
})
=>
{
this
.
loading
=
false
this
.
personList
=
data
})
.
catch
((
err
)
=>
{
this
.
loading
=
false
})
}
else
{
content
.
getGroupChatList
({
roomId
:
this
.
fromId
})
.
then
(({
data
})
=>
{
this
.
loading
=
false
this
.
personList
=
data
})
.
catch
((
err
)
=>
{
this
.
loading
=
false
})
}
},
activeNameThreeClick
(
page
,
group
)
{
if
(
!!!
page
)
{
...
...
@@ -345,8 +360,10 @@ export default {
}
else
if
(
this
.
activeNameThree
==
4
)
{
msgType
=
'
voice
'
}
let
query
=
{
fromId
:
this
.
chatData
.
fromId
,
fromId
:
this
.
fromId
,
toList
:
this
.
chatData
.
receiver
,
msgType
,
pageSize
:
'
10
'
,
pageNum
:
this
.
currentPage
,
...
...
@@ -392,11 +409,6 @@ export default {
pageNum
:
1
,
pageSize
:
999
,
name
:
this
.
employName
,
userId
:
''
,
tagIds
:
''
,
beginTime
:
''
,
endTime
:
''
,
status
:
''
,
isOpenChat
:
'
1
'
}
content
.
listByCustomer
(
querys
).
then
((
res
)
=>
{
...
...
@@ -404,6 +416,9 @@ export default {
this
.
CList
=
res
.
rows
this
.
employAmount
=
res
.
total
})
},
chatMsgList
()
{
this
.
getChatList
();
}
},
mounted
()
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录