Commit 0a7084f1 by panjiangyi

更新会话弹窗

parent 6260af97
Showing with 17 additions and 18 deletions
<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,
......
...@@ -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();
// }
/** /**
* 发送消息 * 发送消息
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment