Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dc6ce740
authored
Jul 17, 2021
by
panjiangyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
客服模式
parent
fcaf7742
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
26 deletions
chat-room.vue
chat.vue
components/message.vue
message-list.vue
chat-room.vue
View file @
dc6ce740
<
template
>
<div
class=
"chat-room-con h-100 pos-rel"
>
{{
chatId
}}
<div
class=
"chat-panel"
>
<div
class=
"chat-area h-100"
>
<template
v-if=
"notOnlyCheck"
>
...
...
chat.vue
View file @
dc6ce740
<
template
>
<div
class=
"chat-con"
>
<ChatTitle
:close=
"hide"
/>
<div
class=
"chat-con"
:class=
"
{ userMode }"
>
<ChatTitle
:close=
"hide"
class=
"chat-title"
/>
<div
class=
"chat-area-con"
>
<div
v-if=
"chatId != null"
class=
"h-100 chat-area"
>
<chat-room
/>
</div>
<div
class=
"chat-panel h-100"
>
<!--
<div
class=
"buttons"
>
<el-button
class=
"button"
@
click=
"terminate"
round
>
结束会话
</el-button
>
<el-button
class=
"button"
@
click=
"showAddMember"
round
>
添加成员
</el-button
>
</div>
-->
<div
class=
"chat-panel h-100"
v-if=
"!userMode"
>
<el-tabs
class=
"chat-panel"
v-model=
"currentTab"
>
<el-tab-pane
label=
"数据"
name=
"one"
>
model的数据,可配置。
</el-tab-pane
...
...
@@ -31,9 +23,11 @@
<remarkList
modelName=
"user"
/>
</el-tab-pane>
<el-tab-pane
label=
"回复"
name=
"five"
>
<MsgShortCut
v-for=
"(item, i) in shortCutMsgs"
:key=
"i"
:msg=
"item"
/>
<MsgShortCut
v-for=
"(item, i) in shortCutMsgs"
:key=
"i"
:msg=
"item"
/>
</el-tab-pane>
</el-tabs>
</div>
...
...
@@ -88,14 +82,11 @@ export default class Chat extends Vue {
@
chatStore
.
Action
(
ChatStore
.
ACTION_CHAT_ADD_MEMBERS
)
private
readonly
_addMember
!
:
ChatStore
.
ACTION_CHAT_ADD_MEMBERS
;
private
userMode
=
true
;
private
currentTab
=
"one"
;
private
shortCutMsgs
=
[
"快捷回复1"
,
"快捷回复2"
,
"快捷回复3"
,
"快捷回复4"
,
]
private
shortCutMsgs
=
[
"快捷回复1"
,
"快捷回复2"
,
"快捷回复3"
,
"快捷回复4"
];
private
get
chatMembersId
()
{
return
this
.
chatMembers
.
map
((
k
)
=>
+
k
.
eid
);
...
...
@@ -122,16 +113,24 @@ export default class Chat extends Vue {
}
</
script
>
<
style
lang=
"less"
scoped
>
.chat-con
{
height
:
70vh
;
}
.chat-area-con
{
height
:
calc
(
100%
-
60px
);
}
.chat-con
{
height
:
70vh
;
--chat-panel-width
:
350px
;
font-size
:
13px
;
color
:
black
;
&.userMode
{
--chat-panel-width
:
0px
;
.chat-title
{
/deep/
.title-buttons
{
.button
{
display
:
none
}
}
}
}
}
.chat-area
,
.chat-panel
{
...
...
@@ -156,7 +155,7 @@ export default class Chat extends Vue {
}
.chat-panel
{
/deep/
.el-tabs__item
{
padding
:
0
18px
;
padding
:
0
18px
;
}
}
</
style
>
components/message.vue
View file @
dc6ce740
...
...
@@ -520,6 +520,7 @@ i.msg-avatar {
color
:
#888
;
text-align
:
right
;
margin-bottom
:
3px
;
min-height
:
16px
;
}
.msg-detail
{
...
...
message-list.vue
View file @
dc6ce740
<
template
>
<div
v-loading=
"chatIniting"
class=
"message-list h-100"
>
<!-- chatId:
{{
chatId
}}
-->
<el-scrollbar
ref=
"message-scrollbar"
class=
"
...
...
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