feat(accounts): display business status with distinct colors
This commit is contained in:
@@ -32,6 +32,7 @@ interface Row {
|
||||
douyin_number?: string;
|
||||
tags?: string[];
|
||||
runtime_status?: string;
|
||||
business_status: 'normal' | 'muted' | 'banned' | 'deleted';
|
||||
environment?: EnvironmentView;
|
||||
work_count?: number;
|
||||
latest_published_at?: string | null;
|
||||
@@ -220,6 +221,20 @@ export default function AccountManagementList() {
|
||||
</Tag>
|
||||
);
|
||||
} },
|
||||
{
|
||||
title: '业务状态',
|
||||
dataIndex: 'business_status',
|
||||
render: (status: Row['business_status']) => {
|
||||
const statuses = {
|
||||
normal: { label: '正常', color: 'success' },
|
||||
muted: { label: '禁言', color: 'warning' },
|
||||
banned: { label: '封禁', color: 'error' },
|
||||
deleted: { label: '注销', color: 'default' },
|
||||
};
|
||||
const { label, color } = statuses[status];
|
||||
return <Tag color={color}>{label}</Tag>;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
key: 'actions',
|
||||
|
||||
Reference in New Issue
Block a user