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
0a7084f1
authored
Jul 15, 2021
by
panjiangyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
更新会话弹窗
parent
6260af97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
18 deletions
chat.vue
xim/xim.ts
chat.vue
View file @
0a7084f1
<
template
>
<
template
>
<el-dialog
<
!--
<
el-dialog
class=
"chat-dialog-con"
class=
"chat-dialog-con"
:close-on-click-modal=
"false"
:close-on-click-modal=
"false"
:visible=
"visible"
:visible=
"visible"
@
close=
"hide"
@
close=
"hide"
>
>
-->
<div
class=
"chat-con
h-100
"
>
<div
class=
"chat-con"
>
<div
class=
"h-100 chat-list"
>
<div
class=
"h-100 chat-list"
>
<chat-list
/>
<chat-list
/>
</div>
</div>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<el-button
@
click=
"terminate"
>
结束
</el-button>
<el-button
@
click=
"terminate"
>
结束
</el-button>
</div>
</div>
</div>
</div>
<
/el-dialog
>
<
!--
</el-dialog>
--
>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
import
{
Component
,
Vue
}
from
"vue-property-decorator"
;
...
@@ -32,9 +32,6 @@ export default class Chat extends Vue {
...
@@ -32,9 +32,6 @@ export default class Chat extends Vue {
@
chatStore
.
State
(
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
)
@
chatStore
.
State
(
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
)
private
readonly
chatId
!
:
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
;
private
readonly
chatId
!
:
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
;
@
chatStore
.
State
(
ChatStore
.
STATE_CHAT_DIALOG_VISIBLE
)
private
readonly
visible
!
:
ChatStore
.
STATE_CHAT_DIALOG_VISIBLE
;
@
chatStore
.
Mutation
(
ChatStore
.
MUTATION_HIDE_CHAT
)
@
chatStore
.
Mutation
(
ChatStore
.
MUTATION_HIDE_CHAT
)
private
readonly
hide
!
:
ChatStore
.
MUTATION_HIDE_CHAT
;
private
readonly
hide
!
:
ChatStore
.
MUTATION_HIDE_CHAT
;
...
@@ -47,18 +44,15 @@ export default class Chat extends Vue {
...
@@ -47,18 +44,15 @@ export default class Chat extends Vue {
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.chat-dialog-con
{
/deep/
.el-dialog__header
{
display
:
none
;
}
/
deep
/
.el-dialog
{
width
:
80%
;
max-width
:
1200px
;
}
--chat-side-width
:
200px
;
}
.chat-con
{
.chat-con
{
height
:
500px
;
--chat-side-width
:
200px
;
position
:
fixed
;
left
:
0
;
right
:
0
;
bottom
:
0
;
top
:
64px
;
z-index
:
99999
;
background
:
#fff
;
}
}
.chat-list
,
.chat-list
,
.chat-area
,
.chat-area
,
...
...
xim/xim.ts
View file @
0a7084f1
...
@@ -104,6 +104,11 @@ export class Xim {
...
@@ -104,6 +104,11 @@ export class Xim {
return
this
.
client
.
fetchMsgInBox
(
chatType
,
chatId
,
msgId
);
return
this
.
client
.
fetchMsgInBox
(
chatType
,
chatId
,
msgId
);
}
}
// public fetchChatList() {
// if (this.client == null) return;
// return this.client.fetchChatList();
// }
/**
/**
* 发送消息
* 发送消息
*/
*/
...
...
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