This commit is contained in:
mmc
2026-05-14 10:03:51 +08:00
parent 2ae097eed0
commit 4ac279139b
4 changed files with 90 additions and 44 deletions

View File

@@ -271,16 +271,16 @@ export default function StationDashboard() {
{ title: '告警数量', value: '8', unit: '', sub: '未处理 5 / 已处理 3', color: '#F53F3F', bg: '#FFF1F0', icon: <BellOutlined /> },
{ title: '节省运维成本', value: '¥ 36,540', unit: '', sub: '本月累计节省', color: '#FF7D00', bg: '#FFF7E8', icon: <MoneyCollectOutlined /> },
].map((item, idx) => (
<Col key={idx} style={{ flex: "0 0 auto", minWidth: "200px" }}>
<Col key={idx} style={{ flex: "1 0 auto", minWidth: "200px" }}>
<Card bordered={false} style={{ ...cardStyle, height: "100%", minWidth: "200px" }} bodyStyle={{ padding: '16px' }}>
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
<div>
<div style={{ color: '#000', fontSize: 14, fontWeight: 600, marginBottom: 8 }}>{item.title}</div>
<div style={{ color: '#000', fontSize: 'clamp(12px, 1vw, 14px)', fontWeight: 600, marginBottom: 8 }}>{item.title}</div>
<div style={{ display: 'flex', alignItems: 'baseline' }}>
<span style={{ color: item.color, fontSize: 24, fontWeight: 800 }}>{item.value}</span>
{item.unit && <span style={{ color: '#666', fontSize: 14, marginLeft: 4 }}>{item.unit}</span>}
<span style={{ color: item.color, fontSize: 'clamp(20px, 1.8vw, 24px)', fontWeight: 800 }}>{item.value}</span>
{item.unit && <span style={{ color: '#666', fontSize: 'clamp(12px, 0.9vw, 14px)', marginLeft: 4 }}>{item.unit}</span>}
</div>
<div style={{ fontSize: 12, color: '#999', marginTop: 8 }}>{item.sub}</div>
<div style={{ fontSize: 'clamp(10px, 0.8vw, 12px)', color: '#999', marginTop: 8 }}>{item.sub}</div>
</div>
<div style={{
width: 50, height: 50, background: item.bg, borderRadius: '50%',
@@ -372,6 +372,7 @@ export default function StationDashboard() {
}
bordered={false}
style={{ ...cardStyle, height: '100%', padding: '12px' }}
bodyStyle={{ height: "86%" }}
>
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 12 }}>
@@ -381,17 +382,17 @@ export default function StationDashboard() {
<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={{ width: 8, height: 8, borderRadius: '50%', background: '#faad14', marginRight: 4 }}></span>维护中</span>
</div>
<Space size="small">
{/*<Space size="small">
<Button size="small">适应</Button>
<Button size="small" icon={<MinusOutlined />} />
<Button size="small" icon={<PlusOutlined />} />
<Button size="small" icon={<SyncOutlined />}>重置</Button>
<span style={{ fontSize: 12 }}>65%</span>
</Space>
</Space>*/}
</div>
<div style={{ height: 360, background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
<div style={{ height: "100%", background: '#111827', borderRadius: 8, width: '100%', overflow: 'hidden', position: "relative" }}>
<iframe
src="https://pvs.satabot.com/?platform=web"
style={{
@@ -415,7 +416,7 @@ export default function StationDashboard() {
xs={24}
lg={6}
style={{
flex: '0 0 25%',
flex: '1 0 25%',
height: "100%",
overflow: 'auto',
scrollbarWidth: 'thin',
@@ -437,7 +438,8 @@ export default function StationDashboard() {
style={{
borderRadius: 8,
boxShadow: '0 1px 2px rgba(0,0,0,0.05)',
padding: '4px 8px'
padding: '4px 8px',
flex: 1,
}}
bodyStyle={{ padding: 4 }}
>
@@ -482,7 +484,8 @@ export default function StationDashboard() {
style={{
borderRadius: 8,
boxShadow: '0 1px 2px rgba(0,0,0,0.05)',
padding: '4px 8px'
padding: '4px 8px',
flex: 1,
}}
bodyStyle={{ padding: 4 }}
>
@@ -515,6 +518,7 @@ export default function StationDashboard() {
borderRadius: 8,
boxShadow: '0 1px 2px rgba(0,0,0,0.05)',
padding: '8px',
flex: 1,
}}
bodyStyle={{ padding: 8 }}
>
@@ -570,7 +574,8 @@ export default function StationDashboard() {
style={{
borderRadius: 8,
boxShadow: '0 1px 2px rgba(0,0,0,0.05)',
padding: '4px 8px'
padding: '4px 8px',
flex: 1,
}}
bodyStyle={{ padding: 4 }}
>