紧凑样式
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -69,13 +69,13 @@ export default function AlarmCenterPage() {
|
||||
|
||||
return (
|
||||
<Layout style={{ minHeight: '100vh', overflow: 'hidden' }}>
|
||||
<div style={{ display: 'flex', paddingBottom: "12px" }}>
|
||||
<div style={{ padding: '20px 24px 0' }}>
|
||||
<Typography.Title level={4} style={{ margin: 0 }}>告警中心</Typography.Title>
|
||||
<Text type="secondary">告警处置闭环、规则管理与事件中心</Text>
|
||||
<div style={{ display: 'flex', paddingBottom: "4px" }}>
|
||||
<div style={{ padding: '8px 12px 0' }}>
|
||||
<Typography.Title level={4} style={{ margin: 0, fontSize: 'clamp(14px, 1.2vw, 18px)' }}>告警中心</Typography.Title>
|
||||
<Text type="secondary" style={{ fontSize: '12px' }}>告警处置闭环、规则管理与事件中心</Text>
|
||||
</div>
|
||||
|
||||
<Header style={{ padding: 0, borderBottom: '1px solid #f0f0f0', position: 'sticky', top: 0, zIndex: 10 }}>
|
||||
<Header style={{ padding: 0, borderBottom: '1px solid #f0f0f0', position: 'sticky', top: 0, zIndex: 10, height: 40, lineHeight: '40px' }}>
|
||||
{/*<Menu
|
||||
mode="horizontal"
|
||||
selectedKeys={[activeTab]}
|
||||
@@ -83,8 +83,8 @@ export default function AlarmCenterPage() {
|
||||
items={showTabs}
|
||||
style={{
|
||||
border: 'none',
|
||||
height: 64,
|
||||
lineHeight: '64px',
|
||||
height: 40,
|
||||
lineHeight: '40px',
|
||||
background: 'transparent !important',
|
||||
backgroundColor: 'transparent !important',
|
||||
}}
|
||||
@@ -94,7 +94,7 @@ export default function AlarmCenterPage() {
|
||||
|
||||
|
||||
<Content style={{
|
||||
maxHeight: 'calc(100vh - 64px)', overflowY: 'auto', background: '#f5f7fa',
|
||||
maxHeight: 'calc(100vh - 40px)', overflowY: 'auto', background: '#f5f7fa',
|
||||
scrollbarWidth: 'none', msOverflowStyle: 'none',
|
||||
}}>
|
||||
{renderTabContent()}
|
||||
|
||||
@@ -153,7 +153,7 @@ export default function CleanOptimizationPage() {
|
||||
</style>
|
||||
|
||||
<Row
|
||||
gutter={[12, 12]}
|
||||
gutter={[8, 8]}
|
||||
style={{
|
||||
marginBottom: 16,
|
||||
flexWrap: 'wrap',
|
||||
@@ -218,7 +218,7 @@ export default function CleanOptimizationPage() {
|
||||
bg: '#e6f7ff'
|
||||
},
|
||||
].map((item, index) => (
|
||||
<Col key={index} style={{ minWidth: '168px', flex: '1 0 auto' }}>
|
||||
<Col key={index} style={{ minWidth: '168px', flex: '1 0 auto', maxWidth: "250px" }}>
|
||||
<Card
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
@@ -273,7 +273,7 @@ export default function CleanOptimizationPage() {
|
||||
))}
|
||||
</Row>
|
||||
{/* 标题与操作栏 */}
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 16 }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 8 }}>
|
||||
<Space size={8}>
|
||||
<Typography.Title level={4} style={{ margin: 0, fontSize: 'clamp(18px, 1.5vw, 24px)', fontWeight: 800 }}>清洗优化管理</Typography.Title>
|
||||
<InfoCircleOutlined style={{ color: '#86909C' }} />
|
||||
@@ -289,9 +289,9 @@ export default function CleanOptimizationPage() {
|
||||
</Space>
|
||||
</div>
|
||||
|
||||
<Row gutter={[12, 12]} style={{ display: 'flex', alignItems: 'stretch' }}>
|
||||
<Row gutter={[8, 8]} style={{ display: 'flex', alignItems: 'stretch' }}>
|
||||
{/* 左侧:分析图表 */}
|
||||
<Col xs={24} xl={6} style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
|
||||
<Col xs={24} xl={6} style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>污染趋势分析</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: 16 }}>
|
||||
<div style={{ fontSize: 12, color: '#86909C', marginBottom: 16, display: 'flex', justifyContent: 'space-between' }}>
|
||||
<span>污染指数</span>
|
||||
@@ -389,7 +389,7 @@ export default function CleanOptimizationPage() {
|
||||
</Col>
|
||||
|
||||
{/* 中间:地图分布与工单预览 */}
|
||||
<Col xs={24} xl={11} style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
|
||||
<Col xs={24} xl={11} style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||
<Card
|
||||
title={<span style={{ fontSize: 15, fontWeight: 700 }}>电站污染分布与建议清洗区块分布图</span>}
|
||||
bordered={false}
|
||||
@@ -408,7 +408,7 @@ export default function CleanOptimizationPage() {
|
||||
</div>
|
||||
|
||||
{/* 地图背景图与浮动标签 */}
|
||||
<div style={{ position: 'relative', width: '100%', height: 'calc(100% - 40px)', background: '#e5e6eb' }}>
|
||||
<div style={{ position: 'relative', width: '100%', height: '100%', background: '#e5e6eb' }}>
|
||||
<img src="https://images.unsplash.com/photo-1509391366360-2e959784a276?ixlib=rb-1.2.1&auto=format&fit=crop&w=1200&q=80" style={{ width: '100%', height: '100%', objectFit: 'cover' }} />
|
||||
|
||||
{/* 模拟区块叠加层 */}
|
||||
@@ -472,7 +472,7 @@ export default function CleanOptimizationPage() {
|
||||
</Col>
|
||||
|
||||
{/* 右侧:决策建议与参考 */}
|
||||
<Col xs={24} xl={7} style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
|
||||
<Col xs={24} xl={7} style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>智能清洗策略建议</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: 0 }}>
|
||||
<div style={{ background: '#f8fafc', padding: '8px 16px', borderBottom: '1px solid #f0f0f0' }}>
|
||||
<Text type="secondary" style={{ fontSize: 11 }}>算法模型:多因子加权综合优化模型 (v2.0)</Text>
|
||||
|
||||
@@ -97,28 +97,28 @@ export default function DeviceIndexPage() {
|
||||
|
||||
return (
|
||||
<Layout style={{ minHeight: '100vh', background: '#fff', overflow: 'hidden', scrollbarWidth: "thin", scrollbarColor: '#ccc transparent' }}>
|
||||
<div style={{ display: 'flex', paddingBottom: "12px" }}>
|
||||
<div style={{ padding: '20px 24px 0', flexShrink: 0 }}>
|
||||
<Typography.Title level={4} style={{ margin: 0 }}>装备控制</Typography.Title>
|
||||
<Text type="secondary"> 装备总览、状态监控与参数配置</Text>
|
||||
<div style={{ display: 'flex', paddingBottom: "4px" }}>
|
||||
<div style={{ padding: '8px 12px 0', flexShrink: 0 }}>
|
||||
<Typography.Title level={4} style={{ margin: 0, fontSize: 'clamp(14px, 1.2vw, 18px)' }}>装备控制</Typography.Title>
|
||||
<Text type="secondary" style={{ fontSize: '12px' }}>装备总览、状态监控与参数配置</Text>
|
||||
</div>
|
||||
|
||||
<Header style={{ flex: 1, background: '#fff', padding: 0, borderBottom: '1px solid #f0f0f0' }}>
|
||||
<Header style={{ flex: 1, background: '#fff', padding: 0, borderBottom: '1px solid #f0f0f0', height: 40, lineHeight: '40px' }}>
|
||||
<Menu
|
||||
mode="horizontal"
|
||||
selectedKeys={[activeTab]}
|
||||
onClick={({ key }) => setActiveTab(key)}
|
||||
items={tabs}
|
||||
style={{ border: 0, height: 64, lineHeight: '64px' }}
|
||||
style={{ border: 0, height: 40, lineHeight: '40px' }}
|
||||
/>
|
||||
</Header>
|
||||
</div>
|
||||
|
||||
<Content style={{
|
||||
maxHeight: 'calc(100vh - 64px)',
|
||||
maxHeight: 'calc(100vh - 40px)',
|
||||
overflowY: 'auto',
|
||||
background: '#f5f7fa',
|
||||
padding: '20px',
|
||||
padding: '8px',
|
||||
scrollbarWidth: "thin"
|
||||
}}>
|
||||
{renderContent()}
|
||||
|
||||
@@ -153,8 +153,8 @@ export default function StationDashboard() {
|
||||
};
|
||||
|
||||
return (
|
||||
<div style={{ background: '#f8fafc', padding: '16px', minHeight: '100vh', width: '100%', boxSizing: 'border-box' }}>
|
||||
<Row gutter={[16, 16]} style={{ margin: '0 16px 16px 16px' }}>
|
||||
<div style={{ background: '#f8fafc', padding: '8px', minHeight: '100vh', width: '100%', boxSizing: 'border-box' }}>
|
||||
<Row gutter={[8, 8]} style={{ margin: '0 4px 0px 4px' }}>
|
||||
{[
|
||||
{ title: '今日发电量', value: '4,752', unit: 'kWh', sub: '日目标 5,000 kWh', color: '#00B42A', bg: '#E8FFEA', icon: <ThunderboltOutlined /> },
|
||||
{ title: '当前功率', value: '812.6', unit: 'kW', sub: '装机容量 1,000 kWp', color: '#165DFF', bg: '#E8F3FF', icon: <DashboardOutlined /> },
|
||||
@@ -164,31 +164,31 @@ export default function StationDashboard() {
|
||||
{ title: '节省运维成本', value: '¥ 36,540', unit: '', sub: '本月累计节省', color: '#FF7D00', bg: '#FFF7E8', icon: <MoneyCollectOutlined /> },
|
||||
].map((item, idx) => (
|
||||
<Col key={idx} style={{
|
||||
flex: '0 0 auto', // 关键:不拉伸
|
||||
width: '240px', // 固定卡片宽度
|
||||
flex: '1 1 auto', // 允许伸缩
|
||||
width: 'clamp(180px, 15vw, 240px)', // 自适应宽度
|
||||
maxWidth: '240px',
|
||||
minWidth: '240px'
|
||||
minWidth: '160px'
|
||||
}}>
|
||||
<Card
|
||||
bordered={false}
|
||||
style={{ ...cardStyle, height: "100%" }}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
bodyStyle={{ padding: '12px' }}
|
||||
>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<div>
|
||||
<div style={{ color: '#000', fontSize: '14px', fontWeight: 600, marginBottom: 8 }}>{item.title}</div>
|
||||
<div style={{ color: '#000', fontSize: '13px', fontWeight: 600, marginBottom: 4 }}>{item.title}</div>
|
||||
<div style={{ display: 'flex', alignItems: 'baseline' }}>
|
||||
<span style={{ color: item.color, fontSize: '24px', fontWeight: 800 }}>{item.value}</span>
|
||||
{item.unit && <span style={{ color: '#666', fontSize: '14px', marginLeft: 4 }}>{item.unit}</span>}
|
||||
<span style={{ color: item.color, fontSize: 'clamp(18px, 1.5vw, 22px)', fontWeight: 800 }}>{item.value}</span>
|
||||
{item.unit && <span style={{ color: '#666', fontSize: '12px', marginLeft: 4 }}>{item.unit}</span>}
|
||||
</div>
|
||||
<div style={{ fontSize: '12px', color: '#999', marginTop: 8 }}>{item.sub}</div>
|
||||
<div style={{ fontSize: '11px', color: '#999', marginTop: 4 }}>{item.sub}</div>
|
||||
</div>
|
||||
<div style={{
|
||||
width: 50, height: 50, background: item.bg, borderRadius: '50%',
|
||||
width: 40, height: 40, background: item.bg, borderRadius: '50%',
|
||||
display: 'flex', justifyContent: 'center', alignItems: 'center',
|
||||
boxShadow: `0 2px 8px ${item.color}1A`
|
||||
}}>
|
||||
{React.cloneElement(item.icon as React.ReactElement, { style: { fontSize: 28, color: item.color } })}
|
||||
{React.cloneElement(item.icon as React.ReactElement, { style: { fontSize: 22, color: item.color } })}
|
||||
</div>
|
||||
</div>
|
||||
</Card>
|
||||
@@ -196,16 +196,16 @@ export default function StationDashboard() {
|
||||
))}
|
||||
</Row>
|
||||
{/* 主体布局 */}
|
||||
<Row gutter={[16, 16]}>
|
||||
<Row gutter={[8, 8]}>
|
||||
{/* 左侧:图表列 */}
|
||||
<Col xs={24} xl={6}>
|
||||
<Space direction="vertical" size={16} style={{ width: '100%' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>发电趋势</span>} extra={<Space><SyncOutlined /><FullscreenOutlined /></Space>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<div style={{ fontSize: 12, color: '#666', marginBottom: 12 }}>今日发电功率趋势 (kW)</div>
|
||||
<Space direction="vertical" size={8} style={{ width: '100%' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>发电趋势</span>} extra={<Space><SyncOutlined /><FullscreenOutlined /></Space>} bordered={false} style={cardStyle} bodyStyle={{ padding: '8px' }}>
|
||||
<div style={{ fontSize: 11, color: '#666', marginBottom: 8 }}>今日发电功率趋势 (kW)</div>
|
||||
<UniversalLineChart
|
||||
data={powerTrendData}
|
||||
xKey="time"
|
||||
height={220}
|
||||
height={200}
|
||||
smooth
|
||||
dot
|
||||
backgroundColor="transparent"
|
||||
@@ -224,11 +224,11 @@ export default function StationDashboard() {
|
||||
},
|
||||
]}
|
||||
/> </Card>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>辐照度与温度趋势</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>辐照度与温度趋势</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: '8px' }}>
|
||||
<UniversalLineChart
|
||||
data={irradianceData}
|
||||
xKey="time"
|
||||
height={220}
|
||||
height={200}
|
||||
smooth
|
||||
dot
|
||||
backgroundColor="transparent"
|
||||
@@ -285,7 +285,7 @@ export default function StationDashboard() {
|
||||
|
||||
{/* 中间:底图与状态 */}
|
||||
<Col xs={24} xl={12}>
|
||||
<Space direction="vertical" size={16} style={{ width: '100%' }}>
|
||||
<Space direction="vertical" size={8} style={{ width: '100%' }}>
|
||||
<Card
|
||||
title={
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
@@ -456,7 +456,7 @@ export default function StationDashboard() {
|
||||
|
||||
{/* 右侧:状态与分析 */}
|
||||
<Col xs={24} xl={6}>
|
||||
<Space direction="vertical" size={16} style={{ width: '100%' }}>
|
||||
<Space direction="vertical" size={8} style={{ width: '100%' }}>
|
||||
<Card
|
||||
title={<span style={{ fontWeight: 800 }}>实时告警</span>}
|
||||
extra={<Button type="link" size="small">更多 ></Button>}
|
||||
@@ -595,8 +595,6 @@ export default function StationDashboard() {
|
||||
<div style={{ fontSize: 14, color: '#333', marginBottom: 6 }}>
|
||||
{weatherdata.weather}
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div style={{ fontSize: 12, color: '#666', lineHeight: 1.6 }}>
|
||||
|
||||
@@ -97,29 +97,29 @@ const RealTimeMonitorPage = () => {
|
||||
];
|
||||
|
||||
return (
|
||||
<div style={{ background: '#f8fafc', padding: '16px', minHeight: '100vh', width: '100%', boxSizing: 'border-box' }}>
|
||||
<div>
|
||||
<Title level={4} style={{ margin: 0 }}>实时监控中心</Title>
|
||||
<Text type="secondary">全方位实时掌握电站设备运行状态与发电表现</Text>
|
||||
<div style={{ background: '#f8fafc', padding: '8px', minHeight: '100vh', width: '100%', boxSizing: 'border-box' }}>
|
||||
<div style={{ marginBottom: 8 }}>
|
||||
<Title level={4} style={{ margin: 0, fontSize: 'clamp(14px, 1.2vw, 18px)' }}>实时监控中心</Title>
|
||||
<Text type="secondary" style={{ fontSize: '12px' }}>全方位实时掌握电站设备运行状态与发电表现</Text>
|
||||
</div>
|
||||
<Row gutter={[16, 16]}>
|
||||
<Row gutter={[8, 8]}>
|
||||
{/* 左侧大栏 */}
|
||||
<Col xs={24} xl={16}>
|
||||
<Space direction="vertical" size={16} style={{ width: '100%' }}>
|
||||
<Space direction="vertical" size={8} style={{ width: '100%' }}>
|
||||
{/* 电站拓扑图 */}
|
||||
<Card
|
||||
title={<span style={{ fontWeight: 800 }}>电站拓扑图 (实时)</span>}
|
||||
title={<span style={{ fontWeight: 800, fontSize: 13 }}>电站拓扑图 (实时)</span>}
|
||||
extra={
|
||||
<div style={{ display: 'flex', gap: 16, fontSize: 12 }}>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 8, height: 8, borderRadius: '50%', background: '#52c41a', marginRight: 4 }}></span>正常</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 8, height: 8, borderRadius: '50%', background: '#faad14', marginRight: 4 }}></span>告警</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 8, height: 8, borderRadius: '50%', background: '#888', marginRight: 4 }}></span>离线</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ color: '#1890ff', marginLeft: 8 }}>•• 通讯中</span></span>
|
||||
<div style={{ display: 'flex', gap: 12, fontSize: 11 }}>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 6, height: 6, borderRadius: '50%', background: '#52c41a', marginRight: 4 }}></span>正常</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 6, height: 6, borderRadius: '50%', background: '#faad14', marginRight: 4 }}></span>告警</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ width: 6, height: 6, borderRadius: '50%', background: '#888', marginRight: 4 }}></span>离线</span>
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ color: '#1890ff', marginLeft: 4 }}>•• 通讯中</span></span>
|
||||
</div>
|
||||
}
|
||||
bordered={false}
|
||||
style={cardStyle}
|
||||
bodyStyle={{ padding: 0, position: 'relative', height: 480, overflow: 'hidden' }}
|
||||
style={{ ...cardStyle, borderRadius: 8 }}
|
||||
bodyStyle={{ padding: 0, position: 'relative', height: 400, overflow: 'hidden' }}
|
||||
>
|
||||
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
|
||||
<iframe
|
||||
@@ -140,19 +140,19 @@ const RealTimeMonitorPage = () => {
|
||||
|
||||
{/* 设备实时监控列表 */}
|
||||
<Card
|
||||
title={<span style={{ fontWeight: 800 }}>设备实时监控列表</span>}
|
||||
title={<span style={{ fontWeight: 800, fontSize: 13 }}>设备实时监控列表</span>}
|
||||
bordered={false}
|
||||
style={cardStyle}
|
||||
style={{ ...cardStyle, borderRadius: 8 }}
|
||||
extra={
|
||||
<Space>
|
||||
<span style={{ fontSize: 12, color: '#999' }}>全部 56</span>
|
||||
<span style={{ fontSize: 12, color: '#52c41a' }}>正常 52</span>
|
||||
<span style={{ fontSize: 12, color: '#faad14' }}>告警 1</span>
|
||||
<span style={{ fontSize: 12, color: '#999' }}>离线 3</span>
|
||||
<Select defaultValue="all" size="small" style={{ width: 100 }}>
|
||||
<Space size={8}>
|
||||
<span style={{ fontSize: 11, color: '#999' }}>全部 56</span>
|
||||
<span style={{ fontSize: 11, color: '#52c41a' }}>正常 52</span>
|
||||
<span style={{ fontSize: 11, color: '#faad14' }}>告警 1</span>
|
||||
<span style={{ fontSize: 11, color: '#999' }}>离线 3</span>
|
||||
<Select defaultValue="all" size="small" style={{ width: 90 }}>
|
||||
<Option value="all">全部类型</Option>
|
||||
</Select>
|
||||
<Input size="small" placeholder="搜索设备名称" prefix={<SearchOutlined />} style={{ width: 150 }} />
|
||||
<Input size="small" placeholder="搜索设备名称" prefix={<SearchOutlined />} style={{ width: 120 }} />
|
||||
</Space>
|
||||
}
|
||||
>
|
||||
@@ -161,10 +161,10 @@ const RealTimeMonitorPage = () => {
|
||||
columns={columns}
|
||||
dataSource={deviceList}
|
||||
pagination={false}
|
||||
size="middle"
|
||||
size="small"
|
||||
/>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: 16, alignItems: 'center' }}>
|
||||
<span style={{ color: '#999', fontSize: 12 }}>共 56 条</span>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: 12, alignItems: 'center' }}>
|
||||
<span style={{ color: '#999', fontSize: 11 }}>共 56 条</span>
|
||||
<Pagination size="small" total={56} current={1} pageSize={10} showSizeChanger />
|
||||
</div>
|
||||
</Card>
|
||||
@@ -173,9 +173,9 @@ const RealTimeMonitorPage = () => {
|
||||
|
||||
{/* 右侧小栏 */}
|
||||
<Col xs={24} xl={8}>
|
||||
<Space direction="vertical" size={16} style={{ width: '100%' }}>
|
||||
<Space direction="vertical" size={8} style={{ width: '100%' }}>
|
||||
{/* 6个统计卡片 */}
|
||||
<Row gutter={[8, 8]}>
|
||||
<Row gutter={[4, 4]}>
|
||||
{[
|
||||
{ title: '当前总功率', value: '812.6', unit: 'kW', sub: '额定功率 1,000 kW', color: '#165DFF', icon: <ThunderboltOutlined /> },
|
||||
{ title: '并网状态', value: '并网正常', unit: '', sub: '频率 50.02 Hz', color: '#00B42A', icon: <CheckCircleOutlined /> },
|
||||
@@ -185,8 +185,8 @@ const RealTimeMonitorPage = () => {
|
||||
{ title: '环境温度', value: '28.0', unit: '℃', sub: '较昨日 +1.2 ℃', color: '#165DFF', icon: <CloudOutlined /> },
|
||||
].map((item, idx) => (
|
||||
<Col span={8} key={idx}>
|
||||
<Card bordered={false} style={{ ...cardStyle, height: '100%' }} bodyStyle={{ padding: '12px' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'flex-start', gap: 8 }}>
|
||||
<Card bordered={false} style={{ ...cardStyle, height: '100%', borderRadius: 8 }} bodyStyle={{ padding: '8px' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'flex-start', gap: 6 }}>
|
||||
<div style={{ color: item.color, fontSize: 18 }}>{item.icon}</div>
|
||||
<div style={{ flex: 1, minWidth: 0 }}>
|
||||
<div style={{ fontSize: 'clamp(10px, 0.8vw, 11px)', color: '#666', marginBottom: 4, whiteSpace: 'nowrap', overflow: 'hidden', textOverflow: 'ellipsis' }}>{item.title}</div>
|
||||
|
||||
@@ -121,19 +121,19 @@ export default function ReportCenterPage() {
|
||||
{`
|
||||
.compact-table .ant-table-thead > tr > th {
|
||||
background: #f8fafc;
|
||||
padding: 8px 12px !important;
|
||||
padding: 2px 4px !important;
|
||||
font-size: 12px;
|
||||
color: #4E5969;
|
||||
}
|
||||
.compact-table .ant-table-tbody > tr > td {
|
||||
padding: 8px 12px !important;
|
||||
padding: 2px 4px !important;
|
||||
font-size: 12px;
|
||||
}
|
||||
.report-tabs .ant-tabs-nav {
|
||||
margin-bottom: 16px !important;
|
||||
margin-bottom: 8px !important;
|
||||
}
|
||||
.report-tabs .ant-tabs-tab {
|
||||
padding: 8px 16px !important;
|
||||
padding: 2px 4px !important;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
@@ -166,14 +166,14 @@ export default function ReportCenterPage() {
|
||||
</Tabs>
|
||||
|
||||
<Row
|
||||
gutter={[16, 16]}
|
||||
gutter={[8, 8]}
|
||||
style={{
|
||||
marginBottom: 20,
|
||||
marginBottom: 8,
|
||||
flexWrap: 'wrap',
|
||||
}}
|
||||
>
|
||||
{overviewCards.map((card, idx) => (
|
||||
<Col key={idx} style={{ minWidth: '168px', flex: '1 0 auto' }}>
|
||||
<Col key={idx} style={{ minWidth: '168px', flex: '1 0 auto', maxWidth: "250px" }}>
|
||||
<Card
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
@@ -232,7 +232,7 @@ export default function ReportCenterPage() {
|
||||
</Row>
|
||||
|
||||
{/* 筛选栏 */}
|
||||
<div style={{ display: 'flex', alignItems: 'center', marginBottom: 20, gap: 20, flexWrap: 'wrap' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', marginBottom: 8, gap: 20, flexWrap: 'wrap' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center' }}>
|
||||
<span className="filter-label">报表周期:</span>
|
||||
<Select value={reportCycle} onChange={setReportCycle} style={{ width: 100 }} size="small">
|
||||
@@ -269,9 +269,9 @@ export default function ReportCenterPage() {
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Row gutter={[12, 12]}>
|
||||
<Row gutter={[8, 8]}>
|
||||
{/* 左侧主内容区 */}
|
||||
<Col xs={24} xl={16}>
|
||||
<Col xs={24} xl={16} >
|
||||
{/* 月度综合经营分析 */}
|
||||
<Card bordered={false} style={cardStyle} bodyStyle={{ padding: '20px' }} title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>月度综合经营分析</span>}>
|
||||
<Row gutter={24}>
|
||||
@@ -328,7 +328,7 @@ export default function ReportCenterPage() {
|
||||
</Card>
|
||||
|
||||
{/* 第二排:三个图表 */}
|
||||
<Row gutter={[12, 12]} style={{ marginTop: 16, }}>
|
||||
<Row gutter={[8, 8]} style={{ marginTop: 8 }}>
|
||||
<Col span={8}>
|
||||
<Card
|
||||
bordered={false}
|
||||
@@ -447,7 +447,7 @@ export default function ReportCenterPage() {
|
||||
</Col>
|
||||
</Row>
|
||||
{/* 订阅与分发 */}
|
||||
<Card bordered={false} style={{ ...cardStyle, marginTop: 16 }} bodyStyle={{ padding: '20px' }} title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>订阅与分发</span>}>
|
||||
<Card bordered={false} style={{ ...cardStyle, marginTop: 8 }} bodyStyle={{ padding: '20px' }} title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>订阅与分发</span>}>
|
||||
<Row gutter={[16, 16]} wrap>
|
||||
<Col xs={24} sm={12} md={8}>
|
||||
<div style={{ fontSize: 12, color: '#86909C', marginBottom: 12 }}>订阅人员 (6)</div>
|
||||
@@ -522,7 +522,7 @@ export default function ReportCenterPage() {
|
||||
</Card>
|
||||
|
||||
{/* 模板中心 */}
|
||||
<Card bordered={false} style={{ ...cardStyle, marginTop: 16 }} bodyStyle={{ padding: '16px' }} title={<span style={{ fontSize: 15, fontWeight: 700 }}>模板中心</span>} extra={<Button type="link" size="small">更多 <ChevronRight size={14} /></Button>}>
|
||||
<Card bordered={false} style={{ ...cardStyle, marginTop: 8 }} bodyStyle={{ padding: '16px' }} title={<span style={{ fontSize: 15, fontWeight: 700 }}>模板中心</span>} extra={<Button type="link" size="small">更多 <ChevronRight size={14} /></Button>}>
|
||||
<Row gutter={[12, 12]}>
|
||||
{reportTemplates.map((tpl, idx) => (
|
||||
<Col span={12} key={idx}>
|
||||
@@ -541,7 +541,7 @@ export default function ReportCenterPage() {
|
||||
</Card>
|
||||
|
||||
{/* 报表生成记录 */}
|
||||
<Card bordered={false} style={{ ...cardStyle, marginTop: 16 }} bodyStyle={{ padding: 0 }} title={<span style={{ fontSize: 15, fontWeight: 700 }}>报表生成记录</span>} extra={<Button type="link" size="small">更多 <ChevronRight size={14} /></Button>}>
|
||||
<Card bordered={false} style={{ ...cardStyle, marginTop: 8 }} bodyStyle={{ padding: 0 }} title={<span style={{ fontSize: 15, fontWeight: 700 }}>报表生成记录</span>} extra={<Button type="link" size="small">更多 <ChevronRight size={14} /></Button>}>
|
||||
<Table
|
||||
rowKey="name"
|
||||
columns={[
|
||||
|
||||
@@ -163,23 +163,22 @@ export default function SystemSettings() {
|
||||
return (
|
||||
<Layout style={{ minHeight: '100vh', background: '#fff', overflow: 'hidden' }}>
|
||||
|
||||
<div style={{ padding: '20px 24px 0' }}>
|
||||
<Typography.Title level={4} style={{ margin: 0 }}>系统设置</Typography.Title>
|
||||
<Text type="secondary"> 告警规则配置、用户角色、通知管理与系统参数设置
|
||||
</Text>
|
||||
<div style={{ padding: '8px 12px 0' }}>
|
||||
<Typography.Title level={4} style={{ margin: 0, fontSize: 'clamp(14px, 1.2vw, 18px)' }}>系统设置</Typography.Title>
|
||||
<Text type="secondary" style={{ fontSize: '12px' }}>告警规则配置、用户角色、通知管理与系统参数设置</Text>
|
||||
</div>
|
||||
<Header style={{ background: '#fff', padding: 0, borderBottom: '1px solid #f0f0f0', position: 'sticky', top: 0, zIndex: 10 }}>
|
||||
<Header style={{ background: '#fff', padding: 0, borderBottom: '1px solid #f0f0f0', position: 'sticky', top: 0, zIndex: 10, height: 40, lineHeight: '40px' }}>
|
||||
<Menu
|
||||
mode="horizontal"
|
||||
selectedKeys={[activeTab]}
|
||||
onClick={({ key }) => setActiveTab(key)}
|
||||
items={showTabs}
|
||||
style={{ border: 0, height: 64, lineHeight: '64px' }}
|
||||
style={{ border: 0, height: 40, lineHeight: '40px' }}
|
||||
/>
|
||||
</Header>
|
||||
|
||||
<Content style={{
|
||||
maxHeight: 'calc(100vh - 64px)', overflowY: 'auto', background: '#f5f7fa',
|
||||
maxHeight: 'calc(100vh - 40px)', overflowY: 'auto', background: '#f5f7fa',
|
||||
scrollbarWidth: 'none',
|
||||
msOverflowStyle: 'none',
|
||||
}}>
|
||||
|
||||
@@ -96,9 +96,9 @@ export default function VideoMonitorPage() {
|
||||
|
||||
{/* 顶部统计卡片 */}
|
||||
<Row
|
||||
gutter={[16, 16]}
|
||||
gutter={[8, 8]}
|
||||
style={{
|
||||
marginBottom: 16,
|
||||
marginBottom: 8,
|
||||
flexWrap: 'wrap',
|
||||
}}
|
||||
>
|
||||
@@ -154,7 +154,7 @@ export default function VideoMonitorPage() {
|
||||
bg: '#E8F3FF'
|
||||
},
|
||||
].map((item, index) => (
|
||||
<Col key={index} style={{ minWidth: '168px', flex: '1 0 auto' }}>
|
||||
<Col key={index} style={{ minWidth: '168px', flex: '1 0 auto', maxWidth: "250px" }}>
|
||||
<Card
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
@@ -190,7 +190,7 @@ export default function VideoMonitorPage() {
|
||||
))}
|
||||
</Row>
|
||||
{/* 中间视频监控中心 */}
|
||||
<Row gutter={[12, 12]} style={{ marginBottom: 16 }}>
|
||||
<Row gutter={[12, 12]} style={{ marginBottom: 8 }}>
|
||||
<Col xs={24} xl={18}>
|
||||
<Card
|
||||
title={<span style={{ fontSize: 16, fontWeight: 800, color: '#1D2129' }}>视频监控中心</span>}
|
||||
|
||||
@@ -338,12 +338,12 @@ const WorkOrderPage = () => {
|
||||
{`
|
||||
.compact-table .ant-table-thead > tr > th {
|
||||
background: #f8fafc;
|
||||
padding: 10px 12px !important;
|
||||
padding: 2px 4px !important;
|
||||
font-size: 12px;
|
||||
color: #4E5969;
|
||||
}
|
||||
.compact-table .ant-table-tbody > tr > td {
|
||||
padding: 10px 12px !important;
|
||||
padding: 2px 4px !important;
|
||||
font-size: 12px;
|
||||
}
|
||||
.filter-label {
|
||||
@@ -381,7 +381,7 @@ const WorkOrderPage = () => {
|
||||
</div>
|
||||
|
||||
{/* 统计卡片 */}
|
||||
<Row gutter={[12, 12]} style={{ marginBottom: 16 }}>
|
||||
<Row gutter={[8, 8]} style={{ marginBottom: 8 }}>
|
||||
{stats.map((item, index) => (
|
||||
<Col key={index} xs={24} sm={12} md={8} xl={4}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '20px 16px' }} style={cardStyle}>
|
||||
@@ -417,7 +417,7 @@ const WorkOrderPage = () => {
|
||||
</Row>
|
||||
|
||||
{/* 筛选栏 */}
|
||||
<Card bordered={false} bodyStyle={{ padding: '12px 16px' }} style={{ ...cardStyle, marginBottom: 16 }}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '12px 16px' }} style={{ ...cardStyle, marginBottom: 8 }}>
|
||||
<Row gutter={[16, 12]} align="middle">
|
||||
<Col xs={12} sm={8} md={4} xl={3}>
|
||||
<div style={{ display: 'flex', alignItems: 'center' }}>
|
||||
@@ -472,14 +472,14 @@ const WorkOrderPage = () => {
|
||||
</Row>
|
||||
</Card>
|
||||
|
||||
<Row gutter={[12, 12]}>
|
||||
<Row gutter={[8, 8]}>
|
||||
{/* 左侧:列表 + 底部图表 */}
|
||||
<Col xs={24} xl={15}>
|
||||
<Card
|
||||
bordered={false}
|
||||
title={<Space size={8}><Text strong style={{ fontSize: 15, color: '#1D2129' }}>工单列表</Text><Text type="secondary" style={{ fontSize: 12 }}>(共 {workOrderTotal} 条)</Text></Space>}
|
||||
bodyStyle={{ padding: 0 }}
|
||||
style={{ ...cardStyle, marginBottom: 16 }}
|
||||
style={{ ...cardStyle, marginBottom: 8 }}
|
||||
>
|
||||
<Table
|
||||
dataSource={workOrderList}
|
||||
|
||||
Reference in New Issue
Block a user