优化代码消除 控制台的报错信息
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import React, { useState } from 'react';
|
||||
import React, { useState } from 'react';
|
||||
import {
|
||||
Row, Col, Card, Button, Tag, Table, Typography, Space, Statistic, message, Divider, Tooltip, Avatar, Empty
|
||||
} from 'antd';
|
||||
@@ -210,8 +210,8 @@ export default function AIDiagnosisPage() {
|
||||
].map((item, index) => (
|
||||
<Col key={index} xs={24} sm={12} md={8} xl={4}>
|
||||
<Card
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '20px 16px' }}
|
||||
variant="borderless"
|
||||
styles={{ body: { padding: '20px 16px' } }}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'flex-start' }}>
|
||||
@@ -245,8 +245,8 @@ export default function AIDiagnosisPage() {
|
||||
<Card
|
||||
title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>{t('aiAnalysis.fixed2UavInspection')}<InfoCircleOutlined style={{ marginLeft: 6, color: '#86909C', fontSize: 13 }} /></span>}
|
||||
extra={<Text type="secondary" style={{ fontSize: 12 }}>{t('aiAnalysis.fixed2Inspection202505200930')}<CalendarOutlined style={{ marginLeft: 4 }} /></Text>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px 20px' }}
|
||||
variant="borderless"
|
||||
styles={{ body: { padding: '16px 20px' } }}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
<Row gutter={[12, 12]}>
|
||||
@@ -288,8 +288,8 @@ export default function AIDiagnosisPage() {
|
||||
<span>{t('aiAnalysis.s9')}<b style={{ color: '#1D2129' }}>160</b></span>
|
||||
<span>{t('aiAnalysis.fixed2Abnormal')}<b style={{ color: '#F53F3F' }}>8</b></span>
|
||||
</Space>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px 20px' }}
|
||||
variant="borderless"
|
||||
styles={{ body: { padding: '16px 20px' } }}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
<Row gutter={[20, 20]}>
|
||||
@@ -383,8 +383,8 @@ export default function AIDiagnosisPage() {
|
||||
<Col xs={24} lg={7}>
|
||||
<Card
|
||||
title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>{t('aiAnalysis.s13')}<InfoCircleOutlined style={{ marginLeft: 6, color: '#86909C', fontSize: 13 }} /></span>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px 20px' }}
|
||||
variant="borderless"
|
||||
styles={{ body: { padding: '16px 20px' } }}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
<div style={{ fontSize: 12, color: '#86909C', marginBottom: 16, display: 'flex', justifyContent: 'space-between' }}>
|
||||
@@ -432,8 +432,8 @@ export default function AIDiagnosisPage() {
|
||||
<Col xs={24} lg={10}>
|
||||
<Card
|
||||
title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>{t('aiAnalysis.generation')}<InfoCircleOutlined style={{ marginLeft: 6, color: '#86909C', fontSize: 13 }} /></span>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px 20px' }}
|
||||
variant="borderless"
|
||||
styles={{ body: { padding: '16px 20px' } }}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
<div style={{ display: 'flex', gap: 20 }}>
|
||||
@@ -487,8 +487,8 @@ export default function AIDiagnosisPage() {
|
||||
|
||||
<Col xs={24} lg={7}>
|
||||
<Card
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: 0 }}
|
||||
variant="borderless"
|
||||
styles={{ body: { padding: 0 } }}
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
>
|
||||
{/* AI诊断总结 */}
|
||||
@@ -498,6 +498,7 @@ export default function AIDiagnosisPage() {
|
||||
<span style={{ fontSize: 12, color: '#86909C' }}>{t('aiAnalysis.fixed2UpdatedAt202505200945')}</span>
|
||||
</div>
|
||||
<Table
|
||||
rowKey="key"
|
||||
columns={[
|
||||
{ title: t('aiAnalysis.s36'), dataIndex: 'diagnosis', width: 78 },
|
||||
{ title: t('roles.status'), dataIndex: 'status', render: renderStatusTag, },
|
||||
@@ -524,6 +525,7 @@ export default function AIDiagnosisPage() {
|
||||
<div style={{ padding: '12px 14px' }}>
|
||||
<div style={{ fontSize: 14, fontWeight: 700, color: '#1D2129', marginBottom: 10 }}>{t('aiAnalysis.fixed2Ai')}</div>
|
||||
<Table
|
||||
rowKey="key"
|
||||
columns={[
|
||||
{ title: t('aiAnalysis.s39'), dataIndex: 'measure', ellipsis: true },
|
||||
{ title: t('workOrder.priority'), dataIndex: 'priority', render: renderPriorityTag, width: 58 },
|
||||
@@ -564,8 +566,8 @@ export default function AIDiagnosisPage() {
|
||||
{/* 底部:数据来源 */}
|
||||
<Card
|
||||
title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>{t('aiAnalysis.sourceFixed2')}</span>}
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px 20px' }}
|
||||
variant="borderless"
|
||||
styles={{ body: { padding: '16px 20px' } }}
|
||||
style={cardStyle}
|
||||
>
|
||||
<Row gutter={[16, 16]}>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useState } from 'react';
|
||||
import React, { useState } from 'react';
|
||||
import {
|
||||
Row, Col, Card, Button, Table, Tag, Typography, Space, Statistic, DatePicker,
|
||||
Divider, Progress, Badge, Select, Tooltip, Avatar
|
||||
@@ -226,8 +226,8 @@ export default function CleanOptimizationPage() {
|
||||
].map((item, index) => (
|
||||
<Col key={index} style={{ minWidth: '168px', flex: '1 0 auto', maxWidth: "250px" }}>
|
||||
<Card
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
variant="borderless"
|
||||
styles={{ body: { padding: '16px' } }}
|
||||
style={{ borderRadius: 8, height: 120 }}
|
||||
>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', height: '100%' }}>
|
||||
@@ -298,7 +298,7 @@ export default function CleanOptimizationPage() {
|
||||
<Row gutter={[8, 8]} style={{ display: 'flex', alignItems: 'stretch' }}>
|
||||
{/* 左侧:分析图表 */}
|
||||
<Col xs={24} xl={6} style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.s6')}</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: 16 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.s6')}</span>} variant="borderless" style={cardStyle} styles={{ body: { padding: 16 } }}>
|
||||
<div style={{ fontSize: 12, color: '#86909C', marginBottom: 16, display: 'flex', justifyContent: 'space-between' }}>
|
||||
<span>{t('clean.s7')}</span>
|
||||
<Space size={12}>
|
||||
@@ -329,7 +329,7 @@ export default function CleanOptimizationPage() {
|
||||
/>
|
||||
</Card>
|
||||
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2Generation')}<Text type="secondary" style={{ fontWeight: 400, fontSize: 12 }}>{t('clean.near7Days')}</Text></span>} bordered={false} style={cardStyle} bodyStyle={{ padding: 16 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2Generation')}<Text type="secondary" style={{ fontWeight: 400, fontSize: 12 }}>{t('clean.near7Days')}</Text></span>} variant="borderless" style={cardStyle} styles={{ body: { padding: 16 } }}>
|
||||
<div style={{ position: 'relative', height: "100%" }}>
|
||||
<UniversalPieChart
|
||||
data={pieChartData}
|
||||
@@ -346,7 +346,7 @@ export default function CleanOptimizationPage() {
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2Cleaning2')}<Text type="secondary" style={{ fontWeight: 400, fontSize: 12 }}>{t('clean.nearLast')}</Text></span>} bordered={false} style={cardStyle} bodyStyle={{ padding: 16 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2Cleaning2')}<Text type="secondary" style={{ fontWeight: 400, fontSize: 12 }}>{t('clean.nearLast')}</Text></span>} variant="borderless" style={cardStyle} styles={{ body: { padding: 16 } }}>
|
||||
<UniversalBarChart
|
||||
data={compareChartData}
|
||||
xKey="date"
|
||||
@@ -367,7 +367,7 @@ export default function CleanOptimizationPage() {
|
||||
/>
|
||||
</Card>
|
||||
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2CleaningFixed2')}</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: 16 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2CleaningFixed2')}</span>} variant="borderless" style={cardStyle} styles={{ body: { padding: 16 } }}>
|
||||
<Row gutter={[16, 16]}>
|
||||
<Col span={12}>
|
||||
<div style={{ fontSize: 11, color: '#86909C', marginBottom: 4 }}>{t('clean.generation')}</div>
|
||||
@@ -398,9 +398,9 @@ export default function CleanOptimizationPage() {
|
||||
<Col xs={24} xl={11} style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||
<Card
|
||||
title={<span style={{ fontSize: 15, fontWeight: 700 }}>{t('clean.recommendedCleanBlock')}</span>}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ ...cardStyle, }}
|
||||
bodyStyle={{ padding: 0, position: 'relative', overflow: 'hidden', minHeight: 500 }}
|
||||
styles={{ body: { padding: 0, position: 'relative', overflow: 'hidden', minHeight: 500 } }}
|
||||
>
|
||||
<div style={{ background: '#f8fafc', padding: '10px 20px', display: 'flex', justifyContent: 'space-between', borderBottom: '1px solid #f0f0f0', flexWrap: 'wrap', gap: 8 }}>
|
||||
<Space size={16} wrap style={{ fontSize: 11 }}>
|
||||
@@ -455,11 +455,12 @@ export default function CleanOptimizationPage() {
|
||||
<Card
|
||||
title={<span style={{ fontSize: 15, fontWeight: 700 }}>{t('clean.fixed2Cleaning2')}</span>}
|
||||
extra={<Button type="link" size="small">{t('devices.viewMore')}<ChevronRight size={14} /></Button>}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={cardStyle}
|
||||
bodyStyle={{ padding: 0 }}
|
||||
styles={{ body: { padding: 0 } }}
|
||||
>
|
||||
<Table
|
||||
rowKey="area"
|
||||
columns={[
|
||||
{ title: t('clean.s45'), dataIndex: 'area', key: 'area' },
|
||||
{ title: t('workOrder.priority'), dataIndex: 'priority', key: 'priority', render: renderPriorityTag },
|
||||
@@ -479,11 +480,12 @@ export default function CleanOptimizationPage() {
|
||||
|
||||
{/* 右侧:决策建议与参考 */}
|
||||
<Col xs={24} xl={7} style={{ display: 'flex', flexDirection: 'column', gap: 8 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.cleaning2')}</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: 0 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.cleaning2')}</span>} variant="borderless" style={cardStyle} styles={{ body: { padding: 0 } }}>
|
||||
<div style={{ background: '#f8fafc', padding: '8px 16px', borderBottom: '1px solid #f0f0f0' }}>
|
||||
<Text type="secondary" style={{ fontSize: 11 }}>{t('clean.algorithmModel')}</Text>
|
||||
</div>
|
||||
<Table
|
||||
rowKey="id"
|
||||
columns={[
|
||||
{ title: t('clean.s48'), dataIndex: 'id', key: 'id', width: 85 },
|
||||
{ title: t('workOrder.priority'), dataIndex: 'priority', key: 'priority', render: (p) => <span style={{ color: p === t('workOrder.high') ? '#F53F3F' : '#F7BA1E', fontWeight: 600 }}>{p}</span>, width: 65 },
|
||||
@@ -498,7 +500,7 @@ export default function CleanOptimizationPage() {
|
||||
/>
|
||||
</Card>
|
||||
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2Cleaning2')}</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: 16 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2Cleaning2')}</span>} variant="borderless" style={cardStyle} styles={{ body: { padding: 16 } }}>
|
||||
<Row gutter={12}>
|
||||
<Col span={12}>
|
||||
<div style={{ background: '#F9F0FF', borderRadius: 12, padding: 16, border: '1px solid #D3ADF7', height: '100%' }}>
|
||||
@@ -529,7 +531,7 @@ export default function CleanOptimizationPage() {
|
||||
</Row>
|
||||
</Card>
|
||||
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2WeatherAdvice2')}<Text type="secondary" style={{ fontSize: 12, fontWeight: 400 }}>({t('clean.plan', { name: '01' })})</Text></span>} bordered={false} style={cardStyle} bodyStyle={{ padding: 16 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2WeatherAdvice2')}<Text type="secondary" style={{ fontSize: 12, fontWeight: 400 }}>({t('clean.plan', { name: '01' })})</Text></span>} variant="borderless" style={cardStyle} styles={{ body: { padding: 16 } }}>
|
||||
<Row gutter={12}>
|
||||
<Col span={8}>
|
||||
<div style={{ background: '#f8fafc', padding: '10px 4px', borderRadius: 8, textAlign: 'center', border: '1px solid #f0f0f0' }}>
|
||||
@@ -561,7 +563,7 @@ export default function CleanOptimizationPage() {
|
||||
</Row>
|
||||
</Card>
|
||||
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2Cleaning')}</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: 16 }}>
|
||||
<Card title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('clean.fixed2Cleaning')}</span>} variant="borderless" style={cardStyle} styles={{ body: { padding: 16 } }}>
|
||||
<Row gutter={[16, 16]}>
|
||||
{[
|
||||
{ icon: <Droplets size={18} color="#165DFF" />, bg: '#E8F3FF', label: t('clean.s52'), value: t('clean.tonUnit', { value: '18' }), sub: t('clean.waterSaveWithRobot', { value: '30%' }), subColor: '#00B42A' },
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import React, { useState, useEffect, useRef } from 'react';
|
||||
import { Card, Row, Col, Statistic, Button, Space, Tag, Typography, Table, message } from 'antd';
|
||||
import {
|
||||
CloudOutlined, ThunderboltOutlined, BarChartOutlined,
|
||||
@@ -254,7 +254,7 @@ export default function StationDashboard() {
|
||||
maxWidth: '240px',
|
||||
minWidth: '160px'
|
||||
}}>
|
||||
<Card bordered={false} style={{ ...cardStyle, height: "100%" }} bodyStyle={{ padding: '12px' }}>
|
||||
<Card variant="borderless" style={{ ...cardStyle, height: "100%" }} styles={{ body: { padding: '12px' } }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<div>
|
||||
<div style={{ color: '#000', fontSize: '13px', fontWeight: 600, marginBottom: 4 }}>{item.title}</div>
|
||||
@@ -282,7 +282,7 @@ export default function StationDashboard() {
|
||||
{/* 左侧图表 */}
|
||||
<Col xs={24} xl={6}>
|
||||
<Space direction="vertical" size={8} style={{ width: '100%' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.generationTrend')}</span>} extra={<Space><SyncOutlined /><FullscreenOutlined /></Space>} bordered={false} style={cardStyle} bodyStyle={{ padding: '8px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.generationTrend')}</span>} extra={<Space><SyncOutlined /><FullscreenOutlined /></Space>} variant="borderless" style={cardStyle} styles={{ body: { padding: '8px' } }}>
|
||||
<div style={{ fontSize: 11, color: '#666', marginBottom: 8 }}>今日发电功率趋势 (kW)</div>
|
||||
<UniversalLineChart
|
||||
data={powerTrendData}
|
||||
@@ -297,7 +297,7 @@ export default function StationDashboard() {
|
||||
]}
|
||||
/>
|
||||
</Card>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.irradianceTempTrend')}</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: '8px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.irradianceTempTrend')}</span>} variant="borderless" style={cardStyle} styles={{ body: { padding: '8px' } }}>
|
||||
<UniversalLineChart
|
||||
data={irradianceData}
|
||||
xKey="time"
|
||||
@@ -311,7 +311,7 @@ export default function StationDashboard() {
|
||||
]}
|
||||
/>
|
||||
</Card>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.inverterEfficiency')}</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.inverterEfficiency')}</span>} variant="borderless" style={cardStyle} styles={{ body: { padding: '12px' } }}>
|
||||
<UniversalBarChart
|
||||
data={invEfficiencyData}
|
||||
xKey="device"
|
||||
@@ -322,7 +322,7 @@ export default function StationDashboard() {
|
||||
series={[{ key: 'efficiency', name: '效率', color: '#165DFF' }]}
|
||||
/>
|
||||
</Card>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.maintenanceProgress')}</span>} extra={<Button type="link" size="small">{t('home.fixed2MoreGt')}</Button>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.maintenanceProgress')}</span>} extra={<Button type="link" size="small">{t('home.fixed2MoreGt')}</Button>} variant="borderless" style={cardStyle} styles={{ body: { padding: '12px' } }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center' }}>
|
||||
<UniversalPieChart
|
||||
data={taskProgressData}
|
||||
@@ -358,9 +358,9 @@ export default function StationDashboard() {
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={cardStyle}
|
||||
bodyStyle={{ padding: 0, position: 'relative', overflow: 'hidden', height: 500 }}
|
||||
styles={{ body: { padding: 0, position: 'relative', overflow: 'hidden', height: 500 } }}
|
||||
>
|
||||
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
|
||||
{/*<iframe
|
||||
@@ -378,8 +378,9 @@ export default function StationDashboard() {
|
||||
|
||||
<Row gutter={16}>
|
||||
<Col span={12}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.recentInspection')}</span>} extra={<Button type="link" size="small">{t('home.fixed2MoreGt')}</Button>} bordered={false} style={{ ...cardStyle, height: "100%" }} bodyStyle={{ padding: '0 12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.recentInspection')}</span>} extra={<Button type="link" size="small">{t('home.fixed2MoreGt')}</Button>} variant="borderless" style={{ ...cardStyle, height: "100%" }} styles={{ body: { padding: '0 12px' } }}>
|
||||
<Table
|
||||
rowKey="name"
|
||||
dataSource={patrolRecords}
|
||||
pagination={false}
|
||||
size="small"
|
||||
@@ -393,7 +394,7 @@ export default function StationDashboard() {
|
||||
</Card>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.aiAnalysisSummary')}</span>} bordered={false} style={{ ...cardStyle, height: "100%" }} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.aiAnalysisSummary')}</span>} variant="borderless" style={{ ...cardStyle, height: "100%" }} styles={{ body: { padding: '12px' } }}>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
|
||||
@@ -441,7 +442,7 @@ export default function StationDashboard() {
|
||||
{/* 右侧 */}
|
||||
<Col xs={24} xl={6}>
|
||||
<Space direction="vertical" size={8} style={{ width: '100%' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('alerts.realtimeAlert')}</span>} extra={<Button type="link" size="small" onClick={() => navigate('/alerts/all')}>{t('home.fixed2MoreGt')}</Button>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('alerts.realtimeAlert')}</span>} extra={<Button type="link" size="small" onClick={() => navigate('/alerts/all')}>{t('home.fixed2MoreGt')}</Button>} variant="borderless" style={cardStyle} styles={{ body: { padding: '12px' } }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 12, padding: '0 4px 8px', borderBottom: '1px solid #f0f0f0', fontSize: 13, color: '#666' }}>
|
||||
<span style={{ flex: 3 }}>{t('alerts.alarmContent')}</span>
|
||||
<span style={{ flex: 1, textAlign: 'center' }}>{t('alerts.level')}</span>
|
||||
@@ -465,7 +466,7 @@ export default function StationDashboard() {
|
||||
})}
|
||||
</Card>
|
||||
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.deviceOnlineStatus')}</span>} extra={<Button type="link" size="small">{t('home.fixed2MoreGt')}</Button>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.deviceOnlineStatus')}</span>} extra={<Button type="link" size="small">{t('home.fixed2MoreGt')}</Button>} variant="borderless" style={cardStyle} styles={{ body: { padding: '12px' } }}>
|
||||
<Row gutter={[16, 16]}>
|
||||
{[
|
||||
{ name: t('home.solarPanel'), count: '320/320', icon: <AppstoreOutlined /> },
|
||||
@@ -490,7 +491,7 @@ export default function StationDashboard() {
|
||||
</Row>
|
||||
</Card>
|
||||
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.weatherInfo')}</span>} extra={<Button type="link" size="small">{t('home.gt')}</Button>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('home.weatherInfo')}</span>} extra={<Button type="link" size="small">{t('home.gt')}</Button>} variant="borderless" style={cardStyle} styles={{ body: { padding: '12px' } }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'start', gap: 20 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
|
||||
<WeatherDisplay type={weatherType} />
|
||||
@@ -510,7 +511,7 @@ export default function StationDashboard() {
|
||||
{/* ====================================== */}
|
||||
{/* 👇 清洗建议 + 生成工单按钮(已完善) */}
|
||||
{/* ====================================== */}
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('clean.cleaningSuggestion')}</span>} extra={<Button type="link" size="small">{t('home.fixed2MoreGt')}</Button>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('clean.cleaningSuggestion')}</span>} extra={<Button type="link" size="small">{t('home.fixed2MoreGt')}</Button>} variant="borderless" style={cardStyle} styles={{ body: { padding: '12px' } }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 16, marginBottom: 16 }}>
|
||||
<div style={{ width: 80, height: 80, position: 'relative' }}>
|
||||
<UniversalPieChart
|
||||
|
||||
@@ -146,7 +146,7 @@ const Profile: React.FC = () => {
|
||||
{/* 左侧信息卡片 */}
|
||||
<Col xs={24} sm={24} md={8} lg={7} xl={6}>
|
||||
<Card
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{
|
||||
borderRadius: 12,
|
||||
boxShadow: '0 2px 12px rgba(0,0,0,0.06)',
|
||||
@@ -220,7 +220,7 @@ const Profile: React.FC = () => {
|
||||
{/* 右侧表单卡片 */}
|
||||
<Col xs={24} sm={24} md={16} lg={17} xl={18}>
|
||||
<Card
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{
|
||||
borderRadius: 12,
|
||||
boxShadow: '0 2px 12px rgba(0,0,0,0.06)',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useState } from 'react';
|
||||
import React, { useState } from 'react';
|
||||
import {
|
||||
Card, Row, Col, Table, Select, Input, Tag,
|
||||
Typography, Button, Space, Avatar, Pagination
|
||||
@@ -121,9 +121,9 @@ const RealTimeMonitorPage = () => {
|
||||
<span style={{ display: 'flex', alignItems: 'center' }}><span style={{ color: '#1890ff', marginLeft: 4 }}>{t('page.s2')}</span></span>
|
||||
</div>
|
||||
}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ ...cardStyle, borderRadius: 8 }}
|
||||
bodyStyle={{ padding: 0, position: 'relative', height: 400, overflow: 'hidden' }}
|
||||
styles={{ body: { padding: 0, position: 'relative', height: 400, overflow: 'hidden' } }}
|
||||
>
|
||||
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
|
||||
{/*<iframe
|
||||
@@ -149,7 +149,7 @@ const RealTimeMonitorPage = () => {
|
||||
{/* 设备实时监控列表 */}
|
||||
<Card
|
||||
title={<span style={{ fontWeight: 800, fontSize: 13 }}>{t('page.fixed2DeviceFixed2RealtimeMonitorListFixed2')}</span>}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ ...cardStyle, borderRadius: 8 }}
|
||||
extra={
|
||||
<Space size={8}>
|
||||
@@ -173,7 +173,7 @@ const RealTimeMonitorPage = () => {
|
||||
/>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginTop: 12, alignItems: 'center' }}>
|
||||
<span style={{ color: '#999', fontSize: 11 }}>{t('page.56')}</span>
|
||||
<Pagination size="small" total={56} current={1} pageSize={10} showSizeChanger />
|
||||
<Pagination size="small" total={56} defaultCurrent={1} defaultPageSize={10} showSizeChanger />
|
||||
</div>
|
||||
</Card>
|
||||
</Space>
|
||||
@@ -193,7 +193,7 @@ const RealTimeMonitorPage = () => {
|
||||
{ title: t('home.ambientTemperature'), 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%', borderRadius: 8 }} bodyStyle={{ padding: '8px' }}>
|
||||
<Card variant="borderless" style={{ ...cardStyle, height: '100%', borderRadius: 8 }} styles={{ body: { 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 }}>
|
||||
@@ -211,7 +211,7 @@ const RealTimeMonitorPage = () => {
|
||||
</Row>
|
||||
|
||||
{/* 实时功率曲线 */}
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('page.powerCurveFixed2')}</span>} extra={<Select defaultValue="today" size="small"><Option value="today">{t('page.s11')}</Option></Select>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('page.powerCurveFixed2')}</span>} extra={<Select defaultValue="today" size="small"><Option value="today">{t('page.s11')}</Option></Select>} variant="borderless" style={cardStyle} styles={{ body: { padding: '12px' } }}>
|
||||
<UniversalLineChart
|
||||
height={180}
|
||||
data={powerTrendData}
|
||||
@@ -232,7 +232,7 @@ const RealTimeMonitorPage = () => {
|
||||
</Card>
|
||||
|
||||
{/* 逆变器功率对比 */}
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('page.inverterPowerCompare')}</span>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('page.inverterPowerCompare')}</span>} variant="borderless" style={cardStyle} styles={{ body: { padding: '12px' } }}>
|
||||
<UniversalBarChart
|
||||
height={180}
|
||||
data={inverterPowerData}
|
||||
@@ -253,7 +253,7 @@ const RealTimeMonitorPage = () => {
|
||||
{/* 热力图与在线率 */}
|
||||
<Row gutter={8}>
|
||||
<Col span={12}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('page.stringCurrentHeatmap')}</span>} extra={<Select defaultValue="a" size="small" style={{ width: 60 }}><Option value="a">{t('page.s12')}</Option></Select>} bordered={false} style={cardStyle} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('page.stringCurrentHeatmap')}</span>} extra={<Select defaultValue="a" size="small" style={{ width: 60 }}><Option value="a">{t('page.s12')}</Option></Select>} variant="borderless" style={cardStyle} styles={{ body: { padding: '12px' } }}>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 4 }}>
|
||||
{['INV-01', 'INV-02', 'INV-03', 'INV-04', 'INV-05'].map((name, i) => (
|
||||
<div key={i} style={{ display: 'flex', alignItems: 'center', gap: 4 }}>
|
||||
@@ -292,7 +292,7 @@ const RealTimeMonitorPage = () => {
|
||||
</Card>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('devices.deviceOnlineRate')}</span>} bordered={false} style={{ ...cardStyle, height: "100%" }} bodyStyle={{ padding: '12px' }}>
|
||||
<Card title={<span style={{ fontWeight: 800 }}>{t('devices.deviceOnlineRate')}</span>} variant="borderless" style={{ ...cardStyle, height: "100%" }} styles={{ body: { padding: '12px' } }}>
|
||||
<div style={{ position: 'relative', height: 160 }}>
|
||||
<UniversalPieChart
|
||||
height={160}
|
||||
|
||||
@@ -223,8 +223,8 @@ export default function ReportCenterPage() {
|
||||
{overviewCards.map((card, idx) => (
|
||||
<Col key={idx} style={{ minWidth: '180px', flex: '1 0 auto', }}>
|
||||
<Card
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '20px 20px', display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}
|
||||
variant="borderless"
|
||||
styles={{ body: { padding: '20px 20px', display: 'flex', alignItems: 'center', justifyContent: 'space-between' } }}
|
||||
style={{ borderRadius: 8, boxShadow: '0 2px 8px rgba(0,0,0,0.06)' }}
|
||||
>
|
||||
{/* 左侧文字区域 */}
|
||||
@@ -307,7 +307,7 @@ export default function ReportCenterPage() {
|
||||
{/* 左侧主内容区 */}
|
||||
<Col xs={24} xl={16} >
|
||||
{/* 月度综合经营分析 */}
|
||||
<Card bordered={false} style={cardStyle} bodyStyle={{ padding: '20px' }} title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>{t('report.monthlyOperationAnalysis')}</span>}>
|
||||
<Card variant="borderless" style={cardStyle} styles={{ body: { padding: '20px' } }} title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>{t('report.monthlyOperationAnalysis')}</span>}>
|
||||
<Row gutter={24}>
|
||||
<Col span={17}>
|
||||
<div style={{ fontSize: 11, color: '#86909C', marginBottom: 16, display: 'flex', justifyContent: 'flex-start', gap: 20 }}>
|
||||
@@ -365,9 +365,9 @@ export default function ReportCenterPage() {
|
||||
<Row gutter={[8, 8]} style={{ marginTop: 8 }}>
|
||||
<Col span={8}>
|
||||
<Card
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ ...cardStyle, height: "100%" }}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
styles={{ body: { padding: '16px' } }}
|
||||
title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('report.generationMeteorology')}</span>}
|
||||
>
|
||||
<div style={{ fontSize: 10, color: '#86909C', marginBottom: 12 }}>
|
||||
@@ -392,9 +392,9 @@ export default function ReportCenterPage() {
|
||||
|
||||
<Col span={8}>
|
||||
<Card
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ ...cardStyle, height: "100%" }}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
styles={{ body: { padding: '16px' } }}
|
||||
title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('report.workOrderAlertClosure')}</span>}
|
||||
>
|
||||
<div style={{ fontSize: 10, color: '#86909C', marginBottom: 12 }}>
|
||||
@@ -420,9 +420,9 @@ export default function ReportCenterPage() {
|
||||
|
||||
<Col span={8}>
|
||||
<Card
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ ...cardStyle, height: "100%" }}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
styles={{ body: { padding: '16px' } }}
|
||||
title={<span style={{ fontSize: 14, fontWeight: 700 }}>{t('report.aiAnalysisStatistics')}</span>}
|
||||
>
|
||||
<div style={{ width: '100%', boxSizing: 'border-box' }}>
|
||||
@@ -481,7 +481,7 @@ export default function ReportCenterPage() {
|
||||
</Col>
|
||||
</Row>
|
||||
{/* 订阅与分发 */}
|
||||
<Card bordered={false} style={{ ...cardStyle, marginTop: 8 }} bodyStyle={{ padding: '20px' }} title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>{t('report.subscriptionDispatch')}</span>}>
|
||||
<Card variant="borderless" style={{ ...cardStyle, marginTop: 8 }} styles={{ body: { padding: '20px' } }} title={<span style={{ fontSize: 15, fontWeight: 700, color: '#1D2129' }}>{t('report.subscriptionDispatch')}</span>}>
|
||||
<Row gutter={[16, 16]} wrap>
|
||||
<Col xs={24} sm={12} md={8}>
|
||||
<div style={{ fontSize: 12, color: '#86909C', marginBottom: 12 }}>{t('report.subscribers', { count: 6 })}</div>
|
||||
@@ -526,7 +526,7 @@ export default function ReportCenterPage() {
|
||||
{/* 右侧边栏 */}
|
||||
<Col xs={24} xl={8}>
|
||||
{/* 报表目录 / 快捷下载 */}
|
||||
<Card bordered={false} style={cardStyle} bodyStyle={{ padding: 0 }} title={<span style={{ fontSize: 15, fontWeight: 700 }}>{t('report.reportDirectory')}</span>} extra={<Button type="link" size="small">{t('common.more')} <ChevronRight size={14} /></Button>}>
|
||||
<Card variant="borderless" style={cardStyle} styles={{ body: { padding: 0 } }} title={<span style={{ fontSize: 15, fontWeight: 700 }}>{t('report.reportDirectory')}</span>} extra={<Button type="link" size="small">{t('common.more')} <ChevronRight size={14} /></Button>}>
|
||||
<Table
|
||||
rowKey="name"
|
||||
columns={[
|
||||
@@ -556,7 +556,7 @@ export default function ReportCenterPage() {
|
||||
</Card>
|
||||
|
||||
{/* 模板中心 */}
|
||||
<Card bordered={false} style={{ ...cardStyle, marginTop: 8 }} bodyStyle={{ padding: '16px' }} title={<span style={{ fontSize: 15, fontWeight: 700 }}>{t('report.templateCenter')}</span>} extra={<Button type="link" size="small">{t('common.more')} <ChevronRight size={14} /></Button>}>
|
||||
<Card variant="borderless" style={{ ...cardStyle, marginTop: 8 }} styles={{ body: { padding: '16px' } }} title={<span style={{ fontSize: 15, fontWeight: 700 }}>{t('report.templateCenter')}</span>} extra={<Button type="link" size="small">{t('common.more')} <ChevronRight size={14} /></Button>}>
|
||||
<Row gutter={[12, 12]}>
|
||||
{reportTemplates.map((tpl, idx) => (
|
||||
<Col span={12} key={idx}>
|
||||
@@ -575,7 +575,7 @@ export default function ReportCenterPage() {
|
||||
</Card>
|
||||
|
||||
{/* 报表生成记录 */}
|
||||
<Card bordered={false} style={{ ...cardStyle, marginTop: 8 }} bodyStyle={{ padding: 0 }} title={<span style={{ fontSize: 15, fontWeight: 700 }}>{t('report.generationRecords')}</span>} extra={<Button type="link" size="small">{t('common.more')} <ChevronRight size={14} /></Button>}>
|
||||
<Card variant="borderless" style={{ ...cardStyle, marginTop: 8 }} styles={{ body: { padding: 0 } }} title={<span style={{ fontSize: 15, fontWeight: 700 }}>{t('report.generationRecords')}</span>} extra={<Button type="link" size="small">{t('common.more')} <ChevronRight size={14} /></Button>}>
|
||||
<Table
|
||||
rowKey="name"
|
||||
columns={[
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useState } from 'react';
|
||||
import React, { useState } from 'react';
|
||||
import {
|
||||
Card, Row, Col, Button, Space, Input, Select, Table, Tag, Typography, Dropdown, Menu,
|
||||
Timeline, Badge, Divider, Tooltip
|
||||
@@ -158,8 +158,8 @@ export default function VideoMonitorPage() {
|
||||
].map((item, index) => (
|
||||
<Col key={index} style={{ minWidth: '168px', flex: '1 0 auto', maxWidth: "250px" }}>
|
||||
<Card
|
||||
bordered={false}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
variant="borderless"
|
||||
styles={{ body: { padding: '16px' } }}
|
||||
style={{ borderRadius: 8, height: 120 }}
|
||||
>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', height: '100%' }}>
|
||||
@@ -201,9 +201,9 @@ export default function VideoMonitorPage() {
|
||||
<Button type="link" size="small" icon={<FullscreenOutlined />}>{t('video.fullScreen')}</Button>
|
||||
</Space>
|
||||
}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={cardStyle}
|
||||
bodyStyle={{ padding: 16 }}
|
||||
styles={{ body: { padding: 16 } }}
|
||||
>
|
||||
<Row gutter={[12, 12]}>
|
||||
<Col span={14}>
|
||||
@@ -221,7 +221,7 @@ export default function VideoMonitorPage() {
|
||||
<ScissorOutlined style={{ color: '#fff', fontSize: 18, cursor: 'pointer' }} />
|
||||
<CameraOutlined style={{ color: '#fff', fontSize: 18, cursor: 'pointer' }} />
|
||||
<ExpandOutlined style={{ color: '#fff', fontSize: 18, cursor: 'pointer' }} />
|
||||
<Select defaultValue={t('video.high')} size="small" style={{ width: 80 }} bordered={false} className="video-select">
|
||||
<Select defaultValue={t('video.high')} size="small" style={{ width: 80 }} variant="borderless" className="video-select">
|
||||
<Option value={t('video.super')}>{t('video.super')}</Option>
|
||||
<Option value={t('video.high')}>{t('video.high')}</Option>
|
||||
<Option value={t('video.standard')}>{t('video.standard')}</Option>
|
||||
@@ -265,9 +265,9 @@ export default function VideoMonitorPage() {
|
||||
<Card
|
||||
title={<span style={{ fontSize: 16, fontWeight: 800, color: '#1D2129' }}>{t('video.fixed2AiVideoIntelligentAnalysisFixed2')}</span>}
|
||||
extra={<Button type="link" size="small">{t('common.settings')}<ChevronRight size={14} /></Button>}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={{ ...cardStyle, height: '100%' }}
|
||||
bodyStyle={{ padding: '16px 20px' }}
|
||||
styles={{ body: { padding: '16px 20px' } }}
|
||||
>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 16 }}>
|
||||
{[
|
||||
@@ -308,11 +308,12 @@ export default function VideoMonitorPage() {
|
||||
</Select>
|
||||
</Space>
|
||||
}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={cardStyle}
|
||||
bodyStyle={{ padding: 0 }}
|
||||
styles={{ body: { padding: 0 } }}
|
||||
>
|
||||
<Table
|
||||
rowKey="key"
|
||||
columns={camColumns}
|
||||
dataSource={camList}
|
||||
pagination={false}
|
||||
@@ -327,9 +328,9 @@ export default function VideoMonitorPage() {
|
||||
<Card
|
||||
title={<span style={{ fontSize: 15, fontWeight: 800, color: '#1D2129' }}>{t('video.eventTimeline')}</span>}
|
||||
extra={<Select defaultValue={t('devices.allTypes')} size="small" style={{ width: 100 }}><Option value="全部类型">{t('devices.allTypes')}</Option></Select>}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={cardStyle}
|
||||
bodyStyle={{ padding: '16px 20px' }}
|
||||
styles={{ body: { padding: '16px 20px' } }}
|
||||
>
|
||||
<Timeline style={{ marginTop: 8 }}>
|
||||
{[
|
||||
@@ -357,9 +358,9 @@ export default function VideoMonitorPage() {
|
||||
<Card
|
||||
title={<span style={{ fontSize: 15, fontWeight: 800, color: '#1D2129' }}>{t('video.alert')}</span>}
|
||||
extra={<Button type="link" size="small">{t('devices.viewMore')}<ChevronRight size={14} /></Button>}
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
style={cardStyle}
|
||||
bodyStyle={{ padding: '16px 20px' }}
|
||||
styles={{ body: { padding: '16px 20px' } }}
|
||||
>
|
||||
<div style={{ display: 'flex', flexWrap: "wrap", gap: 12, paddingBottom: 8 }} >
|
||||
{[
|
||||
|
||||
@@ -915,7 +915,7 @@ const WorkOrderPage = () => {
|
||||
<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}>
|
||||
<Card variant="borderless" styles={{ body: { padding: '20px 16px' } }} style={cardStyle}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<div>
|
||||
<div style={{ fontSize: 'clamp(12px, 0.8vw, 13px)', color: '#86909C', marginBottom: 2 }}>{item.title}</div>
|
||||
@@ -940,7 +940,7 @@ const WorkOrderPage = () => {
|
||||
</Row>
|
||||
|
||||
{/* 筛选栏 */}
|
||||
<Card bordered={false} bodyStyle={{ padding: '8px 16px 0px 16px' }} style={{ ...cardStyle, marginBottom: 8 }}>
|
||||
<Card variant="borderless" styles={{ body: { padding: '8px 16px 0px 16px' } }} style={{ ...cardStyle, marginBottom: 8 }}>
|
||||
<Form form={queryForm} layout="inline" initialValues={{
|
||||
orderStatus: 1
|
||||
}}>
|
||||
@@ -976,7 +976,7 @@ const WorkOrderPage = () => {
|
||||
{/* 左侧:列表 + 底部图表 */}
|
||||
<Col xs={24} xl={15}>
|
||||
<Card
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
title={
|
||||
<Space size={8}>
|
||||
<Text strong style={{ fontSize: 15, color: '#1D2129' }}>{t('workOrder.listFixed2')}</Text>
|
||||
@@ -1002,7 +1002,7 @@ const WorkOrderPage = () => {
|
||||
)}
|
||||
</Space>
|
||||
}
|
||||
bodyStyle={{ padding: 0 }}
|
||||
styles={{ body: { padding: 0 } }}
|
||||
style={{ ...cardStyle, marginBottom: 8 }}
|
||||
>
|
||||
|
||||
@@ -1037,7 +1037,7 @@ const WorkOrderPage = () => {
|
||||
|
||||
<Row gutter={[12, 12]}>
|
||||
<Col xs={24} md={9}>
|
||||
<Card bordered={false} title={<Text strong style={{ fontSize: 14 }}>{t('workOrder.fixed2OrderStatus')}</Text>} style={{ ...cardStyle, height: 380 }}>
|
||||
<Card variant="borderless" title={<Text strong style={{ fontSize: 14 }}>{t('workOrder.fixed2OrderStatus')}</Text>} style={{ ...cardStyle, height: 380 }}>
|
||||
<div style={{ height: 300, position: 'relative' }}>
|
||||
<Pie
|
||||
data={pieData}
|
||||
@@ -1059,7 +1059,7 @@ const WorkOrderPage = () => {
|
||||
</Col>
|
||||
<Col xs={24} md={15}>
|
||||
<Card
|
||||
bordered={false}
|
||||
variant="borderless"
|
||||
title={<Text strong style={{ fontSize: 14 }}>{t('workOrder.fixed2TaskSuspended2')}</Text>}
|
||||
extra={
|
||||
<Button
|
||||
@@ -1070,7 +1070,7 @@ const WorkOrderPage = () => {
|
||||
</Button>
|
||||
}
|
||||
style={{ ...cardStyle, height: 380 }}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
styles={{ body: { padding: '16px' } }}
|
||||
>
|
||||
{/* 日期切换栏 */}
|
||||
<div style={{ marginBottom: 16 }}>
|
||||
@@ -1206,7 +1206,7 @@ const WorkOrderPage = () => {
|
||||
|
||||
{/* 右侧:详情 + AI + 告警 */}
|
||||
<Col xs={24} xl={9}>
|
||||
<Card bordered={false} style={cardStyle} bodyStyle={{ padding: '20px' }}>
|
||||
<Card variant="borderless" style={cardStyle} styles={{ body: { padding: '20px' } }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: 8 }}>
|
||||
<Text strong style={{ fontSize: 16, color: '#1D2129' }}>{t('workOrder.detailFixed2')}</Text>
|
||||
<Text type="secondary" style={{ fontSize: 12 }}>{t('workOrder.fixed2OrderNo')}<span style={{ color: '#4E5969', fontWeight: 600 }}>{currentDetail?.orderNo || '--'}</span></Text>
|
||||
@@ -1464,8 +1464,8 @@ const WorkOrderPage = () => {
|
||||
|
||||
</Card>
|
||||
|
||||
<Card bordered={false} title={<Text strong style={{ fontSize: 14, color: '#1D2129' }}>{t('workOrder.aiSuggestion')}</Text>}
|
||||
style={{ ...cardStyle, marginTop: 8 }} bodyStyle={{ padding: '16px' }}>
|
||||
<Card variant="borderless" title={<Text strong style={{ fontSize: 14, color: '#1D2129' }}>{t('workOrder.aiSuggestion')}</Text>}
|
||||
style={{ ...cardStyle, marginTop: 8 }} styles={{ body: { padding: '16px' } }}>
|
||||
<Row gutter={12} style={{ marginBottom: 16 }}>
|
||||
<Col span={8}>
|
||||
<div style={{ background: '#F9F0FF', padding: '16px 8px', borderRadius: 12, textAlign: 'center', height: '100%', border: '1px solid #F3E8FF' }}>
|
||||
|
||||
Reference in New Issue
Block a user