卡片的自适应修改
This commit is contained in:
@@ -346,16 +346,16 @@ export default function AlarmCenterPage() {
|
||||
</Row>
|
||||
|
||||
{/* 统计卡片 */}
|
||||
<Row gutter={16} style={{ marginBottom: 16, flexWrap: 'wrap' }}>
|
||||
<Col xs={24} sm={12} md={8} lg={4} xl={4}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 20px' }} style={{ borderRadius: 8, whiteSpace: 'nowrap' }}>
|
||||
<Row align="middle" gutter={16}>
|
||||
<Row gutter={[16, 16]} style={{ marginBottom: 16 }}>
|
||||
<Col xs={24} sm={12} md={8} lg={6} xl={4.8} style={{ flex: '1 0 200px' }}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 20px' }} style={{ borderRadius: 8, height: '100%' }}>
|
||||
<Row align="middle" gutter={16} style={{ height: '100%' }}>
|
||||
<Col>
|
||||
<div style={{ width: 48, height: 48, background: '#FFF1F0', borderRadius: '50%', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
|
||||
<BellOutlined style={{ fontSize: 24, color: '#FF4D4F' }} />
|
||||
</div>
|
||||
</Col>
|
||||
<Col style={{ overflow: 'hidden' }}>
|
||||
<Col style={{ flex: 1, overflow: 'hidden' }}>
|
||||
<div style={{ fontSize: 14, color: '#4E5969' }}>告警总数</div>
|
||||
<div style={{ fontSize: 28, fontWeight: 700, color: '#FF4D4F', lineHeight: '36px' }}>
|
||||
{statData.total || 0}
|
||||
@@ -365,15 +365,15 @@ export default function AlarmCenterPage() {
|
||||
</Card>
|
||||
</Col>
|
||||
|
||||
<Col xs={24} sm={12} md={8} lg={4} xl={4}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 20px' }} style={{ borderRadius: 8, whiteSpace: 'nowrap' }}>
|
||||
<Row align="middle" gutter={16}>
|
||||
<Col xs={24} sm={12} md={8} lg={6} xl={4.8} style={{ flex: '1 0 200px' }}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 20px' }} style={{ borderRadius: 8, height: '100%' }}>
|
||||
<Row align="middle" gutter={16} style={{ height: '100%' }}>
|
||||
<Col>
|
||||
<div style={{ width: 48, height: 48, background: '#FFF1F0', borderRadius: '50%', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
|
||||
<ExclamationCircleOutlined style={{ fontSize: 24, color: '#FF4D4F' }} />
|
||||
</div>
|
||||
</Col>
|
||||
<Col style={{ overflow: 'hidden' }}>
|
||||
<Col style={{ flex: 1, overflow: 'hidden' }}>
|
||||
<div style={{ fontSize: 14, color: '#4E5969' }}>严重告警</div>
|
||||
<div style={{ fontSize: 28, fontWeight: 700, color: '#FF4D4F', lineHeight: '36px' }}>
|
||||
{statData.levelStats?.[1] || 0}
|
||||
@@ -383,15 +383,15 @@ export default function AlarmCenterPage() {
|
||||
</Card>
|
||||
</Col>
|
||||
|
||||
<Col xs={24} sm={12} md={8} lg={4} xl={4}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 20px' }} style={{ borderRadius: 8, whiteSpace: 'nowrap' }}>
|
||||
<Row align="middle" gutter={16}>
|
||||
<Col xs={24} sm={12} md={8} lg={6} xl={4.8} style={{ flex: '1 0 200px' }}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 20px' }} style={{ borderRadius: 8, height: '100%' }}>
|
||||
<Row align="middle" gutter={16} style={{ height: '100%' }}>
|
||||
<Col>
|
||||
<div style={{ width: 48, height: 48, background: '#FFF7E8', borderRadius: '50%', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
|
||||
<ClockCircleOutlined style={{ fontSize: 24, color: '#FA8C16' }} />
|
||||
</div>
|
||||
</Col>
|
||||
<Col style={{ overflow: 'hidden' }}>
|
||||
<Col style={{ flex: 1, overflow: 'hidden' }}>
|
||||
<div style={{ fontSize: 14, color: '#4E5969' }}>待处理</div>
|
||||
<div style={{ fontSize: 28, fontWeight: 700, color: '#FA8C16', lineHeight: '36px' }}>
|
||||
{statData.pending || 0}
|
||||
@@ -401,15 +401,15 @@ export default function AlarmCenterPage() {
|
||||
</Card>
|
||||
</Col>
|
||||
|
||||
<Col xs={24} sm={12} md={8} lg={4} xl={4}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 20px' }} style={{ borderRadius: 8, whiteSpace: 'nowrap' }}>
|
||||
<Row align="middle" gutter={16}>
|
||||
<Col xs={24} sm={12} md={8} lg={6} xl={4.8} style={{ flex: '1 0 200px' }}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 20px' }} style={{ borderRadius: 8, height: '100%' }}>
|
||||
<Row align="middle" gutter={16} style={{ height: '100%' }}>
|
||||
<Col>
|
||||
<div style={{ width: 48, height: 48, background: '#E8F3FF', borderRadius: '50%', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
|
||||
<ReloadOutlined style={{ fontSize: 24, color: '#1890FF' }} />
|
||||
</div>
|
||||
</Col>
|
||||
<Col style={{ overflow: 'hidden' }}>
|
||||
<Col style={{ flex: 1, overflow: 'hidden' }}>
|
||||
<div style={{ fontSize: 14, color: '#4E5969' }}>处理中</div>
|
||||
<div style={{ fontSize: 28, fontWeight: 700, color: '#1890FF', lineHeight: '36px' }}>
|
||||
{statData.processing || 0}
|
||||
@@ -419,15 +419,15 @@ export default function AlarmCenterPage() {
|
||||
</Card>
|
||||
</Col>
|
||||
|
||||
<Col xs={24} sm={12} md={8} lg={4} xl={4}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 20px' }} style={{ borderRadius: 8, whiteSpace: 'nowrap' }}>
|
||||
<Row align="middle" gutter={16}>
|
||||
<Col xs={24} sm={12} md={8} lg={6} xl={4.8} style={{ flex: '1 0 200px' }}>
|
||||
<Card bordered={false} bodyStyle={{ padding: '16px 20px' }} style={{ borderRadius: 8, height: '100%' }}>
|
||||
<Row align="middle" gutter={16} style={{ height: '100%' }}>
|
||||
<Col>
|
||||
<div style={{ width: 48, height: 48, background: '#E8FFEA', borderRadius: '50%', display: 'flex', justifyContent: 'center', alignItems: 'center' }}>
|
||||
<CheckCircleOutlined style={{ fontSize: 24, color: '#00B42A' }} />
|
||||
</div>
|
||||
</Col>
|
||||
<Col style={{ overflow: 'hidden' }}>
|
||||
<Col style={{ flex: 1, overflow: 'hidden' }}>
|
||||
<div style={{ fontSize: 14, color: '#4E5969' }}>已关闭</div>
|
||||
<div style={{ fontSize: 28, fontWeight: 700, color: '#00B42A', lineHeight: '36px' }}>
|
||||
{statData.closed || 0}
|
||||
|
||||
Reference in New Issue
Block a user