清洗优化

This commit is contained in:
mmc
2026-05-07 22:04:27 +08:00
parent 1554af83d3
commit 9645c2b651
6 changed files with 539 additions and 43 deletions

View File

@@ -196,7 +196,7 @@ export default function AIDiagnosisPage() {
<Row gutter={16} style={{ marginBottom: 24 }}>
<Col span={12}>
<Card
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>热成像分析(无人机巡检)</span>}
title={<span style={{ color: '#0837A8', fontWeight: 800 }}>热成像分析(无人机巡检)</span>}
bordered={false}
style={{ borderRadius: 8 }}
extra={<Text type="secondary" style={{ fontSize: 12 }}>巡检时间:2026-05-06 09:30</Text>}
@@ -209,7 +209,7 @@ export default function AIDiagnosisPage() {
{item.title}
</div>
<div style={{ position: 'absolute', bottom: 8, left: 8 }}>
<div style={{ fontSize: 14, fontWeight: 600 }}>{item.name}</div>
<div style={{ fontSize: 14, fontWeight: 800 }}>{item.name}</div>
<div style={{ fontSize: 12, color: '#666' }}>{item.temp}</div>
</div>
</div>
@@ -227,7 +227,7 @@ export default function AIDiagnosisPage() {
</Col>
<Col span={12}>
<Card
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>组串异常定位</span>}
title={<span style={{ color: '#0837A8', fontWeight: 800 }}>组串异常定位</span>}
bordered={false}
style={{ borderRadius: 8, height: "100%" }}
extra={<div style={{ display: 'flex', alignItems: 'center' }}><Text type="secondary" style={{ fontSize: 12 }}>20列 × 8排二维矩阵,点击点位查看详情</Text><Tag color="red" style={{ marginLeft: 8 }}>异常组串:8</Tag></div>}
@@ -276,7 +276,7 @@ export default function AIDiagnosisPage() {
</div>
<div style={{ width: 180, borderLeft: '1px solid #f0f0f0', paddingLeft: 16 }}>
<div style={{ marginBottom: 12 }}>
<div style={{ fontWeight: 600, marginBottom: 4 }}>A-03</div>
<div style={{ fontWeight: 800, marginBottom: 4 }}>A-03</div>
<div style={{ fontSize: 12, color: '#999', marginBottom: 2 }}>温度 <span style={{ color: '#ff4d4f' }}>75℃</span></div>
<div style={{ fontSize: 12, color: '#999', marginBottom: 2 }}>发电偏差 <span style={{ color: '#ff4d4f' }}>-18.6%</span></div>
<div style={{ fontSize: 12, color: '#999', marginBottom: 2 }}>历史异常 3 次</div>
@@ -293,7 +293,7 @@ export default function AIDiagnosisPage() {
<Row gutter={16} style={{ marginBottom: 24, height: '285px' }}>
<Col span={8}>
<Card
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>组件衰减分析</span>}
title={<span style={{ color: '#0837A8', fontWeight: 800 }}>组件衰减分析</span>}
bordered={false}
style={{ borderRadius: 8 }}
>
@@ -302,7 +302,7 @@ export default function AIDiagnosisPage() {
</Col>
<Col span={8}>
<Card
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>发电表现分析</span>}
title={<span style={{ color: '#0837A8', fontWeight: 800 }}>发电表现分析</span>}
bordered={false}
style={{ borderRadius: 8 }}
>
@@ -311,13 +311,17 @@ export default function AIDiagnosisPage() {
</Col>
<Col span={8} style={{ height: '100%' }}>
<Card
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>AI诊断总结</span>}
title={<span style={{ color: '#0837A8', fontWeight: 800 }}>AI诊断总结</span>}
bordered={false}
style={{ borderRadius: 8, height: '100%' }}
extra={<Text type="secondary" style={{ fontSize: 12 }}>模型置信度与影响程度</Text>}
>
{/* 关键:给 Table 设置固定高度 + 滚动 */}
<div style={{ height: "200px", overflow: "auto" }}>
{/* 👇 加了灰色透明滚动条 */}
<div style={{
height: "200px",
overflow: "auto",
scrollbarWidth: 'thin', scrollbarColor: '#ccc transparent'
}}>
<Table
columns={[
{ title: '诊断项', dataIndex: 'diagnosis', width: 100 },
@@ -340,7 +344,7 @@ export default function AIDiagnosisPage() {
<Row gutter={16} style={{ marginTop: 16 }}>
<Col span={12}>
<Card
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>数据来源状态</span>}
title={<span style={{ color: '#0837A8', fontWeight: 800 }}>数据来源状态</span>}
bordered={false}
style={{ borderRadius: 8, height: '100%' }}
extra={<Text type="secondary" style={{ fontSize: 12 }}>多源数据融合质量</Text>}
@@ -348,14 +352,14 @@ export default function AIDiagnosisPage() {
<Row gutter={16}>
<Col span={12}>
<div style={{ textAlign: 'center', padding: 12, background: '#f5f7fa', borderRadius: 8 }}>
<div style={{ fontSize: 16, fontWeight: 600, color: '#1890ff' }}>UAV</div>
<div style={{ fontSize: 16, fontWeight: 800, color: '#1890ff' }}>UAV</div>
<div style={{ fontSize: 12, marginTop: 4 }}>无人机</div>
<div style={{ fontSize: 10, color: '#52c41a' }}>数据状态:正常</div>
</div>
</Col>
<Col span={12}>
<div style={{ textAlign: 'center', padding: 12, background: '#f5f7fa', borderRadius: 8 }}>
<div style={{ fontSize: 16, fontWeight: 600, color: '#1890ff' }}>DB</div>
<div style={{ fontSize: 16, fontWeight: 800, color: '#1890ff' }}>DB</div>
<div style={{ fontSize: 12, marginTop: 4 }}>SCA</div>
<div style={{ fontSize: 10, color: '#52c41a' }}>数据状态:正常</div>
</div>
@@ -365,14 +369,14 @@ export default function AIDiagnosisPage() {
<Row gutter={16} style={{ marginTop: 16 }}>
<Col span={12}>
<div style={{ textAlign: 'center', padding: 12, background: '#f5f7fa', borderRadius: 8 }}>
<div style={{ fontSize: 16, fontWeight: 600, color: '#1890ff' }}>UAV</div>
<div style={{ fontSize: 16, fontWeight: 800, color: '#1890ff' }}>UAV</div>
<div style={{ fontSize: 12, marginTop: 4 }}>无人机</div>
<div style={{ fontSize: 10, color: '#52c41a' }}>数据状态:正常</div>
</div>
</Col>
<Col span={12}>
<div style={{ textAlign: 'center', padding: 12, background: '#f5f7fa', borderRadius: 8 }}>
<div style={{ fontSize: 16, fontWeight: 600, color: '#1890ff' }}>UAV</div>
<div style={{ fontSize: 16, fontWeight: 800, color: '#1890ff' }}>UAV</div>
<div style={{ fontSize: 12, marginTop: 4 }}>无人机</div>
<div style={{ fontSize: 10, color: '#52c41a' }}>数据状态:正常</div>
</div>
@@ -383,13 +387,17 @@ export default function AIDiagnosisPage() {
</Col>
<Col span={12}>
<Card
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>AI建议与处置</span>}
title={<span style={{ color: '#0837A8', fontWeight: 800 }}>AI建议与处置</span>}
bordered={false}
style={{ borderRadius: 8 }}
extra={<Text type="secondary" style={{ fontSize: 12 }}>按收益、优先级与置信度排序</Text>}
>
{/* 👇 关键:外层包一层 div,设置高度 + 滚动 */}
<div style={{ height: 220, overflow: "auto" }}>
{/* 👇 加了灰色透明滚动条 */}
<div style={{
height: 220,
overflow: "auto",
scrollbarWidth: 'thin', scrollbarColor: '#ccc transparent'
}}>
<Table
columns={[
{ title: '建议措施', dataIndex: 'measure' },
@@ -433,7 +441,7 @@ export default function AIDiagnosisPage() {
{/* 抽屉详情 */}
<Drawer
title={<span style={{ color: '#0837A8', fontWeight: 600 }}>AI诊断详情</span>}
title={<span style={{ color: '#0837A8', fontWeight: 800 }}>AI诊断详情</span>}
placement="right"
onClose={() => setDrawerVisible(false)}
open={drawerVisible}