Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_admin
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_admin
Commits
500dc43a
Commit
500dc43a
authored
Nov 09, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 优化会话记录数据展示
parent
8d85fb63
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
1 deletion
+78
-1
src/views/customerService/chatList.vue
src/views/customerService/chatList.vue
+16
-1
src/views/customerService/components/messageDetail.vue
src/views/customerService/components/messageDetail.vue
+62
-0
No files found.
src/views/customerService/chatList.vue
View file @
500dc43a
...
@@ -48,6 +48,13 @@
...
@@ -48,6 +48,13 @@
:page.sync=
"listQuery.page"
:page.sync=
"listQuery.page"
:limit.sync=
"listQuery.limit"
:limit.sync=
"listQuery.limit"
@
pagination=
"getList"
/>
@
pagination=
"getList"
/>
<el-drawer
:visible.sync=
"showDetail"
:with-header=
"false"
size=
"40%"
>
<span>
详情
</span>
<!-- <MessageDetail :from-account="fromAccount" :to-account="toAccount" />-->
</el-drawer>
</div>
</div>
</template>
</template>
...
@@ -55,10 +62,12 @@
...
@@ -55,10 +62,12 @@
<
script
>
<
script
>
import
{
findAiChatList
,
getUserList
}
from
'
@/api/business/chat
'
import
{
findAiChatList
,
getUserList
}
from
'
@/api/business/chat
'
import
Pagination
from
'
@/components/Pagination
'
import
Pagination
from
'
@/components/Pagination
'
import
MessageDetail
from
'
./components/messageDetail
'
export
default
{
export
default
{
name
:
'
ChatList
'
,
name
:
'
ChatList
'
,
components
:
{
components
:
{
MessageDetail
,
Pagination
Pagination
},
},
data
()
{
data
()
{
...
@@ -70,7 +79,10 @@ export default {
...
@@ -70,7 +79,10 @@ export default {
},
},
list
:
[],
list
:
[],
total
:
0
,
total
:
0
,
customerList
:
[]
customerList
:
[],
showDetail
:
false
,
fromAccount
:
''
,
toAccount
:
''
}
}
},
},
created
()
{
created
()
{
...
@@ -97,6 +109,9 @@ export default {
...
@@ -97,6 +109,9 @@ export default {
},
},
handleToDetail
(
row
)
{
handleToDetail
(
row
)
{
this
.
fromAccount
=
row
.
fromAccount
this
.
toAccount
=
row
.
toAccount
this
.
showDetail
=
true
},
},
getList
()
{
getList
()
{
...
...
src/views/customerService/components/messageDetail.vue
0 → 100644
View file @
500dc43a
<
template
>
<div
class=
"components-message"
>
<el-menu
:default-active=
"activeIndex"
class=
"el-menu-demo"
mode=
"horizontal"
@
select=
"handleSelect"
>
<el-menu-item
index=
"0"
>
会话记录
</el-menu-item>
<el-menu-item
index=
"1"
>
会话信息
</el-menu-item>
</el-menu>
</div>
</
template
>
<
script
>
import
{
findChatUserInfo
}
from
'
@/api/business/chat
'
export
default
{
name
:
'
MessageDetail
'
,
props
:
{
fromAccount
:
{
type
:
String
,
required
:
true
},
toAccount
:
{
type
:
String
,
required
:
true
}
},
data
()
{
return
{
activeIndex
:
0
}
},
created
()
{
this
.
handleFindChatUserInfo
()
},
methods
:
{
handleSelect
(
key
,
keyPath
)
{
console
.
log
(
key
,
keyPath
)
},
handleGetMessageList
:
{},
handleFindChatUserInfo
()
{
const
params
=
{
fromAccount
:
this
.
fromAccount
,
toAccount
:
this
.
toAccount
}
findChatUserInfo
(
params
).
then
((
response
)
=>
{
console
.
log
(
'
=====获取聊天用户信息成功,
'
,
response
)
if
(
response
&&
response
.
data
&&
response
.
data
.
data
)
{
this
.
chatUserInfo
=
response
.
data
.
data
}
}).
catch
((
err
)
=>
{
console
.
log
(
'
=====获取聊天用户信息失败,
'
,
err
)
})
}
}
}
</
script
>
<
style
lang=
"less"
scoped
>
.components-message {
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment