feat: add tenant content moderation controls
This commit is contained in:
@@ -19,6 +19,8 @@ export class State {
|
||||
public maxUsers = 0; // 最大用户数
|
||||
public maxGroups = 0; // 最大群组数
|
||||
public maxGroupMembers = 0; // 最大群成员数
|
||||
public aliyunModerationEnabled = 0; // 是否启用阿里云内容审核
|
||||
public localModerationEnabled = 0; // 是否启用本地内容审核
|
||||
public dbDsnConfigured = false; // 是否配置独立连接串
|
||||
public createdBy = 0; // 创建者
|
||||
public createdBySumma?: null | MemberSumma = null; // 创建者摘要信息
|
||||
@@ -208,6 +210,32 @@ export const columns = [
|
||||
return row.maxGroupMembers > 0 ? row.maxGroupMembers : '不限';
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '阿里云审核',
|
||||
key: 'aliyunModerationEnabled',
|
||||
align: 'left',
|
||||
width: 120,
|
||||
render(row: State) {
|
||||
return h(
|
||||
NTag,
|
||||
{ type: row.aliyunModerationEnabled === 1 ? 'success' : 'default', bordered: false },
|
||||
{ default: () => (row.aliyunModerationEnabled === 1 ? '已启用' : '未启用') }
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '本地审核',
|
||||
key: 'localModerationEnabled',
|
||||
align: 'left',
|
||||
width: 120,
|
||||
render(row: State) {
|
||||
return h(
|
||||
NTag,
|
||||
{ type: row.localModerationEnabled === 1 ? 'success' : 'default', bordered: false },
|
||||
{ default: () => (row.localModerationEnabled === 1 ? '已启用' : '未启用') }
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '创建者',
|
||||
key: 'createdBy',
|
||||
|
||||
Reference in New Issue
Block a user