紧凑样式

This commit is contained in:
mmc
2026-05-14 17:23:12 +08:00
parent 6cadb14a9c
commit 995c8c482b
16 changed files with 248 additions and 268 deletions

View File

@@ -207,7 +207,7 @@ export default function AIDiagnosisPage() {
</div>
{/* 第一排:顶部统计卡片 */}
<Row gutter={[12, 12]} style={{ marginBottom: 16 }}>
<Row gutter={[8, 8]} style={{ marginBottom: 8 }}>
{[
{ title: 'PR值 (性能比)', value: '82.6%', trend: '较昨日 -1.3%', icon: <RiseOutlined />, color: '#00B42A', bg: '#E8FFEA', trendColor: '#F53F3F', direction: 'down' },
{ title: '发电偏差率', value: '-4.35%', trend: '较昨日 -1.02%', icon: <FallOutlined />, color: '#F53F3F', bg: '#FFF1F0', trendColor: '#F53F3F', direction: 'down' },
@@ -248,7 +248,7 @@ export default function AIDiagnosisPage() {
</Row>
{/* 第二排:热成像分析 和 组串异常定位 */}
<Row gutter={[12, 12]} style={{ marginBottom: 16 }}>
<Row gutter={[12, 12]} style={{ marginBottom: 8 }}>
<Col xs={24} lg={10}>
<Card
title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>无人机热成像巡检分析<InfoCircleOutlined style={{ marginLeft: 6, color: '#86909C', fontSize: 13 }} /></span>}
@@ -500,106 +500,56 @@ export default function AIDiagnosisPage() {
style={{ ...cardStyle, height: '100%' }}
>
{/* AI诊断总结 */}
<div style={{ padding: '16px 20px' }}>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 16 }}>
<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>AI 诊断总结</span>
<span style={{ fontSize: 13, color: '#86909C' }}>更新时间: 2025-05-20 09:45</span>
<div style={{ padding: '12px 14px' }}>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 10 }}>
<span style={{ fontSize: 14, fontWeight: 700, color: '#1D2129' }}>AI 诊断总结</span>
<span style={{ fontSize: 12, color: '#86909C' }}>更新时间: 2025-05-20 09:45</span>
</div>
<Table
columns={[
{
title: '诊断项',
dataIndex: 'diagnosis',
key: 'diagnosis',
width: 90
},
{
title: '状态',
dataIndex: 'status',
key: 'status',
render: renderStatusTag,
width: 60
},
{
title: '置信度',
dataIndex: 'confidence',
key: 'confidence',
width: 70
},
{
title: '影响程度',
dataIndex: 'impact',
key: 'impact',
render: renderImpactTag,
width: 70
},
{
title: '详情',
dataIndex: 'detail',
key: 'detail',
ellipsis: true
},
{ title: '诊断项', dataIndex: 'diagnosis', width: 78 },
{ title: '状态', dataIndex: 'status', render: renderStatusTag, width: 52 },
{ title: '置信度', dataIndex: 'confidence', width: 60 },
{ title: '影响', dataIndex: 'impact', render: renderImpactTag, width: 52 },
{ title: '详情', dataIndex: 'detail', ellipsis: true },
]}
dataSource={[
{ key: '1', diagnosis: '热斑检测', status: '异常', confidence: '92%', impact: '高', detail: '检测到 36 处热斑疑似点' },
{ key: '2', diagnosis: '组串失配', status: '异常', confidence: '90%', impact: '高', detail: '8 串组串存在异常' },
{ key: '3', diagnosis: '遮挡风险', status: '轻微', confidence: '78%', impact: '中', detail: '局部遮挡影响 2% 发电量' },
{ key: '4', diagnosis: '组件衰减', status: '异常', confidence: '86%', impact: '中', detail: '平均衰减率 -5.32%' },
{ key: '5', diagnosis: '逆变器效率异常', status: '正常', confidence: '93%', impact: '低', detail: '所有逆变器运行正常' },
{ key: '5', diagnosis: '逆变器异常', status: '正常', confidence: '93%', impact: '低', detail: '所有逆变器运行正常' },
]}
pagination={false}
size="small"
className="compact-table"
rowKey="key"
style={{ fontSize: 12 }}
/>
</div>
<Divider style={{ margin: 0 }} />
{/* AI建议与处置 */}
<div style={{ padding: '16px 20px' }}>
<div style={{ fontSize: 15, fontWeight: 700, color: '#1D2129', marginBottom: 16 }}>
<div style={{ padding: '12px 14px' }}>
<div style={{ fontSize: 14, fontWeight: 700, color: '#1D2129', marginBottom: 10 }}>
AI 建议与处置
</div>
<Table
columns={[
{
title: '建议措施',
dataIndex: 'measure',
key: 'measure',
ellipsis: true
},
{
title: '优先级',
dataIndex: 'priority',
key: 'priority',
render: renderPriorityTag,
width: 70
},
{
title: '预计收益',
dataIndex: 'gain',
key: 'gain',
render: (g) => <span style={{ color: '#00B42A', fontWeight: 600 }}>{g}</span>,
width: 80
},
{
title: '置信度',
dataIndex: 'confidence',
key: 'confidence',
width: 70
},
{ title: '建议措施', dataIndex: 'measure', ellipsis: true },
{ title: '优先级', dataIndex: 'priority', render: renderPriorityTag, width: 58 },
{ title: '收益', dataIndex: 'gain', render: g => <span style={{ color: '#00B42A', fontWeight: 600 }}>{g}</span>, width: 68 },
{ title: '置信度', dataIndex: 'confidence', width: 60 },
{
title: '操作',
key: 'action',
width: 90,
width: 76,
render: (_, record) => (
<Button
type="primary"
size="small"
style={{ fontSize: 12, borderRadius: 6, height: 28 }}
style={{ fontSize: 11, borderRadius: 4, height: 22, padding: '0 6px' }}
>
{record.isView ? '查看详情' : '创建工单'}
{record.isView ? '详情' : '派单'}
</Button>
)
},
@@ -608,13 +558,13 @@ export default function AIDiagnosisPage() {
{ key: '1', measure: '处理热斑组件', priority: '高', gain: '+2.15%', confidence: '92%', isView: false },
{ key: '2', measure: '排查异常组串', priority: '高', gain: '+1.85%', confidence: '90%', isView: false },
{ key: '3', measure: '清洗受遮挡区域', priority: '中', gain: '+0.45%', confidence: '78%', isView: false },
{ key: '4', measure: '跟踪衰减较大组件', priority: '中', gain: '+0.35%', confidence: '86%', isView: false },
{ key: '5', measure: '持续监控逆变器效率', priority: '低', gain: '+0.10%', confidence: '93%', isView: true },
{ key: '4', measure: '跟踪衰减组件', priority: '中', gain: '+0.35%', confidence: '86%', isView: false },
{ key: '5', measure: '监控逆变器效率', priority: '低', gain: '+0.10%', confidence: '93%', isView: true },
]}
pagination={false}
size="small"
className="compact-table"
rowKey="key"
style={{ fontSize: 12 }}
/>
</div>
</Card>