feat(accounts): display business status with distinct colors

This commit is contained in:
2026-10-06 10:21:37 +08:00
parent 221cc30e31
commit 58e9a73cc4
2 changed files with 83 additions and 0 deletions
@@ -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',