AI诊断中心
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
MinusOutlined, PlusOutlined, SyncOutlined
|
||||
} from '@ant-design/icons';
|
||||
import { Line, Bar, Pie } from '@ant-design/charts';
|
||||
import { getOverflowOptions } from 'antd/es/_util/placements';
|
||||
|
||||
const { Text } = Typography;
|
||||
|
||||
@@ -177,7 +176,7 @@ export default function StationDashboard() {
|
||||
{/* 左侧图表列 - 最终完美版:不溢出 + 一定可见 */}
|
||||
<Col xs={24} lg={6} style={{ flex: '0 0 25%', padding: '0 8px', display: 'flex', flexDirection: 'column', height: '100%', gap: "8px", overflowX: 'hidden', overflowY: 'auto', scrollbarWidth: 'thin', scrollbarColor: '#ccc transparent' }}>
|
||||
<Card
|
||||
title="发电趋势"
|
||||
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>发电趋势</span>}
|
||||
bordered={false}
|
||||
style={{
|
||||
...cardStyle,
|
||||
@@ -198,7 +197,7 @@ export default function StationDashboard() {
|
||||
</Card>
|
||||
|
||||
<Card
|
||||
title="辐照度与温度"
|
||||
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>辐照度与温度</span>}
|
||||
bordered={false}
|
||||
style={{
|
||||
...cardStyle,
|
||||
@@ -219,7 +218,7 @@ export default function StationDashboard() {
|
||||
</Card>
|
||||
|
||||
<Card
|
||||
title="逆变器效率"
|
||||
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>逆变器效率</span>}
|
||||
bordered={false}
|
||||
style={{
|
||||
...cardStyle,
|
||||
@@ -240,7 +239,7 @@ export default function StationDashboard() {
|
||||
</Card>
|
||||
|
||||
<Card
|
||||
title="运维任务进度"
|
||||
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>运维任务进度</span>}
|
||||
bordered={false}
|
||||
style={{
|
||||
...cardStyle,
|
||||
@@ -267,7 +266,7 @@ export default function StationDashboard() {
|
||||
title={
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<div>
|
||||
<div style={{ fontWeight: 500 }}>电站概览</div>
|
||||
<div style={{ fontWeight: 500, color: '#0837A8' }}>电站概览</div>
|
||||
<div style={{ fontSize: 12, color: '#999' }}>GeoTIFF 正射底图 · 设备点位叠加</div>
|
||||
</div>
|
||||
|
||||
@@ -319,7 +318,7 @@ export default function StationDashboard() {
|
||||
<Card
|
||||
title={
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<span style={{ fontWeight: 600, fontSize: 14 }}>实时告警</span> {/* 缩小标题 */}
|
||||
<span style={{ fontWeight: 600, fontSize: 14, color: '#0837A8' }}>实时告警</span>
|
||||
<Button type="link" style={{ padding: 0, fontSize: 12 }}>更多</Button>
|
||||
</div>
|
||||
}
|
||||
@@ -338,7 +337,7 @@ export default function StationDashboard() {
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
marginBottom: idx === realtimeAlerts.length - 1 ? 0 : 8, // 缩小行间距
|
||||
marginBottom: idx === realtimeAlerts.length - 1 ? 0 : 8,
|
||||
fontSize: 12
|
||||
}}
|
||||
>
|
||||
@@ -358,7 +357,7 @@ export default function StationDashboard() {
|
||||
<span style={{ width: 6, height: 6, borderRadius: '50%', background: '#fff' }}></span>
|
||||
{alert.level}
|
||||
</Tag>
|
||||
<span style={{ fontSize: 12 }}>{alert.type}</span> {/* 缩小 */}
|
||||
<span style={{ fontSize: 12 }}>{alert.type}</span>
|
||||
</div>
|
||||
<span style={{ color: '#666', fontSize: 12 }}>{alert.time}</span>
|
||||
</div>
|
||||
@@ -367,7 +366,7 @@ export default function StationDashboard() {
|
||||
|
||||
{/* 设备在线状态 */}
|
||||
<Card
|
||||
title={<span style={{ fontWeight: 600, fontSize: 14 }}>设备在线状态</span>}
|
||||
title={<span style={{ fontWeight: 600, fontSize: 14, color: '#0837A8' }}>设备在线状态</span>}
|
||||
bordered={false}
|
||||
style={{
|
||||
borderRadius: 8,
|
||||
@@ -400,7 +399,7 @@ export default function StationDashboard() {
|
||||
|
||||
{/* 天气信息 */}
|
||||
<Card
|
||||
title={<span style={{ fontWeight: 600, fontSize: 14 }}>天气信息</span>}
|
||||
title={<span style={{ fontWeight: 600, fontSize: 14, color: '#0837A8' }}>天气信息</span>}
|
||||
bordered={false}
|
||||
style={{
|
||||
borderRadius: 8,
|
||||
@@ -421,13 +420,7 @@ export default function StationDashboard() {
|
||||
<div style={{ fontSize: 11, color: '#999' }}>风速 4.1 m/s</div>
|
||||
<div style={{ fontSize: 11, color: '#999' }}>中卫市</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
@@ -435,7 +428,7 @@ export default function StationDashboard() {
|
||||
<Card
|
||||
title={
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<span style={{ fontWeight: 600, fontSize: 14 }}>清洗建议</span>
|
||||
<span style={{ fontWeight: 600, fontSize: 14, color: '#0837A8' }}>清洗建议</span>
|
||||
<Button type="link" style={{ padding: 0, fontSize: 12 }}>详情</Button>
|
||||
</div>
|
||||
}
|
||||
@@ -475,7 +468,12 @@ export default function StationDashboard() {
|
||||
</Row>
|
||||
<Row gutter={16} style={{ height: '25%' }} >
|
||||
<Col xs={12} style={{ height: '100%' }}>
|
||||
<Card title="近期巡检记录" bordered={false} style={{ ...cardStyle, height: '100%' }} bodyStyle={{ padding: 12, height: '66%', overflow: 'auto', scrollbarWidth: 'thin', scrollbarColor: '#ccc transparent' }}>
|
||||
<Card
|
||||
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>近期巡检记录</span>}
|
||||
bordered={false}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
bodyStyle={{ padding: 12, height: '66%', overflow: 'auto', scrollbarWidth: 'thin', scrollbarColor: '#ccc transparent' }}
|
||||
>
|
||||
{patrolRecords.map((item, idx) => (
|
||||
<div key={idx} style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 10 }}>
|
||||
<div>
|
||||
@@ -490,7 +488,12 @@ export default function StationDashboard() {
|
||||
</Card>
|
||||
</Col>
|
||||
<Col xs={12} style={{ height: '100%', }}>
|
||||
<Card title="AI分析摘要" bordered={false} style={{ ...cardStyle, height: '100%' }} bodyStyle={{ padding: 12, height: '66%', overflow: 'auto', scrollbarWidth: 'thin', scrollbarColor: '#ccc transparent' }}>
|
||||
<Card
|
||||
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>AI分析摘要</span>}
|
||||
bordered={false}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
bodyStyle={{ padding: 12, height: '66%', overflow: 'auto', scrollbarWidth: 'thin', scrollbarColor: '#ccc transparent' }}
|
||||
>
|
||||
{aiAnalysis.map((item, idx) => (
|
||||
<div key={idx} style={{ display: 'flex', marginBottom: 10 }}>
|
||||
<Tag color={item.type === 'AI分析' ? 'blue' : 'red'} style={{ marginRight: 8 }}>{item.type}</Tag>
|
||||
@@ -502,8 +505,6 @@ export default function StationDashboard() {
|
||||
</Row>
|
||||
|
||||
</Col>
|
||||
|
||||
|
||||
</Row >
|
||||
</div >
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user