This commit is contained in:
xingyu4j
2025-06-16 19:17:15 +08:00
parent 014785a1ad
commit e219e8f868
39 changed files with 175 additions and 138 deletions

View File

@@ -3,7 +3,7 @@ import { ref } from 'vue';
import { DocAlert, Page } from '@vben/common-ui';
import { Card, TabPane, Tabs } from 'ant-design-vue';
import { Card, Tabs } from 'ant-design-vue';
import ChatConversationList from './modules/ChatConversationList.vue';
import ChatMessageList from './modules/ChatMessageList.vue';
@@ -18,12 +18,12 @@ const activeTabName = ref('conversation');
</template>
<Card>
<Tabs v-model:active-key="activeTabName">
<TabPane tab="对话列表" key="conversation">
<Tabs.TabPane tab="对话列表" key="conversation">
<ChatConversationList />
</TabPane>
<TabPane tab="消息列表" key="message">
</Tabs.TabPane>
<Tabs.TabPane tab="消息列表" key="message">
<ChatMessageList />
</TabPane>
</Tabs.TabPane>
</Tabs>
</Card>
</Page>

View File

@@ -87,9 +87,10 @@ onMounted(async () => {
<TableAction :actions="[]" />
</template>
<template #userId="{ row }">
<span>{{
userList.find((item) => item.id === row.userId)?.nickname
}}</span>
<span>
{{ userList.find((item) => item.id === row.userId)?.nickname }}
</span>
<span v-if="row.userId === 0">系统</span>
</template>
<template #actions="{ row }">
<TableAction