航线任务
This commit is contained in:
@@ -45,7 +45,6 @@ const logs = [
|
||||
|
||||
// 设备总览组件
|
||||
export default function DeviceOverviewPage({ devices, planedevices, devicesAll }) {
|
||||
console.log(devicesAll, "devicesAll")
|
||||
const [selectedDevice, setSelectedDevice] = useState(null);
|
||||
const [planeVideo, setPlaneVideo] = useState('');
|
||||
|
||||
@@ -191,7 +190,7 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll }
|
||||
/>
|
||||
</Card>
|
||||
|
||||
<Card title={<><SettingOutlined /> <span style={{ color: '#1890ff' }}>控制日志 / 告警记录</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: 12 }} extra={<div style={{ display: 'flex', alignItems: 'center', gap: 8 }}><Button size="small" style={{ borderRadius: 8, 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> },
|
||||
@@ -241,10 +240,13 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll }
|
||||
<span style={{ color: '#52c41a' }}><ThunderboltOutlined /></span>
|
||||
<span style={{ fontSize: 12 }}>电量 {fix2(selectedDevice.capacity_percent || 100)}%</span>
|
||||
</div>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
|
||||
<span style={{ fontSize: 12 }}>温度</span>
|
||||
<span style={{ color: '#faad14' }}>{fix2(selectedDevice.environment_temperature || 25)}℃</span>
|
||||
</div>
|
||||
{selectedDevice.environment_temperature && (
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
|
||||
<span style={{ fontSize: 12 }}>温度</span>
|
||||
<span style={{ color: '#faad14' }}>{fix2(selectedDevice.environment_temperature || 25)}℃</span>
|
||||
</div>
|
||||
)}
|
||||
|
||||
</div>
|
||||
|
||||
<div style={{ display: 'flex', flexDirection: 'column', gap: 6, marginBottom: 12, maxHeight: "160px", overflow: "auto", scrollbarWidth: 'thin', scrollbarColor: '#ccc transparent' }}>
|
||||
@@ -382,7 +384,7 @@ export default function DeviceOverviewPage({ devices, planedevices, devicesAll }
|
||||
|
||||
{/* 条件渲染:机器人显示其余信息(此处以任务详情为例) */}
|
||||
{(!selectedDevice?.productName?.includes('无人机') && !selectedDevice?.device_sn) && (
|
||||
<Card title="机器人作业状态" bordered={false} style={{ borderRadius: 12, marginBottom: 16 }}>
|
||||
<Card title={<><RobotOutlined /> 机器人作业状态</>} bordered={false} style={{ borderRadius: 12, marginBottom: 16 }}>
|
||||
<Row gutter={16}>
|
||||
<Col span={8}>
|
||||
<Statistic title="累计里程" value={128.5} suffix="km" valueStyle={{ fontSize: 20 }} />
|
||||
|
||||
Reference in New Issue
Block a user