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
10e22d86
Commit
10e22d86
authored
Nov 09, 2023
by
yaya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 代码优化
parent
459926c2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
10 deletions
+38
-10
src/views/customerService/chatDetail.vue
src/views/customerService/chatDetail.vue
+1
-1
src/views/customerService/chatList.vue
src/views/customerService/chatList.vue
+5
-1
src/views/customerService/components/historyMessageList.vue
src/views/customerService/components/historyMessageList.vue
+27
-0
src/views/customerService/components/messageDetail.vue
src/views/customerService/components/messageDetail.vue
+5
-8
No files found.
src/views/customerService/chatDetail.vue
View file @
10e22d86
...
@@ -105,7 +105,7 @@ export default {
...
@@ -105,7 +105,7 @@ export default {
messageContent
:
''
,
messageContent
:
''
,
nextReqMessageID
:
''
,
// 历史消息下一页
nextReqMessageID
:
''
,
// 历史消息下一页
isCompleted
:
false
,
isCompleted
:
false
,
envText
:
process
.
env
.
NODE_ENV
===
'
development
'
?
'
cjxc-applet-dev_
'
:
'
cjxc-applet
_
'
,
envText
:
'
cjxc-applet-dev
_
'
,
conversationList
:
[],
// 会话列表
conversationList
:
[],
// 会话列表
currentConversationItem
:
{},
// 当前聊天
currentConversationItem
:
{},
// 当前聊天
messageList
:
[],
// 历史消息
messageList
:
[],
// 历史消息
...
...
src/views/customerService/chatList.vue
View file @
10e22d86
...
@@ -51,8 +51,9 @@
...
@@ -51,8 +51,9 @@
<el-drawer
<el-drawer
:visible.sync=
"showDetail"
:visible.sync=
"showDetail"
:with-header=
"false"
:with-header=
"false"
:before-close=
"handleClose"
size=
"40%"
>
size=
"40%"
>
<div>
<div
v-if=
"showDetail"
>
<MessageDetail
:from-account=
"fromAccount"
:to-account=
"toAccount"
/>
<MessageDetail
:from-account=
"fromAccount"
:to-account=
"toAccount"
/>
</div>
</div>
...
@@ -92,6 +93,9 @@ export default {
...
@@ -92,6 +93,9 @@ export default {
this
.
getList
()
this
.
getList
()
},
},
methods
:
{
methods
:
{
handleClose
()
{
this
.
showDetail
=
false
},
/**
/**
* 获取客服列表
* 获取客服列表
**/
**/
...
...
src/views/customerService/components/historyMessageList.vue
0 → 100644
View file @
10e22d86
<
template
>
<div
class=
"component-history"
/>
</
template
>
<
script
>
export
default
{
name
:
'
HistoryMessageList
'
,
props
:
{
fromAccount
:
{
type
:
String
,
required
:
true
},
toAccount
:
{
type
:
String
,
required
:
true
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.component-history
{
display
:
flex
;
flex-direction
:
column
;
}
</
style
>
src/views/customerService/components/messageDetail.vue
View file @
10e22d86
<
template
>
<
template
>
<div
class=
"components-message"
>
<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>
-->
<el-tabs
v-model=
"activeIndex"
@
tab-click=
"handleSelect"
>
<el-tabs
v-model=
"activeIndex"
@
tab-click=
"handleSelect"
>
<el-tab-pane
label=
"会话记录"
name=
"1"
>
用户管理
</el-tab-pane>
<el-tab-pane
label=
"会话记录"
name=
"1"
>
<HistoryMessageList
:from-account=
"fromAccount"
:to-account=
"toAccount"
/>
</el-tab-pane>
<el-tab-pane
label=
"会话信息"
name=
"2"
>
<el-tab-pane
label=
"会话信息"
name=
"2"
>
<ChatUserInfo
:chat-user-info=
"chatUserInfo"
/>
<ChatUserInfo
:chat-user-info=
"chatUserInfo"
/>
</el-tab-pane>
</el-tab-pane>
...
@@ -19,9 +15,10 @@
...
@@ -19,9 +15,10 @@
<
script
>
<
script
>
import
{
findChatUserInfo
}
from
'
@/api/business/chat
'
import
{
findChatUserInfo
}
from
'
@/api/business/chat
'
import
ChatUserInfo
from
'
./chatUserInfo
'
import
ChatUserInfo
from
'
./chatUserInfo
'
import
HistoryMessageList
from
'
./historyMessageList
'
export
default
{
export
default
{
name
:
'
MessageDetail
'
,
name
:
'
MessageDetail
'
,
components
:
{
ChatUserInfo
},
components
:
{
HistoryMessageList
,
ChatUserInfo
},
props
:
{
props
:
{
fromAccount
:
{
fromAccount
:
{
type
:
String
,
type
:
String
,
...
...
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