Files
yudao-ui-admin-vue3/src/views/im/Conversation/index.vue

61 lines
1.4 KiB
Vue
Raw Normal View History

2024-04-24 20:54:13 +08:00
<script setup lang="ts">
/* 搜索框组件 */
import SearchInput from '@/components/SearchInput/index.vue'
/* 欢迎页 */
import Welcome from '@/components/Welcome/index.vue'
import ConversationList from '../Conversation/components/ConversationList.vue'
2024-04-27 23:10:03 +08:00
import router from '@/router'
//路由跳转-系统通知
const toInformDetails = () => {
router.push('/im/conversation/informDetails')
}
//路由跳转-对应好友会话
const toChatMessage = (id, chatType) => {
console.log('>>>>>>>id', id)
router.push({
path: '/im/conversation/message',
query: {
id,
chatType
}
})
}
2024-04-24 20:54:13 +08:00
</script>
<template>
<el-container style="height: 100%">
<el-aside class="chat_conversation_box">
<!-- 搜索组件 -->
<SearchInput :searchType="'conversation'" />
<div class="chat_conversation_list">
2024-04-27 23:10:03 +08:00
<ConversationList @toInformDetails="toInformDetails" @toChatMessage="toChatMessage" />
2024-04-24 20:54:13 +08:00
</div>
</el-aside>
<el-main class="chat_conversation_main_box">
<router-view />
<Welcome />
</el-main>
</el-container>
</template>
<style lang="scss" scoped>
.chat_conversation_box {
position: relative;
background: #cfdbf171;
overflow: hidden;
min-width: 324px;
.chat_conversation_list {
height: calc(100% - 60px);
}
}
.chat_conversation_main_box {
position: relative;
width: 100%;
height: 100%;
padding: 0;
}
</style>