AI分析诊断自适应
This commit is contained in:
@@ -133,19 +133,17 @@ export default function AIDiagnosisPage() {
|
||||
};
|
||||
|
||||
return (
|
||||
<div style={{ background: '#f5f7fa', minHeight: '100vh', padding: '0px 24px' }}>
|
||||
<div style={{ background: '#f5f7fa', minHeight: '100vh', padding: '16px 24px', boxSizing: 'border-box', overflowX: 'hidden' }}>
|
||||
<div style={{ display: 'flex', paddingBottom: "12px" }}>
|
||||
<div style={{ padding: '20px 0px 0' }}>
|
||||
<Typography.Title level={4} style={{ margin: 0 }}>AI诊断分析</Typography.Title>
|
||||
<div style={{ padding: '4px 0' }}>
|
||||
<Typography.Title level={4} style={{ margin: 0, fontSize: 'clamp(18px, 1.5vw, 24px)' }}>AI诊断分析</Typography.Title>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{/* 第一排:顶部统计卡片 */}
|
||||
<Row
|
||||
gutter={[12, 12]}
|
||||
style={{
|
||||
marginBottom: 16,
|
||||
flexWrap: 'wrap',
|
||||
}}
|
||||
style={{ marginBottom: 16 }}
|
||||
>
|
||||
{[
|
||||
{ title: 'PR值', value: '82.6%', trend: '较昨日 -1.3%', icon: <RiseOutlined />, color: '#00B42A', bg: '#E8FFEA', trendColor: '#F53F3F' },
|
||||
@@ -155,34 +153,35 @@ export default function AIDiagnosisPage() {
|
||||
{ title: '健康度评分', value: '86.3', unit: '分', trend: '较昨日 -1.7', icon: <CheckCircleOutlined />, color: '#00B42A', bg: '#E8FFEA', trendColor: '#F53F3F' },
|
||||
{ title: '预测发电量', value: '4,821', unit: 'kWh', trend: '较昨日 +2.6% ↑', icon: <ThunderboltOutlined />, color: '#00B42A', bg: '#E8FFEA', trendColor: '#00B42A' },
|
||||
].map((item, index) => (
|
||||
<Col key={index} style={{ minWidth: '168px', flex: '1 0 auto', }}>
|
||||
<Col key={index} xs={24} sm={12} md={8} xl={4}>
|
||||
<Card
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
style={{ borderRadius: 8, height: 120 }}
|
||||
style={{ borderRadius: 12, height: '100%', border: '1px solid #f0f0f0', boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', height: '100%' }}>
|
||||
<div>
|
||||
<div style={{ fontSize: 14, color: '#4E5969', marginBottom: 8 }}>{item.title}</div>
|
||||
<div style={{ fontSize: 24, fontWeight: 700, color: item.color, display: 'flex', alignItems: 'baseline', gap: 4 }}>
|
||||
<div style={{ fontSize: 'clamp(12px, 0.9vw, 14px)', color: '#4E5969', marginBottom: 8 }}>{item.title}</div>
|
||||
<div style={{ fontSize: 'clamp(20px, 1.6vw, 24px)', fontWeight: 700, color: item.color, display: 'flex', alignItems: 'baseline', gap: 4 }}>
|
||||
{item.value}
|
||||
{item.unit && <span style={{ fontSize: 14, fontWeight: 400 }}>{item.unit}</span>}
|
||||
</div>
|
||||
<div style={{ fontSize: 12, color: item.trendColor || '#86909C', marginTop: 8 }}>
|
||||
<div style={{ fontSize: 'clamp(10px, 0.8vw, 12px)', color: item.trendColor || '#86909C', marginTop: 8 }}>
|
||||
{item.trend}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style={{
|
||||
width: 48,
|
||||
height: 48,
|
||||
width: 'clamp(40px, 3.5vw, 48px)',
|
||||
height: 'clamp(40px, 3.5vw, 48px)',
|
||||
background: item.bg,
|
||||
borderRadius: '50%',
|
||||
display: 'flex',
|
||||
justifyContent: 'center',
|
||||
alignItems: 'center',
|
||||
flexShrink: 0
|
||||
}}>
|
||||
{React.cloneElement(item.icon, { style: { fontSize: 24, color: item.color } })}
|
||||
{React.cloneElement(item.icon, { style: { fontSize: 'clamp(20px, 1.8vw, 24px)', color: item.color } })}
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
@@ -191,105 +190,108 @@ export default function AIDiagnosisPage() {
|
||||
</Row>
|
||||
|
||||
{/* 第二排:热成像分析 和 组串异常定位 */}
|
||||
<Row gutter={12} style={{ marginBottom: 16 }}>
|
||||
<Col span={10}>
|
||||
<Row gutter={[12, 12]} style={{ marginBottom: 16 }}>
|
||||
<Col xs={24} lg={10}>
|
||||
<Card
|
||||
title={<span style={{ fontSize: 14, fontWeight: 700 }}>热成像分析(无人机巡检)<InfoCircleOutlined style={{ marginLeft: 4, color: '#86909C' }} /></span>}
|
||||
extra={<Text type="secondary" style={{ fontSize: 12 }}>巡检时间:2025-05-20 09:30 <CalendarOutlined /></Text>}
|
||||
title={<span style={{ fontSize: 'clamp(13px, 1vw, 14px)', fontWeight: 700 }}>热成像分析(无人机巡检)<InfoCircleOutlined style={{ marginLeft: 4, color: '#86909C' }} /></span>}
|
||||
extra={<Text type="secondary" style={{ fontSize: 'clamp(10px, 0.8vw, 12px)' }}>2025-05-20 09:30 <CalendarOutlined /></Text>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: 16 }}
|
||||
style={cardStyle}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
<Row gutter={[12, 12]}>
|
||||
{thermalImagingData.map((item, idx) => (
|
||||
<Col span={6} key={idx}>
|
||||
<div style={{ background: '#111827', borderRadius: 4, height: 140, position: 'relative', overflow: 'hidden' }}>
|
||||
<div style={{ background: '#111827', borderRadius: 4, height: 'clamp(80px, 8vw, 140px)', position: 'relative', overflow: 'hidden' }}>
|
||||
<div style={{ width: '100%', height: '100%', background: 'linear-gradient(45deg, #4c0000, #ff0000, #ffff00)', opacity: 0.8 }} />
|
||||
<div style={{ position: 'absolute', bottom: 8, right: 8, background: 'rgba(0,0,0,0.6)', color: '#fff', padding: '2px 6px', borderRadius: 2, fontSize: 10 }}>
|
||||
<div style={{ position: 'absolute', bottom: 4, right: 4, background: 'rgba(0,0,0,0.6)', color: '#fff', padding: '2px 6px', borderRadius: 2, fontSize: 10 }}>
|
||||
{item.temp}
|
||||
</div>
|
||||
</div>
|
||||
<div style={{ textAlign: 'center', marginTop: 8, fontSize: 12, color: '#4E5969' }}>{item.name}</div>
|
||||
<div style={{ textAlign: 'center', marginTop: 8, fontSize: 11, color: '#4E5969' }}>{item.name}</div>
|
||||
</Col>
|
||||
))}
|
||||
</Row>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginTop: 20 }}>
|
||||
<div style={{ display: 'flex', gap: 16, fontSize: 12 }}>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 8, height: 8, borderRadius: '50%', background: '#F53F3F', marginRight: 4 }}></span>热斑疑似点</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 8, height: 2, border: '1px dashed #F53F3F', marginRight: 4 }}></span>高温区域</span>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginTop: 20, flexWrap: 'wrap', gap: 8 }}>
|
||||
<div style={{ display: 'flex', gap: 12, fontSize: 11 }}>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 8, height: 8, borderRadius: '50%', background: '#F53F3F', marginRight: 4 }}></span>疑似点</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 8, height: 2, border: '1px dashed #F53F3F', marginRight: 4 }}></span>高温区</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
||||
<span style={{ fontSize: 12, color: '#86909C' }}>温度范围:25℃ ~ 85℃</span>
|
||||
<div style={{ width: 100, height: 8, background: 'linear-gradient(to right, #0000ff, #00ff00, #ffff00, #ff0000)', borderRadius: 4 }} />
|
||||
<span style={{ fontSize: 11, color: '#86909C' }}>25℃ ~ 85℃</span>
|
||||
<div style={{ width: 80, height: 6, background: 'linear-gradient(to right, #0000ff, #00ff00, #ffff00, #ff0000)', borderRadius: 3 }} />
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
</Col>
|
||||
<Col span={14}>
|
||||
<Col xs={24} lg={14}>
|
||||
<Card
|
||||
title={<span style={{ fontSize: 14, fontWeight: 700 }}>组串异常定位<InfoCircleOutlined style={{ marginLeft: 4, color: '#86909C' }} /></span>}
|
||||
extra={<div style={{ fontSize: 12, color: '#86909C' }}>总组串数:160 | 异常组串:<span style={{ color: '#F53F3F' }}>8</span></div>}
|
||||
title={<span style={{ fontSize: 'clamp(13px, 1vw, 14px)', fontWeight: 700 }}>组串异常定位<InfoCircleOutlined style={{ marginLeft: 4, color: '#86909C' }} /></span>}
|
||||
extra={<div style={{ fontSize: 'clamp(10px, 0.8vw, 12px)', color: '#86909C' }}>异常:<span style={{ color: '#F53F3F' }}>8</span> / 160</div>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: 16 }}
|
||||
style={cardStyle}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
<Row gutter={24}>
|
||||
<Col flex="auto">
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '30px repeat(20, 1fr)', gap: 4 }}>
|
||||
<div></div>
|
||||
{Array.from({ length: 20 }).map((_, i) => (
|
||||
<div key={i} style={{ fontSize: 10, color: '#86909C', textAlign: 'center' }}>{String(i + 1).padStart(2, '0')}</div>
|
||||
))}
|
||||
{['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'].map((row) => (
|
||||
<React.Fragment key={row}>
|
||||
<div style={{ fontSize: 10, color: '#86909C', display: 'flex', alignItems: 'center' }}>{row}排</div>
|
||||
{Array.from({ length: 20 }).map((_, col) => {
|
||||
let color = '#E8F3FF';
|
||||
let icon = null;
|
||||
if (row === 'B' && col === 3) { color = '#F53F3F'; icon = <span style={{ color: '#fff', fontSize: 10 }}>!</span>; }
|
||||
if (row === 'B' && col === 17) { color = '#F53F3F'; icon = <span style={{ color: '#fff', fontSize: 10 }}>!</span>; }
|
||||
if (row === 'C' && col === 15) { color = '#FF7D00'; icon = <span style={{ color: '#fff', fontSize: 10 }}>!</span>; }
|
||||
if (row === 'E' && col === 4) { color = '#FF7D00'; icon = <span style={{ color: '#fff', fontSize: 10 }}>!</span>; }
|
||||
if (row === 'F' && col === 11) { color = '#FF7D00'; icon = <span style={{ color: '#fff', fontSize: 10 }}>!</span>; }
|
||||
if (row === 'G' && col === 1) { color = '#56C1FF'; }
|
||||
if (row === 'H' && col === 10) { color = '#86909C'; }
|
||||
<Row gutter={[16, 16]}>
|
||||
<Col xs={24} sm={24} md={18}>
|
||||
<div style={{ overflowX: 'auto' }}>
|
||||
<div style={{ minWidth: 400 }}>
|
||||
<div style={{ display: 'grid', gridTemplateColumns: '30px repeat(20, 1fr)', gap: 4 }}>
|
||||
<div></div>
|
||||
{Array.from({ length: 20 }).map((_, i) => (
|
||||
<div key={i} style={{ fontSize: 9, color: '#86909C', textAlign: 'center' }}>{String(i + 1).padStart(2, '0')}</div>
|
||||
))}
|
||||
{['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H'].map((row) => (
|
||||
<React.Fragment key={row}>
|
||||
<div style={{ fontSize: 9, color: '#86909C', display: 'flex', alignItems: 'center' }}>{row}排</div>
|
||||
{Array.from({ length: 20 }).map((_, col) => {
|
||||
let color = '#E8F3FF';
|
||||
let icon = null;
|
||||
if (row === 'B' && col === 3) { color = '#F53F3F'; icon = <span style={{ color: '#fff', fontSize: 9 }}>!</span>; }
|
||||
if (row === 'B' && col === 17) { color = '#F53F3F'; icon = <span style={{ color: '#fff', fontSize: 9 }}>!</span>; }
|
||||
if (row === 'C' && col === 15) { color = '#FF7D00'; icon = <span style={{ color: '#fff', fontSize: 9 }}>!</span>; }
|
||||
if (row === 'E' && col === 4) { color = '#FF7D00'; icon = <span style={{ color: '#fff', fontSize: 9 }}>!</span>; }
|
||||
if (row === 'F' && col === 11) { color = '#FF7D00'; icon = <span style={{ color: '#fff', fontSize: 9 }}>!</span>; }
|
||||
if (row === 'G' && col === 1) { color = '#56C1FF'; }
|
||||
if (row === 'H' && col === 10) { color = '#86909C'; }
|
||||
|
||||
return (
|
||||
<div key={`${row}-${col}`} style={{ width: '100%', height: 14, background: color, borderRadius: 1, display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
|
||||
{icon}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</React.Fragment>
|
||||
))}
|
||||
return (
|
||||
<div key={`${row}-${col}`} style={{ width: '100%', height: 12, background: color, borderRadius: 1, display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
|
||||
{icon}
|
||||
</div>
|
||||
);
|
||||
})}
|
||||
</React.Fragment>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style={{ display: 'flex', gap: 16, marginTop: 16, fontSize: 12 }}>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 12, height: 12, background: '#E8F3FF', marginRight: 4 }}></span>正常</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 12, height: 12, background: '#56C1FF', marginRight: 4 }}></span>轻微异常</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 12, height: 12, background: '#FF7D00', marginRight: 4 }}></span>异常</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 12, height: 12, background: '#F53F3F', marginRight: 4 }}></span>严重异常</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 12, height: 12, background: '#86909C', marginRight: 4 }}></span>离线</span>
|
||||
<div style={{ display: 'flex', gap: 12, marginTop: 16, fontSize: 11, flexWrap: 'wrap' }}>
|
||||
{[
|
||||
{ color: '#E8F3FF', label: '正常' },
|
||||
{ color: '#56C1FF', label: '轻微' },
|
||||
{ color: '#FF7D00', label: '异常' },
|
||||
{ color: '#F53F3F', label: '严重' },
|
||||
{ color: '#86909C', label: '离线' },
|
||||
].map(item => (
|
||||
<span key={item.label} style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 10, height: 10, background: item.color, marginRight: 4 }}></span>{item.label}</span>
|
||||
))}
|
||||
</div>
|
||||
</Col>
|
||||
<Col style={{ width: 160 }}>
|
||||
<div style={{ fontSize: 12, fontWeight: 700, marginBottom: 12 }}>异常类型统计</div>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<Space><BellOutlined style={{ color: '#F53F3F' }} />严重异常</Space>
|
||||
<span style={{ fontWeight: 700, color: '#F53F3F' }}>2</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<Space><InfoCircleOutlined style={{ color: '#FF7D00' }} />异常</Space>
|
||||
<span style={{ fontWeight: 700, color: '#FF7D00' }}>4</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<Space><div style={{ width: 14, height: 14, background: '#56C1FF', borderRadius: 2 }} />轻微异常</Space>
|
||||
<span style={{ fontWeight: 700, color: '#56C1FF' }}>2</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<Space><div style={{ width: 14, height: 14, background: '#86909C', borderRadius: 2 }} />离线</Space>
|
||||
<span style={{ fontWeight: 700, color: '#86909C' }}>0</span>
|
||||
</div>
|
||||
<Col xs={24} sm={24} md={6}>
|
||||
<div style={{ fontSize: 12, fontWeight: 700, marginBottom: 12 }}>异常统计</div>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||
{[
|
||||
{ icon: <BellOutlined style={{ color: '#F53F3F' }} />, label: '严重异常', value: 2, color: '#F53F3F' },
|
||||
{ icon: <InfoCircleOutlined style={{ color: '#FF7D00' }} />, label: '异常', value: 4, color: '#FF7D00' },
|
||||
{ icon: <div style={{ width: 12, height: 12, background: '#56C1FF', borderRadius: 2 }} />, label: '轻微异常', value: 2, color: '#56C1FF' },
|
||||
{ icon: <div style={{ width: 12, height: 12, background: '#86909C', borderRadius: 2 }} />, label: '离线', value: 0, color: '#86909C' },
|
||||
].map(item => (
|
||||
<div key={item.label} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<Space size={4} style={{ fontSize: 11 }}>{item.icon}{item.label}</Space>
|
||||
<span style={{ fontWeight: 700, color: item.color, fontSize: 12 }}>{item.value}</span>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</Col>
|
||||
</Row>
|
||||
@@ -297,68 +299,47 @@ export default function AIDiagnosisPage() {
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
{/* 第三排:衰减分析、发电表现、AI总结建议 (等高设计) */}
|
||||
<Row gutter={12} style={{ marginBottom: 16 }}>
|
||||
{/* 左侧:2个图表 + 数据来源 */}
|
||||
<Col span={16}>
|
||||
<Row gutter={12}>
|
||||
{/* 组件衰减分析 */}
|
||||
<Col span={12}>
|
||||
{/* 第三排:衰减分析、发电表现、AI总结建议 */}
|
||||
<Row gutter={[12, 12]} style={{ marginBottom: 16 }}>
|
||||
<Col xs={24} xl={16}>
|
||||
<Row gutter={[12, 12]}>
|
||||
<Col xs={24} md={12}>
|
||||
<Card
|
||||
title={
|
||||
<span style={{ fontSize: 14, fontWeight: 700 }}>
|
||||
组件衰减分析
|
||||
<InfoCircleOutlined style={{ marginLeft: 4, color: '#86909C' }} />
|
||||
</span>
|
||||
}
|
||||
title={<span style={{ fontSize: 'clamp(13px, 1vw, 14px)', fontWeight: 700 }}>组件衰减分析<InfoCircleOutlined style={{ marginLeft: 4, color: '#86909C' }} /></span>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: 16, display: 'flex', flexDirection: 'column', flex: 1 }}
|
||||
style={{ borderRadius: 8, height: '320px', display: 'flex', flexDirection: 'column' }}
|
||||
bodyStyle={{ padding: 16 }}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
<div style={{ flex: 1 }}>
|
||||
<Line {...degradationConfig} height={220} />
|
||||
</div>
|
||||
<div style={{ textAlign: 'right', marginTop: 8, fontSize: 12, color: '#4E5969' }}>
|
||||
当前平均衰减率 <span style={{ fontWeight: 700 }}>-5.32%</span>
|
||||
<Line {...degradationConfig} height={220} autoFit />
|
||||
<div style={{ textAlign: 'right', marginTop: 12, fontSize: 12, color: '#4E5969' }}>
|
||||
当前平均衰减率 <span style={{ fontWeight: 700, color: '#F53F3F' }}>-5.32%</span>
|
||||
</div>
|
||||
</Card>
|
||||
</Col>
|
||||
|
||||
{/* 发电表现分析 */}
|
||||
<Col span={12}>
|
||||
<Col xs={24} md={12}>
|
||||
<Card
|
||||
title={
|
||||
<span style={{ fontSize: 14, fontWeight: 700 }}>
|
||||
发电表现分析
|
||||
<InfoCircleOutlined style={{ marginLeft: 4, color: '#86909C' }} />
|
||||
</span>
|
||||
}
|
||||
title={<span style={{ fontSize: 'clamp(13px, 1vw, 14px)', fontWeight: 700 }}>发电表现分析<InfoCircleOutlined style={{ marginLeft: 4, color: '#86909C' }} /></span>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: 16, display: 'flex', flexDirection: 'column', flex: 1 }}
|
||||
style={{ borderRadius: 8, height: '320px', display: 'flex', flexDirection: 'column' }}
|
||||
bodyStyle={{ padding: 16 }}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
<div style={{ display: 'flex', gap: 16, flex: 1 }}>
|
||||
<div style={{ display: 'flex', gap: 16, height: 220, flexWrap: "wrap" }}>
|
||||
<div style={{ flex: 1 }}>
|
||||
<Line {...generationPerformanceConfig} height={220} autoFit={true}
|
||||
/>
|
||||
<Line {...generationPerformanceConfig} height={220} autoFit />
|
||||
</div>
|
||||
<div style={{ width: 100, fontSize: 12, display: 'flex', flexDirection: 'column', justifyContent: 'center', gap: 12 }}>
|
||||
<div>
|
||||
<div style={{ color: '#86909C' }}>当日实际发电</div>
|
||||
<div style={{ fontWeight: 700, color: '#165DFF' }}>4,752 <span style={{ fontSize: 10 }}>kWh</span></div>
|
||||
</div>
|
||||
<div>
|
||||
<div style={{ color: '#86909C' }}>当日预测发电</div>
|
||||
<div style={{ fontWeight: 700, color: '#00B42A' }}>4,960 <span style={{ fontSize: 10 }}>kWh</span></div>
|
||||
</div>
|
||||
<div>
|
||||
<div style={{ color: '#86909C' }}>发电偏差</div>
|
||||
<div style={{ fontWeight: 700, color: '#F53F3F' }}>-4.35%</div>
|
||||
</div>
|
||||
<div>
|
||||
<div style={{ color: '#86909C' }}>PR 值</div>
|
||||
<div style={{ fontWeight: 700, color: '#1D2129' }}>82.6%</div>
|
||||
</div>
|
||||
<div style={{ width: 100, fontSize: 11, display: 'flex', flexDirection: 'column', justifyContent: 'center', gap: 12, flexShrink: 0 }}>
|
||||
{[
|
||||
{ label: '实际发电', value: '4,752', unit: 'kWh', color: '#165DFF' },
|
||||
{ label: '预测发电', value: '4,960', unit: 'kWh', color: '#00B42A' },
|
||||
{ label: '发电偏差', value: '-4.35%', unit: '', color: '#F53F3F' },
|
||||
{ label: 'PR 值', value: '82.6%', unit: '', color: '#1D2129' },
|
||||
].map(item => (
|
||||
<div key={item.label}>
|
||||
<div style={{ color: '#86909C', marginBottom: 2 }}>{item.label}</div>
|
||||
<div style={{ fontWeight: 700, color: item.color }}>{item.value} <span style={{ fontSize: 9 }}>{item.unit}</span></div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
@@ -366,41 +347,27 @@ export default function AIDiagnosisPage() {
|
||||
</Row>
|
||||
|
||||
{/* 数据来源 */}
|
||||
<Row gutter={12} style={{ marginTop: 12 }}>
|
||||
<Row gutter={[12, 12]} style={{ marginTop: 12 }}>
|
||||
<Col span={24}>
|
||||
<Card
|
||||
title={<span style={{ fontSize: 13, fontWeight: 700 }}>数据来源</span>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: 16 }}
|
||||
style={{ borderRadius: 8 }}
|
||||
style={cardStyle}
|
||||
>
|
||||
<div style={{ fontSize: 14, fontWeight: 700, marginBottom: 16 }}>数据来源</div>
|
||||
<Row gutter={12}>
|
||||
<Row gutter={[12, 12]}>
|
||||
{[
|
||||
{ title: '无人机热成像', time: '2025-05-20 09:30', icon: <ScanOutlined /> },
|
||||
{ title: 'SCADA历史数据', time: '2025-05-20 00:00 - 09:45', icon: <DatabaseOutlined /> },
|
||||
{ title: '气象数据', time: '2025-05-20 00:00 - 09:45', icon: <CloudOutlined /> },
|
||||
{ title: '清洗记录', time: '2025-05-12', label: '最近清洗', icon: <RestOutlined /> },
|
||||
{ title: '无人机热成像', time: '05-20 09:30', icon: <ScanOutlined /> },
|
||||
{ title: 'SCADA历史数据', time: '05-20 00:00', icon: <DatabaseOutlined /> },
|
||||
{ title: '气象实况数据', time: '05-20 09:45', icon: <CloudOutlined /> },
|
||||
{ title: '最近清洗记录', time: '05-12 14:20', icon: <RestOutlined /> },
|
||||
].map((source, idx) => (
|
||||
<Col span={6} key={idx}>
|
||||
<div
|
||||
style={{
|
||||
background: '#f5f7fa',
|
||||
padding: '12px 16px',
|
||||
borderRadius: 8,
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: 12,
|
||||
}}
|
||||
>
|
||||
<div style={{ fontSize: 24, color: '#165DFF' }}>{source.icon}</div>
|
||||
<div style={{ flex: 1 }}>
|
||||
<div style={{ fontSize: 13, fontWeight: 700, color: '#1D2129' }}>{source.title}</div>
|
||||
<div style={{ fontSize: 11, color: '#86909C' }}>
|
||||
{source.label || '数据时间'}:{source.time}
|
||||
</div>
|
||||
<div style={{ fontSize: 11, color: '#00B42A', marginTop: 2 }}>
|
||||
<CheckCircleOutlined /> 数据状态:正常
|
||||
</div>
|
||||
<Col xs={12} sm={12} md={6} key={idx}>
|
||||
<div style={{ background: '#f8fafc', padding: '12px', borderRadius: 8, display: 'flex', alignItems: 'center', gap: 10, border: '1px solid #f0f0f0' }}>
|
||||
<div style={{ fontSize: 20, color: '#165DFF', flexShrink: 0 }}>{source.icon}</div>
|
||||
<div style={{ flex: 1, minWidth: 0 }}>
|
||||
<div style={{ fontSize: 12, fontWeight: 700, color: '#1D2129', whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{source.title}</div>
|
||||
<div style={{ fontSize: 10, color: '#86909C', marginTop: 2 }}>{source.time}</div>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
@@ -412,49 +379,34 @@ export default function AIDiagnosisPage() {
|
||||
</Col>
|
||||
|
||||
{/* 右侧:AI 诊断与处置 */}
|
||||
<Col span={8}>
|
||||
<Col xs={24} xl={8}>
|
||||
<Card
|
||||
title={<span style={{ fontSize: 14, fontWeight: 700 }}>AI 诊断与处置</span>}
|
||||
title={<span style={{ fontSize: 'clamp(13px, 1vw, 14px)', fontWeight: 700 }}>AI 诊断与建议措施</span>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: 0 }}
|
||||
style={{ borderRadius: 8, height: '100%', display: 'flex', flexDirection: 'column' }}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
<div style={{ flex: 1, overflow: 'auto', padding: '0 8px' }}>
|
||||
<div style={{ padding: '0 8px' }}>
|
||||
<Table
|
||||
columns={[
|
||||
{ title: '诊断项', dataIndex: 'diagnosis', key: 'diagnosis', width: 100 },
|
||||
{ title: '状态', dataIndex: 'status', key: 'status', render: renderStatusTag, width: 60 },
|
||||
{ title: '影响', dataIndex: 'impact', key: 'impact', render: renderImpactTag, width: 60 },
|
||||
{ title: '详情', dataIndex: 'conclusion', key: 'conclusion' },
|
||||
{ title: '诊断项', dataIndex: 'diagnosis', key: 'diagnosis', width: 90 },
|
||||
{ title: '状态', dataIndex: 'status', key: 'status', render: renderStatusTag, width: 50 },
|
||||
{ title: '结论', dataIndex: 'conclusion', key: 'conclusion', ellipsis: true },
|
||||
]}
|
||||
dataSource={aiSummaryData}
|
||||
pagination={false}
|
||||
size="small"
|
||||
/>
|
||||
<Divider style={{ margin: '8px 0' }} />
|
||||
<Divider style={{ margin: '12px 0' }} />
|
||||
<Table
|
||||
columns={[
|
||||
{ title: '建议措施', dataIndex: 'measure', key: 'measure' },
|
||||
{
|
||||
title: '收益',
|
||||
dataIndex: 'expectedGain',
|
||||
key: 'expectedGain',
|
||||
render: (g) => <span style={{ color: '#00B42A' }}>{g}</span>,
|
||||
width: 70
|
||||
},
|
||||
{ title: '建议措施', dataIndex: 'measure', key: 'measure', ellipsis: true },
|
||||
{ title: '预期收益', dataIndex: 'expectedGain', key: 'expectedGain', render: (g) => <span style={{ color: '#00B42A', fontWeight: 600 }}>{g}</span>, width: 80 },
|
||||
{
|
||||
title: '操作',
|
||||
key: 'action',
|
||||
width: 70,
|
||||
render: () => (
|
||||
<Button
|
||||
type="primary"
|
||||
size="small"
|
||||
style={{ fontSize: 11, borderRadius: 4 }}
|
||||
>
|
||||
工单
|
||||
</Button>
|
||||
)
|
||||
width: 65,
|
||||
render: () => <Button type="primary" size="small" style={{ fontSize: 11, borderRadius: 4 }}>工单</Button>
|
||||
},
|
||||
]}
|
||||
dataSource={aiRecommendations}
|
||||
@@ -465,7 +417,6 @@ export default function AIDiagnosisPage() {
|
||||
</Card>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user