This commit is contained in:
ChuXun
2026-01-29 02:55:05 +08:00
parent 33fb5639c7
commit c856666f22
19 changed files with 197 additions and 53 deletions

View File

@@ -425,7 +425,7 @@ const formatDate = (dateStr: string) => {
}
};
const formatRole = (role: string) => {
const formatRole = (role?: string) => {
const map: Record<string, string> = {
'ADMIN': '管理员',
'DECISION_MAKER': '决策人',
@@ -433,6 +433,7 @@ const formatRole = (role: string) => {
'GRID_WORKER': '网格员',
'PUBLIC_SUPERVISOR': '公众监督员'
};
if (!role) return '未知';
return map[role] || role;
};
@@ -604,4 +605,4 @@ const handleRejectFeedback = async () => {
border-radius: 4px;
cursor: pointer;
}
</style>
</style>