紧凑样式
This commit is contained in:
@@ -103,10 +103,31 @@ export default function AppLayout() {
|
||||
locale={zhCN}
|
||||
theme={{
|
||||
algorithm: theme.defaultAlgorithm,
|
||||
token: { colorPrimary: '#1890ff', borderRadius: 2 },
|
||||
token: {
|
||||
colorPrimary: '#1890ff',
|
||||
borderRadius: 2,
|
||||
// 全局紧凑设置
|
||||
padding: 12,
|
||||
paddingLG: 16,
|
||||
margin: 12,
|
||||
marginLG: 16,
|
||||
},
|
||||
components: {
|
||||
Layout: { headerBg: '#fff', siderBg: '#fff' },
|
||||
Menu: { itemBg: '#fff', itemSelectedBg: '#e6f4ff' }
|
||||
Menu: { itemBg: '#fff', itemSelectedBg: '#e6f4ff' },
|
||||
Card: {
|
||||
paddingLG: 12, // 减小 Card 默认内边距
|
||||
},
|
||||
Table: {
|
||||
padding: 8, // 减小 Table 单元格边距
|
||||
paddingXS: 4,
|
||||
},
|
||||
Form: {
|
||||
itemMarginBottom: 12, // 减小表单项间距
|
||||
},
|
||||
Space: {
|
||||
gap: 8, // 减小 Space 间距
|
||||
}
|
||||
}
|
||||
}}
|
||||
>
|
||||
@@ -114,14 +135,14 @@ export default function AppLayout() {
|
||||
<Header style={{
|
||||
background: '#0837a8',
|
||||
color: '#fff',
|
||||
minHeight: "50px",
|
||||
minHeight: "40px", // 减小 Header 高度
|
||||
height: "auto",
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
padding: '4px 16px',
|
||||
padding: '2px 12px', // 减小 Header 边距
|
||||
flexWrap: 'wrap',
|
||||
gap: '8px'
|
||||
gap: '4px'
|
||||
}}>
|
||||
<Space size="large" style={{ display: 'flex', alignItems: 'center', flexWrap: 'wrap' }}>
|
||||
|
||||
@@ -200,7 +221,7 @@ export default function AppLayout() {
|
||||
/>
|
||||
</Sider>
|
||||
|
||||
<Content style={{ background: '#f4f7f9', overflowY: 'auto', padding: '0px 16px' }}>
|
||||
<Content style={{ background: '#f4f7f9', overflowY: 'auto', padding: '4px 8px' }}>
|
||||
<Outlet />
|
||||
</Content>
|
||||
</Layout>
|
||||
|
||||
@@ -167,23 +167,13 @@ const BasicSettings = () => {
|
||||
];
|
||||
|
||||
return (
|
||||
<div style={{ padding: 'clamp(10px, 1.2vw, 20px)', background: '#f5f7fa', minHeight: '100vh' }}>
|
||||
<div style={{ marginBottom: 12, display: 'flex', alignItems: 'center', gap: 12 }}>
|
||||
<Title level={4} style={{ margin: 0, fontSize: fontLarge }}>系统设置</Title>
|
||||
<Space split={<Divider type="vertical" />}>
|
||||
<Button type="text" size="small" icon={<SettingOutlined />} style={{ color: '#1677ff', fontWeight: 600 }}>基础设置</Button>
|
||||
<Button type="text" size="small" icon={<UserOutlined />}>用户与角色</Button>
|
||||
<Button type="text" size="small" icon={<NotificationOutlined />}>通知策略</Button>
|
||||
<Button type="text" size="small" icon={<ApiOutlined />}>设备接入</Button>
|
||||
<Button type="text" size="small" icon={<SafetyCertificateOutlined />}>数据与安全</Button>
|
||||
<Button type="text" size="small" icon={<ToolOutlined />}>系统维护</Button>
|
||||
</Space>
|
||||
</div>
|
||||
<div className="normal-spacing" style={{ padding: '8px', background: '#f5f7fa', minHeight: '100vh' }}>
|
||||
|
||||
|
||||
{/* 顶部统计卡片 */}
|
||||
<Row gutter={[10, 10]} style={{ marginBottom: 12 }}>
|
||||
<Row gutter={[8, 8]} style={{ marginBottom: 8 }}>
|
||||
{topCards.map((item, idx) => (
|
||||
<Col key={idx} xs={12} sm={8} md={4} style={{ flex: 1 }}>
|
||||
<Col key={idx} style={{ minWidth: '168px', flex: '1 0 auto', maxWidth: "250px" }}>
|
||||
<AntdCard bordered={false} bodyStyle={{ padding: '12px 16px' }} style={{ borderRadius: 10, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 10 }}>
|
||||
<div style={{ width: 40, height: 40, borderRadius: 10, background: item.bg, display: 'flex', alignItems: 'center', justifyContent: 'center' }}>
|
||||
@@ -203,14 +193,14 @@ const BasicSettings = () => {
|
||||
))}
|
||||
</Row>
|
||||
|
||||
<Row gutter={12}>
|
||||
<Row gutter={[8, 8]}>
|
||||
{/* 左侧 */}
|
||||
<Col xs={24} xl={17}>
|
||||
{/* 基础配置 */}
|
||||
<AntdCard
|
||||
title={<Space><SettingOutlined style={{ color: '#1677ff' }} /><b>基础配置</b></Space>}
|
||||
bordered={false}
|
||||
style={{ borderRadius: 10, marginBottom: 12, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
style={{ borderRadius: 10, marginBottom: 8, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
>
|
||||
<Form form={form} layout="vertical">
|
||||
@@ -291,10 +281,10 @@ const BasicSettings = () => {
|
||||
<AntdCard
|
||||
title={<Space><BellOutlined style={{ color: '#1677ff' }} /><b>通知与告警策略</b></Space>}
|
||||
bordered={false}
|
||||
style={{ borderRadius: 10, marginBottom: 12, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
style={{ borderRadius: 10, marginBottom: 8, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
bodyStyle={{ padding: '16px' }}
|
||||
>
|
||||
<Row gutter={[12, 12]} style={{ marginBottom: 16 }}>
|
||||
<Row gutter={[12, 12]} style={{ marginBottom: 8 }}>
|
||||
{[
|
||||
{ label: '短信', icon: <Smartphone size={16} />, color: '#52c41a', status: '已启用' },
|
||||
{ label: '邮件', icon: <Mail size={16} />, color: '#1677ff', status: '已启用' },
|
||||
@@ -340,6 +330,10 @@ const BasicSettings = () => {
|
||||
<Table
|
||||
size="small"
|
||||
scroll={{ x: 'max-content' }}
|
||||
rowStyle={{ height: '32px', padding: 0 }}
|
||||
empty={false}
|
||||
|
||||
|
||||
pagination={{ size: 'small', total: 4, pageSize: 4, showTotal: (total) => `共 ${total} 条` }}
|
||||
columns={[
|
||||
{ title: '用户名', dataIndex: 'name', key: 'name', fixed: 'left', width: 80 },
|
||||
@@ -391,7 +385,7 @@ const BasicSettings = () => {
|
||||
<AntdCard
|
||||
title={<Space><Users size={16} style={{ color: '#1677ff' }} /><b>角色权限概览</b></Space>}
|
||||
bordered={false}
|
||||
style={{ borderRadius: 10, marginBottom: 12, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
style={{ borderRadius: 10, marginBottom: 8, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
bodyStyle={{ padding: '10px' }}
|
||||
>
|
||||
<Row gutter={[8, 8]}>
|
||||
@@ -422,7 +416,7 @@ const BasicSettings = () => {
|
||||
title={<Space><ApiOutlined style={{ color: '#1677ff' }} /><b>设备接入状态</b></Space>}
|
||||
extra={<Button type="link" size="small" style={{ fontSize: 11, padding: 0 }}>详情 <RightOutlined style={{ fontSize: 9 }} /></Button>}
|
||||
bordered={false}
|
||||
style={{ borderRadius: 10, marginBottom: 12, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
style={{ borderRadius: 10, marginBottom: 8, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
bodyStyle={{ padding: '12px' }}
|
||||
>
|
||||
<div style={{ display: 'flex', gap: 12 }}>
|
||||
@@ -481,7 +475,7 @@ const BasicSettings = () => {
|
||||
<AntdCard
|
||||
title={<Space><Shield size={16} style={{ color: '#1677ff' }} /><b>数据与安全</b></Space>}
|
||||
bordered={false}
|
||||
style={{ borderRadius: 10, marginBottom: 12, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
style={{ borderRadius: 10, marginBottom: 8, boxShadow: '0 2px 8px rgba(0,0,0,0.04)' }}
|
||||
bodyStyle={{ padding: '12px' }}
|
||||
>
|
||||
<div style={{ display: 'grid', gridTemplateColumns: 'repeat(auto-fit, minmax(120px, 1fr))', gap: '10px 16px' }}>
|
||||
|
||||
@@ -278,7 +278,7 @@ export default function AlarmCenterPage() {
|
||||
<div style={{ background: '#f5f7fa', minHeight: '100vh', padding: '16px 24px' }}>
|
||||
|
||||
{/* 查询栏 */}
|
||||
<Row gutter={16} style={{ marginBottom: 16 }}>
|
||||
<Row gutter={8} style={{ marginBottom: 8 }}>
|
||||
<Col span={24}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 24px' }} style={{ borderRadius: 8 }}>
|
||||
<Row gutter={[24, 16]} align="middle">
|
||||
@@ -357,7 +357,7 @@ export default function AlarmCenterPage() {
|
||||
</Row>
|
||||
|
||||
{/* 统计卡片 */}
|
||||
<Row gutter={[16, 16]} style={{ marginBottom: 16, flexWrap: 'wrap' }}>
|
||||
<Row gutter={[8, 8]} style={{ marginBottom: 8, flexWrap: 'wrap' }}>
|
||||
{[
|
||||
{
|
||||
title: '今日告警总数',
|
||||
@@ -446,7 +446,7 @@ export default function AlarmCenterPage() {
|
||||
</Row>
|
||||
|
||||
{/* 表格 */}
|
||||
<Row gutter={16} style={{ marginBottom: 16 }}>
|
||||
<Row gutter={16} style={{ marginBottom: 8 }}>
|
||||
<Col flex="auto" style={{ minWidth: 0 }}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 24px' }} style={{ borderRadius: 8 }}>
|
||||
<Spin spinning={loading}>
|
||||
|
||||
@@ -170,31 +170,31 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll,
|
||||
return (
|
||||
<Content style={{ maxWidth: 1800, margin: '0 auto', }}>
|
||||
{/*<AgoraTextTest />*/}
|
||||
<Row gutter={[16, 16]} style={{ marginBottom: 20, flexWrap: 'wrap' }}>
|
||||
<Row gutter={[8, 8]} style={{ marginBottom: 12, flexWrap: 'wrap' }}>
|
||||
{dynamicTopCards.map((card, idx) => (
|
||||
<Col key={idx} style={{ minWidth: '200px', flex: '1 0 auto' }}>
|
||||
<Col key={idx} style={{ minWidth: '160px', flex: '1 0 auto' }}>
|
||||
<Card
|
||||
bordered={false}
|
||||
style={{
|
||||
borderRadius: 12,
|
||||
borderRadius: 8,
|
||||
boxShadow: '0 2px 8px rgba(0,0,0,0.05)',
|
||||
height: 110,
|
||||
height: 90,
|
||||
}}
|
||||
bodyStyle={{ padding: '16px', height: '100%' }}
|
||||
bodyStyle={{ padding: '12px', height: '100%' }}
|
||||
>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 12, height: '100%' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 10, height: '100%' }}>
|
||||
{/* 左侧图标 */}
|
||||
<div
|
||||
style={{
|
||||
width: 48,
|
||||
height: 48,
|
||||
borderRadius: 10,
|
||||
width: 40,
|
||||
height: 40,
|
||||
borderRadius: 8,
|
||||
background: `${card.color}15`,
|
||||
color: card.color,
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
fontSize: 'clamp(16px, 1.5vw, 20px)',
|
||||
fontSize: 'clamp(14px, 1.2vw, 18px)',
|
||||
flexShrink: 0,
|
||||
}}
|
||||
>
|
||||
@@ -219,13 +219,13 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll,
|
||||
))}
|
||||
</Row>
|
||||
|
||||
<Row gutter={16}>
|
||||
<Row gutter={[8, 8]}>
|
||||
<Col xs={24} lg={14}>
|
||||
<Card title={<><EnvironmentOutlined /> 装备协同态势图</>} extra={<Button type="text" icon={<SettingOutlined />} />} bordered={false} style={{ borderRadius: 12, marginBottom: 16 }} bodyStyle={{ padding: 0 }}>
|
||||
<div style={{ width: '100%', height: 400, background: '#e6f7ff url(https://picsum.photos/seed/solarfarm/1600/800) center/cover', borderRadius: 12, position: 'relative', overflow: 'hidden' }}>
|
||||
<div style={{ position: 'absolute', top: 16, left: 16, background: 'rgba(255,255,255,0.95)', borderRadius: 8, padding: 12 }}>
|
||||
<div style={{ fontSize: 12, fontWeight: 60, marginBottom: 8 }}>图例说明</div>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 6, fontSize: 11 }}>
|
||||
<Card title={<><EnvironmentOutlined /> 装备协同态势图</>} extra={<Button type="text" icon={<SettingOutlined />} />} bordered={false} style={{ borderRadius: 8, marginBottom: 8 }} bodyStyle={{ padding: 0 }}>
|
||||
<div style={{ width: '100%', height: 350, background: '#e6f7ff url(https://picsum.photos/seed/solarfarm/1600/800) center/cover', borderRadius: 8, position: 'relative', overflow: 'hidden' }}>
|
||||
<div style={{ position: 'absolute', top: 12, left: 12, background: 'rgba(255,255,255,0.95)', borderRadius: 6, padding: 8 }}>
|
||||
<div style={{ fontSize: 11, fontWeight: 60, marginBottom: 4 }}>图例说明</div>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 4, fontSize: 10 }}>
|
||||
<div><span style={{ color: '#1890ff' }}>———</span> 巡检航线</div>
|
||||
<div><span style={{ color: '#fa8c16' }}>———</span> 机器人路径</div>
|
||||
<div><span style={{ color: '#52c41a' }}>———</span> 清洗路径</div>
|
||||
@@ -237,35 +237,35 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll,
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
<Card title={<><SettingOutlined /> 装备调度列表</>} bordered={false} style={{ borderRadius: 12, marginBottom: 16 }}>
|
||||
<Card title={<><SettingOutlined /> 装备调度列表</>} bordered={false} style={{ borderRadius: 8, marginBottom: 8 }}>
|
||||
<Table rowKey={(record) => record.id || record.serialNumber || record.device_sn} size="small" pagination={false}
|
||||
columns={[
|
||||
{ title: '装备名称', dataIndex: 'name', width: 160 },
|
||||
{ title: '类型', dataIndex: 'type', width: 100 },
|
||||
{ title: '当前状态', dataIndex: 'status', width: 80, render: s => <Tag color={s === '作业中' || s === '在线' ? 'success' : 'default'}>{s}</Tag> },
|
||||
{ title: '模式', dataIndex: 'mode', width: 80 },
|
||||
{ title: '电量', dataIndex: 'battery', width: 80, render: v => <Progress percent={v} size="small" status={v < 40 ? 'exception' : 'active'} /> },
|
||||
{ title: '位置', dataIndex: 'position', width: 100 },
|
||||
{ title: '当前任务', dataIndex: 'task', width: 120 },
|
||||
{ title: '通讯状态', dataIndex: 'comm', width: 80, render: v => <Badge status={v.includes('-') ? 'warning' : 'success'} text={v} /> },
|
||||
{ title: '操作', key: 'action', width: 100, render: () => <Space><Button size="small" type="text" icon={<EditOutlined />} /><Button size="small" type="text" icon={<SettingOutlined />} /></Space> }
|
||||
{ title: '装备名称', dataIndex: 'name', width: 140 },
|
||||
{ title: '类型', dataIndex: 'type', width: 90 },
|
||||
{ title: '当前状态', dataIndex: 'status', width: 70, render: s => <Tag color={s === '作业中' || s === '在线' ? 'success' : 'default'} style={{ margin: 0 }}>{s}</Tag> },
|
||||
{ title: '模式', dataIndex: 'mode', width: 70 },
|
||||
{ title: '电量', dataIndex: 'battery', width: 70, render: v => <Progress percent={v} size="small" status={v < 40 ? 'exception' : 'active'} /> },
|
||||
{ title: '位置', dataIndex: 'position', width: 90 },
|
||||
{ title: '当前任务', dataIndex: 'task', width: 100 },
|
||||
{ title: '通讯状态', dataIndex: 'comm', width: 70, render: v => <Badge status={v.includes('-') ? 'warning' : 'success'} text={v} /> },
|
||||
{ title: '操作', key: 'action', width: 80, render: () => <Space size={4}><Button size="small" type="text" icon={<EditOutlined />} /><Button size="small" type="text" icon={<SettingOutlined />} /></Space> }
|
||||
]}
|
||||
dataSource={dynamicScheduleList}
|
||||
scroll={{ x: 'max-content', y: 320 }}
|
||||
scroll={{ x: 'max-content', y: 280 }}
|
||||
/>
|
||||
</Card>
|
||||
|
||||
<Card title={<><SettingOutlined /> <span >控制日志 / 告警记录</span></>} bordered={false} style={{ borderRadius: 12 }} extra={<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}><Button size="small" style={{ borderRadius: 8, border: '1px solid #d9d9d9' }}>全部级别 ▼</Button></div>}>
|
||||
<Card title={<><SettingOutlined /> <span >控制日志 / 告警记录</span></>} bordered={false} style={{ borderRadius: 8 }} extra={<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}><Button size="small" style={{ borderRadius: 4, border: '1px solid #d9d9d9' }}>全部级别 ▼</Button></div>}>
|
||||
<Table rowKey="time" size="small" pagination={false} dataSource={logs} scroll={{ x: 'max-content' }}
|
||||
columns={[
|
||||
{ title: '时间', dataIndex: 'time', width: 100, render: t => <span style={{ fontSize: 14 }}>{t}</span> },
|
||||
{ title: '设备', dataIndex: 'device', width: 120, render: t => <span style={{ fontSize: 14 }}>{t}</span> },
|
||||
{ title: '类型', dataIndex: 'type', width: 80, render: t => { let c = '#52c41a'; if (t === '告警') c = '#fa8c16'; if (t === 'events') c = '#1890ff'; return <div style={{ display: 'flex', alignItems: 'center', gap: 4 }}><span style={{ width: 12, height: 12, borderRadius: 2, background: c }} /><span style={{ fontSize: 14 }}>{t}</span></div> } },
|
||||
{ title: '描述', dataIndex: 'desc', render: t => <span style={{ fontSize: 14 }}>{t}</span> },
|
||||
{ title: '', width: 80, render: (_, r) => r.level ? <Tag color="red" style={{ fontSize: 12 }}>{r.level}</Tag> : null }
|
||||
{ title: '时间', dataIndex: 'time', width: 90, render: t => <span style={{ fontSize: 13 }}>{t}</span> },
|
||||
{ title: '设备', dataIndex: 'device', width: 100, render: t => <span style={{ fontSize: 13 }}>{t}</span> },
|
||||
{ title: '类型', dataIndex: 'type', width: 70, render: t => { let c = '#52c41a'; if (t === '告警') c = '#fa8c16'; if (t === 'events') c = '#1890ff'; return <div style={{ display: 'flex', alignItems: 'center', gap: 4 }}><span style={{ width: 10, height: 10, borderRadius: 2, background: c }} /><span style={{ fontSize: 13 }}>{t}</span></div> } },
|
||||
{ title: '描述', dataIndex: 'desc', render: t => <span style={{ fontSize: 13 }}>{t}</span> },
|
||||
{ title: '', width: 70, render: (_, r) => r.level ? <Tag color="red" style={{ fontSize: 11, margin: 0 }}>{r.level}</Tag> : null }
|
||||
]}
|
||||
/>
|
||||
<div style={{ textAlign: 'center', marginTop: 12 }}><Button type="link" style={{ fontSize: 16, color: '#1890ff' }}>查看更多日志</Button></div>
|
||||
<div style={{ textAlign: 'center', marginTop: 8 }}><Button type="link" size="small" style={{ fontSize: 13, color: '#1890ff' }}>查看更多日志</Button></div>
|
||||
</Card>
|
||||
</Col>
|
||||
|
||||
@@ -273,13 +273,14 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll,
|
||||
<Card
|
||||
title={<><SettingOutlined style={{ marginRight: 6, }} /> 设备控制面板</>}
|
||||
bordered={false}
|
||||
style={{ borderRadius: 12, marginBottom: 16 }}
|
||||
bodyStyle={{ padding: 16, paddingBottom: 0 }}
|
||||
style={{ borderRadius: 8, marginBottom: 8 }}
|
||||
bodyStyle={{ padding: 12, paddingBottom: 0 }}
|
||||
> <Select
|
||||
style={{ width: 220, marginBottom: 10 }}
|
||||
style={{ width: 200, marginBottom: 8 }}
|
||||
placeholder="请选择设备"
|
||||
value={selectedDevice?.device_sn || selectedDevice?.serialNumber}
|
||||
onChange={handleDeviceChange}
|
||||
size="small"
|
||||
showSearch // 👈 开启搜索
|
||||
allowClear // 允许删除/清空
|
||||
optionFilterProp="label" // 👈 按设备名称搜索
|
||||
@@ -293,13 +294,13 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll,
|
||||
/>
|
||||
|
||||
{selectedDevice && (
|
||||
<Row gutter={16}>
|
||||
<Row gutter={8}>
|
||||
<Col span={12}>
|
||||
<div style={{ marginBottom: 24 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8, marginBottom: 16, flexWrap: "wrap" }}>
|
||||
<span style={{ fontSize: 24, color: '#1890ff' }}><RocketOutlined /></span>
|
||||
<span style={{ fontSize: 16, fontWeight: 600 }}>{selectedDevice.deviceAlias || selectedDevice.drone_callsign || selectedDevice.callsign || selectedDevice.deviceName}</span>
|
||||
<Tag color={selectedDevice.onlineStatus === 1 ? "success" : "default"} size="small">
|
||||
<div style={{ marginBottom: 12 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 6, marginBottom: 12, flexWrap: "wrap" }}>
|
||||
<span style={{ fontSize: 20, color: '#1890ff' }}><RocketOutlined /></span>
|
||||
<span style={{ fontSize: 14, fontWeight: 600 }}>{selectedDevice.deviceAlias || selectedDevice.drone_callsign || selectedDevice.callsign || selectedDevice.deviceName}</span>
|
||||
<Tag color={selectedDevice.onlineStatus === 1 ? "success" : "default"} size="small" style={{ margin: 0 }}>
|
||||
{selectedDevice.onlineStatus == 1 ? "在线" : "离线"}
|
||||
</Tag>
|
||||
<Button
|
||||
@@ -307,15 +308,15 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll,
|
||||
ghost
|
||||
size="small"
|
||||
icon={<InfoCircleOutlined />}
|
||||
style={{ borderRadius: 4, fontSize: 12, marginLeft: 'auto' }}
|
||||
style={{ borderRadius: 4, fontSize: 11, marginLeft: 'auto' }}
|
||||
onClick={() => onViewStatus && onViewStatus(selectedDevice.device_sn || selectedDevice.serialNumber)}
|
||||
>
|
||||
详情
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 6 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 4 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 4 }}>
|
||||
<span style={{ color: '#52c41a' }}><ThunderboltOutlined /></span>
|
||||
<span style={{ fontSize: 12 }}>电量 {fix2(selectedDevice.capacity_percent || 100)}%</span>
|
||||
</div>
|
||||
|
||||
@@ -106,10 +106,10 @@ export default function WayLinePage() {
|
||||
];
|
||||
|
||||
return (
|
||||
<div style={{ background: '#f5f7fa', minHeight: '100vh', padding: '0' }}>
|
||||
<div className="normal-spacing" style={{ background: '#f5f7fa', minHeight: '100vh', padding: '16px' }}>
|
||||
|
||||
|
||||
<Row gutter={[8, 8]} style={{ marginBottom: 10 }}>
|
||||
<Row gutter={[16, 16]} style={{ marginBottom: 16 }}>
|
||||
{topCards.map((item, index) => (
|
||||
<Col xs={12} sm={8} md={4} key={index}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '12px 14px' }} style={cardStyle}>
|
||||
|
||||
@@ -87,20 +87,37 @@ h4, .ant-typography h4 { font-size: clamp(1rem, 1.5vw, 1.25rem) !important; }
|
||||
font-size: clamp(0.9rem, 1.3vw, 1.1rem) !important;
|
||||
}
|
||||
.ant-card-head{
|
||||
min-height:44px !important
|
||||
min-height:36px !important; /* 进一步减小头部高度 */
|
||||
padding: 0 12px !important;
|
||||
}
|
||||
.ant-card-body{
|
||||
padding-top:12px !important;
|
||||
padding-bottom:12px !important;
|
||||
|
||||
padding: 8px 12px !important; /* 进一步减小内边距 */
|
||||
}
|
||||
.ant-form-item {
|
||||
margin-bottom: 8px !important; /* 减小表单项间距 */
|
||||
}
|
||||
.ant-row {
|
||||
margin-left: -4px !important;
|
||||
margin-right: -4px !important;
|
||||
}
|
||||
.ant-col {
|
||||
padding-left: 4px !important;
|
||||
padding-right: 4px !important;
|
||||
}
|
||||
.ant-select-selector,.ant-input,.ant-picker,.ant-input-affix-wrapper{
|
||||
border-radius:8px !important;
|
||||
border-radius:4px !important; /* 更小的圆角看起来更紧凑 */
|
||||
}
|
||||
.ant-btn{
|
||||
border-radius:8px !important;
|
||||
|
||||
height: 32px !important;
|
||||
padding: 4px 12px !important;
|
||||
border-radius: 4px !important;
|
||||
}
|
||||
.ant-table-thead > tr > th,
|
||||
.ant-table-tbody > tr > td {
|
||||
padding: 2px 4px !important; /* 减小表格边距 */
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@keyframes sunRotate {
|
||||
|
||||
@@ -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