fix bug#3941 1114系统消息补充
This commit is contained in:
parent
be047f30c1
commit
659c2c3e12
1
components.d.ts
vendored
1
components.d.ts
vendored
@ -34,6 +34,7 @@ declare module 'vue' {
|
|||||||
RevokeMessage: typeof import('./src/components/talk/message/RevokeMessage.vue')['default']
|
RevokeMessage: typeof import('./src/components/talk/message/RevokeMessage.vue')['default']
|
||||||
RouterLink: typeof import('vue-router')['RouterLink']
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
RouterView: typeof import('vue-router')['RouterView']
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
|
SysGroupAdminMessage: typeof import('./src/components/talk/message/system/SysGroupAdminMessage.vue')['default']
|
||||||
SysGroupCancelMutedMessage: typeof import('./src/components/talk/message/system/SysGroupCancelMutedMessage.vue')['default']
|
SysGroupCancelMutedMessage: typeof import('./src/components/talk/message/system/SysGroupCancelMutedMessage.vue')['default']
|
||||||
SysGroupCreateMessage: typeof import('./src/components/talk/message/system/SysGroupCreateMessage.vue')['default']
|
SysGroupCreateMessage: typeof import('./src/components/talk/message/system/SysGroupCreateMessage.vue')['default']
|
||||||
SysGroupJoinMessage: typeof import('./src/components/talk/message/system/SysGroupJoinMessage.vue')['default']
|
SysGroupJoinMessage: typeof import('./src/components/talk/message/system/SysGroupJoinMessage.vue')['default']
|
||||||
|
25
src/components/talk/message/system/SysGroupAdminMessage.vue
Normal file
25
src/components/talk/message/system/SysGroupAdminMessage.vue
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<script setup>
|
||||||
|
import './sys-message.less'
|
||||||
|
import { useInject } from '@/hooks'
|
||||||
|
|
||||||
|
defineProps({
|
||||||
|
extra: Object,
|
||||||
|
data: Object
|
||||||
|
})
|
||||||
|
|
||||||
|
const { showUserInfoModal } = useInject()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="im-message-sys-text">
|
||||||
|
<div class="sys-text">
|
||||||
|
|
||||||
|
<template v-for="(user, index) in extra.members" :key="index">
|
||||||
|
<a @click="showUserInfoModal(user.user_id)">{{ user.nickname }}</a>
|
||||||
|
<em v-show="index < extra.members.length - 1">、</em>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<span>已成为管理员</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
@ -26,6 +26,7 @@ export const ChatMsgSysGroupMemberMuted = 1109 // 群成员禁言
|
|||||||
export const ChatMsgSysGroupMemberCancelMuted = 1110 // 群成员解除禁言
|
export const ChatMsgSysGroupMemberCancelMuted = 1110 // 群成员解除禁言
|
||||||
export const ChatMsgSysGroupNotice = 1111 // 编辑群公告
|
export const ChatMsgSysGroupNotice = 1111 // 编辑群公告
|
||||||
export const ChatMsgSysGroupTransfer = 1113 // 变更群主
|
export const ChatMsgSysGroupTransfer = 1113 // 变更群主
|
||||||
|
export const ChatMsgSysGroupAdmin = 1114 // 设置管理员
|
||||||
|
|
||||||
export const ChatMsgTypeMapping = {
|
export const ChatMsgTypeMapping = {
|
||||||
[ChatMsgTypeText]: '[文本消息]',
|
[ChatMsgTypeText]: '[文本消息]',
|
||||||
@ -53,7 +54,9 @@ export const ChatMsgTypeMapping = {
|
|||||||
[ChatMsgSysGroupCancelMuted]: '[群解除禁言消息]',
|
[ChatMsgSysGroupCancelMuted]: '[群解除禁言消息]',
|
||||||
[ChatMsgSysGroupMemberMuted]: '[群成员禁言消息]',
|
[ChatMsgSysGroupMemberMuted]: '[群成员禁言消息]',
|
||||||
[ChatMsgSysGroupMemberCancelMuted]: '[群成员解除禁言消息]',
|
[ChatMsgSysGroupMemberCancelMuted]: '[群成员解除禁言消息]',
|
||||||
[ChatMsgSysGroupNotice]: '[群公告]'
|
[ChatMsgSysGroupNotice]: '[群公告]',
|
||||||
|
[ChatMsgSysGroupTransfer]: '[转让群主]',
|
||||||
|
[ChatMsgSysGroupAdmin]: '[设置管理员]'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 消息类型 - 消息组件 映射关系
|
// 消息类型 - 消息组件 映射关系
|
||||||
@ -83,7 +86,8 @@ export const MessageComponents = {
|
|||||||
[ChatMsgSysGroupCancelMuted]: 'sys-group-cancel-muted-message',
|
[ChatMsgSysGroupCancelMuted]: 'sys-group-cancel-muted-message',
|
||||||
[ChatMsgSysGroupMemberMuted]: 'sys-group-member-muted-message',
|
[ChatMsgSysGroupMemberMuted]: 'sys-group-member-muted-message',
|
||||||
[ChatMsgSysGroupMemberCancelMuted]: 'sys-group-member-cancel-muted-message',
|
[ChatMsgSysGroupMemberCancelMuted]: 'sys-group-member-cancel-muted-message',
|
||||||
[ChatMsgSysGroupTransfer]: 'sys-group-transfer-message'
|
[ChatMsgSysGroupTransfer]: 'sys-group-transfer-message',
|
||||||
|
[ChatMsgSysGroupAdmin]:'sys-group-admin-message'
|
||||||
}
|
}
|
||||||
|
|
||||||
// 可转发的消息类型
|
// 可转发的消息类型
|
||||||
|
Loading…
Reference in New Issue
Block a user