feat: 新增验收测试清单(199项24域)替代功能调查问卷; 修复工作台评分环文字重叠

- 新增 acceptance-test.html 交互式验收测试页面(验收人姓名/自动补全/自动统计/CSV+Excel下载)
- 新增 AcceptanceTestModal 组件, TopNav 中用验收测试弹窗替代 SurveyModal
- Settings 页问卷导出替换为验收测试结果导出(支持多验收人汇总MD)
- 修复 Dashboard 合规健康度评分环文字重叠: 圆环增大至w-32, 加overflow-hidden+truncate
This commit is contained in:
selfrelease
2026-08-02 09:22:51 +08:00
parent 787897e6d3
commit 68ebe6a4ff
7 changed files with 2619 additions and 96 deletions
+4 -4
View File
@@ -265,7 +265,7 @@ export default function Dashboard() {
<Card>
<div className="flex items-center gap-4">
{/* SVG 环形评分 */}
<div className="relative w-28 h-28 shrink-0">
<div className="relative w-32 h-32 shrink-0">
<ResponsiveContainer width="100%" height="100%">
<RadialBarChart
innerRadius="70%"
@@ -278,9 +278,9 @@ export default function Dashboard() {
<RadialBar background dataKey="value" cornerRadius={8} />
</RadialBarChart>
</ResponsiveContainer>
<div className="absolute inset-0 flex flex-col items-center justify-center">
<span className={`text-2xl font-bold ${complianceScore?.level === 'safe' ? 'text-safe' : complianceScore?.level === 'warning' ? 'text-warning' : 'text-danger'}`}>{complianceScore?.overallScore ?? complianceScore?.totalScore ?? 0}</span>
<span className="text-xs text-gray-500">{complianceScore?.levelLabel ?? complianceScore?.summary ?? ''}</span>
<div className="absolute inset-0 flex flex-col items-center justify-center px-2 overflow-hidden">
<span className={`text-2xl font-bold leading-none ${complianceScore?.level === 'safe' ? 'text-safe' : complianceScore?.level === 'warning' ? 'text-warning' : 'text-danger'}`}>{complianceScore?.overallScore ?? complianceScore?.totalScore ?? 0}</span>
<span className="text-xs text-gray-500 mt-1 truncate max-w-full">{complianceScore?.levelLabel ?? ''}</span>
</div>
</div>
{/* 5 维度评分 */}