fix(ui): 修复登录与并发请求并统一表格、主题和页面展示

验证:868 项单测、ESLint、Prettier、UI 依赖审计和差异检查通过。
This commit is contained in:
zhanjunhao
2026-11-19 18:58:46 +08:00
parent 9f5e0cddfb
commit e70e0d2224
128 changed files with 4672 additions and 5391 deletions
@@ -30,6 +30,7 @@ import {
} from '@/components/ui';
import { ClipboardList } from 'lucide-react';
import { ChangeText, OrgNameCell, ReasonTags, SectionCard } from './shared';
import { formatRatioPercent } from '../../../helpers/safeDisplay';
import {
daysSince,
downloadCsv,
@@ -284,7 +285,11 @@ const columnsFor = (tab, cny, t, atRisk) => {
{v}/{r.member_count}
{r.member_count > 0 ? (
<span className='text-xs text-gray-400 ml-1'>
{Math.min(100, (v / r.member_count) * 100).toFixed(0)}%
{formatRatioPercent(
Math.min(100, Number(v) || 0),
r.member_count,
0,
)}
</span>
) : null}
</span>