搜索:判断某个成员是不是禁言

This commit is contained in:
cbb
2026-02-12 17:51:42 +08:00
parent a040b56c74
commit 2191f46317
16 changed files with 388 additions and 212 deletions

View File

@@ -1,7 +1,7 @@
<template>
<div class="admin-main">
<view class="admin-box">
<div class="admin-manage">
<div v-if="!isAdmin" class="admin-manage">
<div class="admin-manage-header">
{{ TUITranslateService.t(`TUIGroup.群管理员`) }}
</div>
@@ -112,11 +112,11 @@
</template>
<script lang="ts" setup>
import {
import TUIChatEngine, {
TUITranslateService,
IGroupModel
} from '@tencentcloud/chat-uikit-engine-lite'
import { watchEffect, ref } from '../../../adapter-vue'
import { watchEffect, ref, computed } from '../../../adapter-vue'
import Slider from '../../common/Slider/index.vue'
import Icon from '../../common/Icon.vue'
import plusSVG from '../../../assets/icon/plus.svg'
@@ -156,6 +156,13 @@
currentGroupAdmin.value = props.currentGroup
})
const isAdmin = computed(() => {
return (
props.currentGroup?.selfInfo?.role ===
TUIChatEngine.TYPES.GRP_MBR_ROLE_ADMIN
)
})
const emits = defineEmits([
'addAdmin',
'removeAdmin',
@@ -287,7 +294,7 @@
.admin-mute-all {
margin: 0 10px;
padding: 20rpx ;
padding: 20rpx;
border-bottom: 1px solid #e8e8e9;
display: flex;
flex-direction: row;