Files
web-Iot/src/pages/ReportCenter.tsx
2026-05-15 15:39:28 +08:00

581 lines
24 KiB
TypeScript

import React, { useState } from 'react';
import {
Card, Row, Col, Tabs, Button, Space, Select, Table, Tag, Typography,
DatePicker, Divider, Checkbox, Avatar, Badge, Tooltip, Progress,
Statistic
} from 'antd';
import {
BarChartOutlined, BellOutlined, CalendarOutlined, FileTextOutlined,
DownloadOutlined, ArrowUpOutlined, CheckCircleOutlined,
ClockCircleOutlined, WarningOutlined, FileExcelOutlined,
FilePdfOutlined, MailOutlined, SendOutlined, SettingOutlined,
RobotOutlined, CloudOutlined, ThunderboltOutlined,
PieChartOutlined, LineChartOutlined, InfoCircleOutlined,
ReloadOutlined, MoreOutlined, FileDoneOutlined, EyeOutlined,
EditOutlined, RiseOutlined, FallOutlined,
CheckCircleFilled
} from '@ant-design/icons';
import { Line, Column, Pie, Area, DualAxes, Bar } from '@ant-design/charts';
import dayjs from 'dayjs';
import { ChevronRight } from 'lucide-react';
import { UniversalBarChart, UniversalLineChart, UniversalPieChart } from '../components/recharts';
const { TabPane } = Tabs;
const { RangePicker } = DatePicker;
const { Option } = Select;
const { Text, Title } = Typography;
// 模拟数据(完全匹配参考图)
const overviewCards = [
{ title: '本月发电量', value: '138.6', unit: 'MWh', trend: '环比 ↑ +6.2%', color: '#00B42A', bg: '#E8FFEA', icon: <RiseOutlined /> },
{ title: 'PR均值', value: '82.8', unit: '%', trend: '环比 ↑ +1.1%', color: '#165DFF', bg: '#E8F3FF', icon: <LineChartOutlined /> },
{ title: '运维工单完成率', value: '93.4', unit: '%', trend: '本月累计 126 单', color: '#165DFF', bg: '#E8F3FF', icon: <FileDoneOutlined /> },
{ title: '告警闭环率', value: '94.2', unit: '%', trend: '严重告警 8 条', color: '#F53F3F', bg: '#FFF1F0', icon: <BellOutlined /> },
{ title: '清洗收益提升', value: '+7.6', unit: '%', trend: '预估增发 12,850 kWh', color: '#00B42A', bg: '#E8FFEA', icon: <ThunderboltOutlined /> },
{ title: '自动生成报告', value: '24', unit: '份', trend: '本月累计', color: '#722ED1', bg: '#F9F0FF', icon: <FileTextOutlined /> },
];
const monthlyPowerData = [
{ date: '05-01', generation: 6, predicted: 8, pr: 105 },
{ date: '05-03', generation: 5.5, predicted: 7.8, pr: 102 },
{ date: '05-05', generation: 6.2, predicted: 8.2, pr: 108 },
{ date: '05-07', generation: 7, predicted: 8.5, pr: 110 },
{ date: '05-09', generation: 6.8, predicted: 8.3, pr: 105 },
{ date: '05-11', generation: 4, predicted: 7.5, pr: 98 },
{ date: '05-13', generation: 3, predicted: 7, pr: 95 },
{ date: '05-15', generation: 8, predicted: 9.5, pr: 112 },
{ date: '05-17', generation: 8.5, predicted: 10, pr: 115 },
{ date: '05-19', generation: 7.8, predicted: 9.2, pr: 108 },
{ date: '05-21', generation: 9, predicted: 10.5, pr: 118 },
{ date: '05-23', generation: 8.2, predicted: 9.8, pr: 110 },
{ date: '05-25', generation: 7, predicted: 9, pr: 105 },
{ date: '05-27', generation: 6.5, predicted: 8.5, pr: 102 },
{ date: '05-29', generation: 5, predicted: 7.5, pr: 98 },
{ date: '05-31', generation: 4.5, predicted: 7, pr: 95 },
];
const powerMeteorologyData = [
{ date: '05-05-11', generation: 70, irradiance: 60, temp: 20 },
{ date: '05-12-18', generation: 60, irradiance: 50, temp: 22 },
{ date: '05-19-25', generation: 65, irradiance: 65, temp: 25 },
{ date: '05-26-31', generation: 55, irradiance: 55, temp: 23 },
];
const orderAlarmData = [
{ date: '05-05-11', newOrder: 80, completed: 60, alarmCount: 10, closedRate: 80 },
{ date: '05-12-18', newOrder: 100, completed: 80, alarmCount: 20, closedRate: 85 },
{ date: '05-19-25', newOrder: 70, completed: 50, alarmCount: 15, closedRate: 90 },
{ date: '05-26-31', newOrder: 90, completed: 70, alarmCount: 18, closedRate: 92 },
];
const aiAnalysisData = [
{ type: '热斑识别', value: 36, color: '#F53F3F', icon: <RiseOutlined /> },
{ type: '异常组串', value: 8, color: '#FF7D00', icon: <WarningOutlined /> },
{ type: '推荐清洗区块', value: 8, color: '#00B42A', icon: <ThunderboltOutlined /> },
{ type: '视频异常事件', value: 6, color: '#722ED1', icon: <EyeOutlined /> },
];
const aiPieData = aiAnalysisData.map(item => ({
name: item.type,
value: item.value,
color: item.color,
}));
const reportFileList = [
{ name: '2025年05月电站月报', status: '已生成' },
{ name: '周运维总结', status: '已生成' },
{ name: 'AI诊断日报', status: '生成中' },
{ name: '告警闭环周报', status: '已生成' },
];
const reportTemplates = [
{ name: '月度经营报告', desc: '综合经营分析与收益评估模板', color: '#165DFF', bg: '#E8F3FF', icon: <BarChartOutlined /> },
{ name: '设备健康分析报告', desc: '设备健康度与故障分析模板', color: '#165DFF', bg: '#E8F3FF', icon: <FileDoneOutlined /> },
{ name: '清洗优化效果报告', desc: '清洗前后对比与收益分析模板', color: '#165DFF', bg: '#E8F3FF', icon: <ThunderboltOutlined /> },
{ name: '巡检与机器人作业报告', desc: '巡检与机器人作业统计模板', color: '#722ED1', bg: '#F9F0FF', icon: <RobotOutlined /> },
];
const generationRecord = [
{ name: '电站月报', time: '2025-05-31 08:15', operator: '张运维', type: '发电报表', status: '已生成' },
{ name: '告警周报', time: '2025-05-26 09:10', operator: '系统自动', type: '告警报表', status: '已生成' },
{ name: 'AI诊断日报', time: '2025-05-31 07:30', operator: '系统自动', type: 'AI分析报告', status: '生成中' },
{ name: '运维汇总报表', time: '2025-05-31 09:00', operator: '李工程师', type: '运维报表', status: '已生成' },
{ name: '清洗效果报告', time: '2025-05-28 10:20', operator: '王运维', type: '运维报表', status: '已生成' },
];
export default function ReportCenterPage() {
const [activeTab, setActiveTab] = useState('overview');
const [reportCycle, setReportCycle] = useState('month');
const [reportType, setReportType] = useState('all');
const [dateRange, setDateRange] = useState([dayjs('2025-05-01'), dayjs('2025-05-31')]);
const cardStyle = {
borderRadius: 12,
border: '1px solid #f0f0f0',
boxShadow: '0 4px 12px rgba(0,0,0,0.05)',
overflow: 'hidden'
};
return (
<div style={{ padding: '4px 0px', background: '#f5f7fa', minHeight: '100vh', boxSizing: 'border-box' }}>
<style>
{`
.compact-table .ant-table-thead > tr > th {
background: #f8fafc;
padding: 2px 4px !important;
font-size: 12px;
color: #4E5969;
}
.compact-table .ant-table-tbody > tr > td {
padding: 2px 4px !important;
font-size: 12px;
}
.report-tabs .ant-tabs-nav {
margin-bottom: 8px !important;
}
.report-tabs .ant-tabs-tab {
padding: 2px 4px !important;
font-size: 14px;
font-weight: 500;
}
.filter-label {
font-size: 12px;
color: #86909C;
margin-right: 8px;
white-space: nowrap;
}
.custom-scrollbar::-webkit-scrollbar {
width: 4px;
height: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
background: #E5E6EB;
border-radius: 2px;
}
`}
</style>
<div style={{ display: 'flex', alignItems: 'center', marginBottom: 16 }}>
<Typography.Title level={4} style={{ margin: '0 32px 0 0', }}>报表中心</Typography.Title>
{/* 页面头部标签 */}
<Tabs activeKey={activeTab} onChange={setActiveTab} className="report-tabs">
<TabPane tab="报表总览" key="overview" />
<TabPane tab="发电报表" key="power" />
<TabPane tab="运维报表" key="operation" />
<TabPane tab="告警报表" key="alarm" />
<TabPane tab="AI分析报告" key="ai" />
</Tabs>
</div>
<Row
gutter={[8, 8]}
style={{
marginBottom: 8,
flexWrap: 'wrap',
}}
>
{overviewCards.map((card, idx) => (
<Col key={idx} style={{ minWidth: '168px', flex: '1 0 auto', maxWidth: "250px" }}>
<Card
bordered={false}
bodyStyle={{ padding: '16px' }}
style={{
borderRadius: 8,
height: 120,
display: 'flex',
flexDirection: 'column',
justifyContent: 'center'
}}
>
<Statistic
title={
<span style={{ fontSize: 14, color: '#666', fontWeight: 500 }}>
{card.title}
</span>
}
value={card.value}
precision={card.title === 'PR均值' ? 1 : 1}
suffix={
card.unit && (
<span style={{ fontSize: 16, marginLeft: 4 }}>{card.unit}</span>
)
}
valueStyle={{
color: card.color,
fontSize: 28,
fontWeight: 700,
marginBottom: 4
}}
/>
{card.rate && (
<div style={{ fontSize: 12, color: '#999', marginTop: 2 }}>
环比
<span
style={{
marginLeft: 4,
color: card.rateUp ? '#52c41a' : '#ff4d4f',
fontWeight: 600
}}
>
{card.rate}
</span>
</div>
)}
{card.desc && (
<div style={{ fontSize: 12, color: '#999', marginTop: 2 }}>
{card.desc}
</div>
)}
</Card>
</Col>
))}
</Row>
{/* 筛选栏 */}
<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">
<Option value="day">日报</Option>
<Option value="week">周报</Option>
<Option value="month">月报</Option>
</Select>
</div>
<div style={{ display: 'flex', alignItems: 'center' }}>
<span className="filter-label">报表类型:</span>
<Select value={reportType} onChange={setReportType} style={{ width: 120 }} size="small">
<Option value="all">全部</Option>
<Option value="power">发电报表</Option>
<Option value="operation">运维报表</Option>
<Option value="alarm">告警报表</Option>
<Option value="ai">AI分析报告</Option>
</Select>
</div>
<div style={{ display: 'flex', alignItems: 'center' }}>
<span className="filter-label">时间范围:</span>
<RangePicker
value={dateRange}
onChange={setDateRange}
style={{ width: 260 }}
size="small"
/>
</div>
<div style={{ marginLeft: 'auto' }}>
<Space size={12}>
<Button type="primary" icon={<FileTextOutlined />} size="small" style={{ borderRadius: 6, height: 32, padding: '0 16px' }}>生成报表</Button>
<Button icon={<FilePdfOutlined />} size="small" style={{ borderRadius: 6, height: 32, color: '#F53F3F', borderColor: '#F53F3F' }}>导出PDF</Button>
<Button icon={<FileExcelOutlined />} size="small" style={{ borderRadius: 6, height: 32, color: '#00B42A', borderColor: '#00B42A' }}>导出Excel</Button>
</Space>
</div>
</div>
<Row gutter={[8, 8]}>
{/* 左侧主内容区 */}
<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}>
<Col span={17}>
<div style={{ fontSize: 11, color: '#86909C', marginBottom: 16, display: 'flex', justifyContent: 'flex-start', gap: 20 }}>
<Space size={4}><div style={{ width: 10, height: 3, background: '#00B42A' }}></div>发电量 (MWh)</Space>
<Space size={4}><div style={{ width: 10, height: 1, borderTop: '1.5px dashed #165DFF' }}></div>预测发电 (MWh)</Space>
<Space size={4}><div style={{ width: 10, height: 1, borderTop: '1.5px solid #FF7D00' }}></div>PR (%)</Space>
</div>
<UniversalLineChart
data={monthlyPowerData}
xKey="date"
height={260}
series={[
{
key: 'generation',
name: '发电量(MWh)',
color: '#52c41a',
},
{
key: 'predicted',
name: '预测发电(MWh)',
color: '#1890ff',
dashed: true,
},
{
key: 'pr',
name: 'PR(%)',
color: '#fa8c16',
strokeWidth: 2,
},
]}
/>
</Col>
<Col span={7}>
<div style={{ background: '#f8fafc', padding: '16px', borderRadius: 12, height: '100%' }}>
<div style={{ display: 'flex', flexDirection: 'column', gap: 12 }}>
{[
{ label: '本月累计发电量', value: '138.6', unit: 'MWh' },
{ label: '理论发电量', value: '166.8', unit: 'MWh' },
{ label: 'PR均值', value: '82.8', unit: '%' },
{ label: '发电偏差', value: '-3.4', unit: '%', color: '#F53F3F' },
{ label: '平均辐照度', value: '5.3', unit: 'kWh/㎡/天' },
].map((item, idx) => (
<div key={idx} style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<span style={{ fontSize: 12, color: '#4E5969' }}>{item.label}</span>
<span style={{ fontSize: 14, fontWeight: 700, color: item.color || '#1D2129' }}>{item.value} <span style={{ fontSize: 10, fontWeight: 400, color: '#86909C' }}>{item.unit}</span></span>
</div>
))}
</div>
</div>
</Col>
</Row>
</Card>
{/* 第二排:三个图表 */}
<Row gutter={[8, 8]} style={{ marginTop: 8 }}>
<Col span={8}>
<Card
bordered={false}
style={{ ...cardStyle, height: "100%" }}
bodyStyle={{ padding: '16px' }}
title={<span style={{ fontSize: 14, fontWeight: 700 }}>发电与气象统计</span>}
>
<div style={{ fontSize: 10, color: '#86909C', marginBottom: 12 }}>
<Space size={8} wrap>
<Badge color="#165DFF" text="发电量 (MWh)" style={{ fontSize: 10 }} />
<Badge color="#00B42A" text="辐照度 (kWh/㎡)" style={{ fontSize: 10 }} />
<Badge color="#FF7D00" text="温度 (℃)" style={{ fontSize: 10 }} />
</Space>
</div>
<UniversalBarChart
data={powerMeteorologyData}
xKey="date"
height={200}
series={[
{ key: 'generation', name: '发电量', color: '#1890ff' },
{ key: 'irradiance', name: '辐照度', color: '#52c41a' },
{ key: 'temp', name: '温度', color: '#fa8c16' },
]}
/>
</Card>
</Col>
<Col span={8}>
<Card
bordered={false}
style={{ ...cardStyle, height: "100%" }}
bodyStyle={{ padding: '16px' }}
title={<span style={{ fontSize: 14, fontWeight: 700 }}>工单与告警闭环分析</span>}
>
<div style={{ fontSize: 10, color: '#86909C', marginBottom: 12 }}>
<Space size={8} wrap>
<Badge color="#165DFF" text="新增工单" style={{ fontSize: 10 }} />
<Badge color="#00B42A" text="完成工单" style={{ fontSize: 10 }} />
<Badge color="#722ED1" text="闭环率 (%)" style={{ fontSize: 10 }} />
</Space>
</div>
<UniversalBarChart
data={orderAlarmData}
xKey="date"
height={200}
series={[
{ key: 'newOrder', name: '新增工单', color: '#1890ff' },
{ key: 'completed', name: '完成工单', color: '#52c41a' },
{ key: 'alarmCount', name: '告警数', color: '#fa8c16' },
{ key: 'closedRate', name: '闭环率', color: '#722ed1' },
]}
/>
</Card>
</Col>
<Col span={8}>
<Card
bordered={false}
style={{ ...cardStyle, height: "100%" }}
bodyStyle={{ padding: '16px' }}
title={<span style={{ fontSize: 14, fontWeight: 700 }}>AI 分析成果统计</span>}
>
<div style={{ width: '100%', boxSizing: 'border-box' }}>
<UniversalPieChart
data={aiPieData}
width={220}
height={220}
innerRadius={40}
outerRadius={65}
style={{ padding: 0 }}
/>
<div style={{
display: 'flex',
flexDirection: 'column',
gap: 10,
paddingLeft: 8,
width: '100%',
boxSizing: 'border-box'
}}>
{aiAnalysisData.map((item, idx) => (
<div key={idx} style={{
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
width: '100%',
flexWrap: 'wrap',
wordBreak: 'break-all',
whiteSpace: 'normal'
}}>
<Space size={6} style={{
fontSize: 11,
color: '#4E5969',
flex: 1,
minWidth: '60%',
display: 'flex',
alignItems: 'center',
flexWrap: 'wrap'
}}>
<div style={{ width: 6, height: 6, borderRadius: '50%', background: item.color, flexShrink: 0 }}></div>
<span style={{ wordBreak: 'break-all', whiteSpace: 'normal' }}>{item.type}</span>
</Space>
<span style={{
fontSize: 12,
fontWeight: 700,
whiteSpace: 'nowrap',
flexShrink: 0
}}>
{item.value} <Text type="secondary" style={{ fontSize: 10, fontWeight: 400 }}>个</Text>
</span>
</div>
))}
</div>
</div>
</Card>
</Col>
</Row>
{/* 订阅与分发 */}
<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>
<div style={{ display: 'flex', alignItems: 'center', gap: 8, flexWrap: 'wrap' }}>
{[
{ name: '张运维', role: '运维主管', img: 'https://img.icons8.com/fluency/48/user-male-circle.png' },
{ name: '李工程师', role: '电站工程师', img: 'https://img.icons8.com/fluency/48/user-male-circle.png' },
{ name: '王运维', role: '设备运维', img: 'https://img.icons8.com/fluency/48/user-male-circle.png' },
{ name: '陈经理', role: '运维经理', img: 'https://img.icons8.com/fluency/48/user-male-circle.png' },
].map((p, idx) => (
<Tooltip title={`${p.name} - ${p.role}`} key={idx}>
<Avatar src={p.img} size={32} style={{ border: '2px solid #fff' }} />
</Tooltip>
))}
<Avatar size={32} style={{ background: '#F2F3F5', color: '#165DFF', fontSize: 12, fontWeight: 700, border: '2px solid #fff' }}>+2</Avatar>
</div>
</Col>
<Col xs={24} sm={12} md={8}>
<div style={{ fontSize: 12, color: '#86909C', marginBottom: 12 }}>分发渠道 (可多选)</div>
<Space size={12} wrap>
<Button size="small" icon={<MailOutlined />} style={{ borderRadius: 6, background: '#E8F3FF', border: 'none', color: '#165DFF' }}>邮件 <CheckCircleFilled style={{ fontSize: 10, marginLeft: 4 }} /></Button>
<Button size="small" style={{ borderRadius: 6, background: '#E8F3FF', border: 'none', color: '#165DFF' }}>Telegram <CheckCircleFilled style={{ fontSize: 10, marginLeft: 4 }} /></Button>
<Button size="small" icon={<BellOutlined />} style={{ borderRadius: 6, background: '#E8F3FF', border: 'none', color: '#165DFF' }}>系统通知 <CheckCircleFilled style={{ fontSize: 10, marginLeft: 4 }} /></Button>
</Space>
</Col>
<Col xs={24} sm={24} md={8}>
<div style={{ fontSize: 12, color: '#86909C', marginBottom: 12 }}>发送计划</div>
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', background: '#f8fafc', padding: '8px 12px', borderRadius: 8, gap: 8 }}>
<Space size={8} wrap>
<CalendarOutlined style={{ color: '#165DFF' }} />
<span style={{ fontSize: 13, fontWeight: 700 }}>每周一 09:00 自动发送</span>
</Space>
<Button type="link" size="small" icon={<EditOutlined />} style={{ fontSize: 12, whiteSpace: 'nowrap' }}>编辑</Button>
</div>
</Col>
</Row>
</Card>
</Col>
{/* 右侧边栏 */}
<Col xs={24} xl={8}>
{/* 报表目录 / 快捷下载 */}
<Card bordered={false} style={cardStyle} 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={[
{
title: '报表名称', dataIndex: 'name',
render: (text) => <Space size={8}><FilePdfOutlined style={{ color: '#F53F3F' }} />{text}</Space>
},
{
title: '状态', dataIndex: 'status', width: 80,
render: (v) => <Tag color={v === '已生成' ? 'success' : 'warning'} style={{ borderRadius: 4, fontSize: 10, margin: 0 }}>{v}</Tag>
},
{
title: '操作', width: 120,
render: () => (
<Space split={<Divider type="vertical" />}>
<Button type="link" size="small" style={{ fontSize: 12, padding: 0 }}>查看</Button>
<Button type="link" size="small" style={{ fontSize: 12, padding: 0 }}>下载</Button>
</Space>
)
}
]}
dataSource={reportFileList}
pagination={false}
size="small"
className="compact-table"
/>
</Card>
{/* 模板中心 */}
<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}>
<div style={{ background: '#f8fafc', padding: '12px', borderRadius: 10, height: '100%', border: '1px solid #f0f0f0' }}>
<div style={{ display: 'flex', alignItems: 'center', gap: 10, marginBottom: 8 }}>
<div style={{ width: 32, height: 32, borderRadius: 8, background: tpl.bg, color: tpl.color, display: 'flex', alignItems: 'center', justifyContent: 'center', fontSize: 16 }}>
{tpl.icon}
</div>
<div style={{ fontSize: 13, fontWeight: 700, color: '#1D2129' }}>{tpl.name}</div>
</div>
<div style={{ fontSize: 11, color: '#86909C', lineHeight: 1.4 }}>{tpl.desc}</div>
</div>
</Col>
))}
</Row>
</Card>
{/* 报表生成记录 */}
<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={[
{ title: '报表名称', dataIndex: 'name', width: 100, ellipsis: true },
{ title: '生成时间', dataIndex: 'time', width: 130 },
{ title: '生成人', dataIndex: 'operator', width: 80 },
{ title: '类型', dataIndex: 'type', width: 80 },
{
title: '状态', dataIndex: 'status', width: 70,
render: (v) => <Tag color={v === '已生成' ? 'success' : 'warning'} style={{ borderRadius: 4, fontSize: 10, margin: 0 }}>{v}</Tag>
},
{
title: '操作', width: 90,
render: () => (
<Space size={8}>
<Button type="text" icon={<EyeOutlined />} size="small" />
<Button type="text" icon={<DownloadOutlined />} size="small" />
</Space>
)
}
]}
dataSource={generationRecord}
pagination={false}
size="small"
className="compact-table"
scroll={{ y: 240 }}
/>
</Card>
</Col>
</Row>
</div>
);
}