样式
This commit is contained in:
@@ -292,7 +292,7 @@ export default function EquipmentCooperationPage() {
|
||||
</div>
|
||||
|
||||
{/* 电量/信号行 */}
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 20 }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: 6 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
|
||||
<span style={{ color: '#52c41a' }}><ThunderboltOutlined /></span>
|
||||
<span style={{ fontSize: 12 }}>电量 72%</span>
|
||||
@@ -305,7 +305,7 @@ export default function EquipmentCooperationPage() {
|
||||
</div>
|
||||
|
||||
{/* 信息列表 */}
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 12, marginBottom: 24 }}>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 6, marginBottom: 24 }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between' }}>
|
||||
<span style={{ color: '#666', fontSize: 12 }}>当前模式</span>
|
||||
<span style={{ fontSize: 12, }}>自主清洗模式</span>
|
||||
@@ -342,7 +342,7 @@ export default function EquipmentCooperationPage() {
|
||||
<span style={{ fontSize: 13, color: '#999' }}>2025-05-24 10:24:18</span>
|
||||
</div>
|
||||
<div style={{
|
||||
width: '100%', height: 180,
|
||||
width: '100%', height: 160,
|
||||
background: '#000 url(https://picsum.photos/seed/droneview/800/400) center/cover',
|
||||
borderRadius: 8,
|
||||
position: 'relative',
|
||||
@@ -382,23 +382,190 @@ export default function EquipmentCooperationPage() {
|
||||
</Card>
|
||||
|
||||
{/* AI分析与操作建议 */}
|
||||
<Card title={<><ApiOutlined /> AI分析与操作建议</>} bordered={false} style={{ borderRadius: 12, marginBottom: 16 }}>
|
||||
<Row gutter={16} style={{ marginBottom: 12 }}>
|
||||
<Col span={6}><div style={{ display: 'flex', alignItems: 'center', gap: 4 }}><WarningOutlined style={{ color: '#ff4d4f' }} /><div><div style={{ fontSize: 11, color: '#999' }}>热斑疑似</div><div style={{ fontSize: 14, fontWeight: 600 }}>2 处</div></div></div></Col>
|
||||
<Col span={6}><div style={{ display: 'flex', alignItems: 'center', gap: 4 }}><BranchesOutlined style={{ color: '#52c41a' }} /><div><div style={{ fontSize: 11, color: '#999' }}>杂草高发区</div><div style={{ fontSize: 14, fontWeight: 600 }}>3 块</div></div></div></Col>
|
||||
<Col span={6}><div style={{ display: 'flex', alignItems: 'center', gap: 4 }}><CloudOutlined style={{ color: '#1890ff' }} /><div><div style={{ fontSize: 11, color: '#999' }}>组件污损风险</div><div style={{ fontSize: 14, fontWeight: 600 }}>4 块</div></div></div></Col>
|
||||
<Col span={6}><div style={{ display: 'flex', alignItems: 'center', gap: 4 }}><AimOutlined style={{ color: '#faad14' }} /><div><div style={{ fontSize: 11, color: '#999' }}>围栏异常</div><div style={{ fontSize: 14, fontWeight: 600 }}>1 处</div></div></div></Col>
|
||||
|
||||
<Card
|
||||
title={<><ApiOutlined /> <span >AI分析与操作建议</span></>}
|
||||
bordered={false}
|
||||
style={{ borderRadius: 12, marginBottom: 16 }}
|
||||
bodyStyle={{ paddingBottom: "12px" }}
|
||||
>
|
||||
{/* 顶部指标卡片 */}
|
||||
<Row gutter={16} style={{ marginBottom: 20 }}>
|
||||
<Col span={6} >
|
||||
<div style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: 10,
|
||||
padding: '6px 12px 4px',
|
||||
borderRadius: 12,
|
||||
border: '1px solid #e8e8e8'
|
||||
}}>
|
||||
<div style={{
|
||||
width: 30,
|
||||
height: 30,
|
||||
borderRadius: '50%',
|
||||
background: 'rgba(255,77,79,0.15)',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
color: '#ff4d4f',
|
||||
fontSize: 20
|
||||
}}>
|
||||
<span role="img" aria-label="hotspot">🔥</span>
|
||||
</div>
|
||||
<div>
|
||||
<div style={{ fontSize: 11, color: '#666', }}>热斑疑似</div>
|
||||
<div style={{ fontSize: 22, fontWeight: 700, color: '#222' }}>2 <span style={{ fontSize: 12, }}>处</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
<Col span={6}>
|
||||
<div style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: 10,
|
||||
padding: '6px 12px 4px',
|
||||
borderRadius: 12,
|
||||
border: '1px solid #e8e8e8'
|
||||
}}>
|
||||
<div style={{
|
||||
width: 30,
|
||||
height: 30,
|
||||
borderRadius: '50%',
|
||||
background: 'rgba(82,196,26,0.15)',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
color: '#52c41a',
|
||||
fontSize: 16
|
||||
}}>
|
||||
<BranchesOutlined />
|
||||
</div>
|
||||
<div>
|
||||
<div style={{ fontSize: 11, color: '#666', }}>杂草高发区</div>
|
||||
<div style={{ fontSize: 22, fontWeight: 700, color: '#222' }}>3 <span style={{ fontSize: 12, }}>块</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
<Col span={6}>
|
||||
<div style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: 10,
|
||||
padding: '6px 12px 4px',
|
||||
borderRadius: 12,
|
||||
border: '1px solid #e8e8e8'
|
||||
}}>
|
||||
<div style={{
|
||||
width: 30,
|
||||
height: 30,
|
||||
borderRadius: '50%',
|
||||
background: 'rgba(24,144,255,0.15)',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
color: '#1890ff',
|
||||
fontSize: 16
|
||||
}}>
|
||||
<CloudOutlined />
|
||||
</div>
|
||||
<div>
|
||||
<div style={{ fontSize: 11, color: '#666', }}>组件风险区</div>
|
||||
<div style={{ fontSize: 22, fontWeight: 700, color: '#222' }}>4 <span style={{ fontSize: 12, }}>块</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
<Col span={6}>
|
||||
<div style={{
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
gap: 10,
|
||||
padding: '6px 12px 4px',
|
||||
borderRadius: 12,
|
||||
border: '1px solid #e8e8e8'
|
||||
}}>
|
||||
<div style={{
|
||||
width: 30,
|
||||
height: 30,
|
||||
borderRadius: '50%',
|
||||
background: 'rgba(255,77,79,0.15)',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
color: '#ff4d4f',
|
||||
fontSize: 16
|
||||
}}>
|
||||
<WarningOutlined />
|
||||
</div>
|
||||
<div>
|
||||
<div style={{ fontSize: 11, color: '#666', }}>围栏异常</div>
|
||||
<div style={{ fontSize: 22, fontWeight: 700, color: '#ff4d4f' }}>1 <span style={{ fontSize: 12, }}>处</span></div>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
{/* 建议操作 + 按钮 双栏 */}
|
||||
<Row gutter={16}>
|
||||
<Col span={14}>
|
||||
<div style={{ marginBottom: 12 }}>
|
||||
<div style={{ fontSize: 16, fontWeight: 600, color: '#1890ff', marginBottom: 12 }}>建议操作</div>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 2, padding: '16px', borderRadius: 12, border: '1px solid #e8e8e8' }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
||||
<span style={{ color: '#1890ff' }}>⦿</span>
|
||||
<span style={{ fontSize: 16 }}>优先执行巡检航线 P-03</span>
|
||||
</div>
|
||||
<svg t="1778317171240" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5738" width="20" height="20"><path d="M384.32 797.512a30.088 30.088 0 0 1-21.288-51.392L597.144 512 363.032 277.816a30.088 30.088 0 0 1 0-42.568 30.088 30.088 0 0 1 42.568 0l255.392 255.464a30.088 30.088 0 0 1 0 42.568L405.6 788.696a30.04 30.04 0 0 1-21.28 8.816z" fill="#666666" p-id="5739"></path></svg> </div>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
||||
<span style={{ color: '#1890ff' }}>⦿</span>
|
||||
<span style={{ fontSize: 16 }}>先行安排除草任务 G-02</span>
|
||||
</div>
|
||||
<svg t="1778317171240" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5738" width="20" height="20"><path d="M384.32 797.512a30.088 30.088 0 0 1-21.288-51.392L597.144 512 363.032 277.816a30.088 30.088 0 0 1 0-42.568 30.088 30.088 0 0 1 42.568 0l255.392 255.464a30.088 30.088 0 0 1 0 42.568L405.6 788.696a30.04 30.04 0 0 1-21.28 8.816z" fill="#666666" p-id="5739"></path></svg> </div>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center' }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}>
|
||||
<span style={{ color: '#1890ff' }}>⦿</span>
|
||||
<span style={{ fontSize: 16 }}>建议生成清洗工单</span>
|
||||
</div>
|
||||
<svg t="1778317171240" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5738" width="20" height="20"><path d="M384.32 797.512a30.088 30.088 0 0 1-21.288-51.392L597.144 512 363.032 277.816a30.088 30.088 0 0 1 0-42.568 30.088 30.088 0 0 1 42.568 0l255.392 255.464a30.088 30.088 0 0 1 0 42.568L405.6 788.696a30.04 30.04 0 0 1-21.28 8.816z" fill="#666666" p-id="5739"></path></svg>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</Col>
|
||||
|
||||
<Col span={10}>
|
||||
<div style={{ display: 'flex', flexDirection: 'column', paddingBottom: "12px", gap: 16, height: '100%', justifyContent: "end" }}>
|
||||
<div style={{ display: 'flex', gap: 12 }}>
|
||||
<Button
|
||||
type="primary"
|
||||
size="large"
|
||||
style={{ flex: 1, borderRadius: 8, fontSize: 16 }}
|
||||
>
|
||||
生成任务
|
||||
</Button>
|
||||
<Button
|
||||
size="large"
|
||||
style={{
|
||||
flex: 1,
|
||||
borderRadius: 8, fontSize: 16,
|
||||
border: '1px solid #1890ff',
|
||||
color: '#1890ff'
|
||||
}}
|
||||
>
|
||||
AI优化路径
|
||||
</Button>
|
||||
</div>
|
||||
<Button
|
||||
type="primary"
|
||||
size="large"
|
||||
style={{ borderRadius: 8, fontSize: 16 }}
|
||||
>
|
||||
一键联动作业
|
||||
</Button>
|
||||
</div>
|
||||
</Col>
|
||||
</Row>
|
||||
<div style={{ fontSize: 12, color: '#666', marginBottom: 12 }}>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 4 }}><ArrowRightOutlined style={{ fontSize: 10 }} /> 优先执行巡检航线 P-03</div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 4 }}><ArrowRightOutlined style={{ fontSize: 10 }} /> 先行安排除草任务 G-02</div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 4 }}><ArrowRightOutlined style={{ fontSize: 10 }} /> 建议生成清洗工单</div>
|
||||
</div>
|
||||
<div style={{ display: 'flex', gap: 8 }}>
|
||||
<Button type="primary" size="small">生成任务</Button>
|
||||
<Button size="small">AI优化路径</Button>
|
||||
<Button type="primary" size="small">一键联动作业</Button>
|
||||
</div>
|
||||
</Card>
|
||||
|
||||
{/* 控制日志/告警记录 */}
|
||||
|
||||
Reference in New Issue
Block a user