中英文切换根据已有的功能 已经基本完善
This commit is contained in:
@@ -474,31 +474,31 @@ export default function DeviceOverviewPage() {
|
||||
title: t('devices.fixed2DroneAirportFixed2StatusFixed2'),
|
||||
icon: <EnvironmentOutlined style={{ color: '#165DFF', fontSize: 24 }} />,
|
||||
value: `${onlineDrones} / ${totalDrones}`,
|
||||
sub: `可调度 ${onlineDrones} 架`,
|
||||
sub: `${t('devices.distributable')} ${onlineDrones} ${t('devices.UnitsDrone')}`,
|
||||
color: '#165DFF',
|
||||
iconBg: '#E8F3FF'
|
||||
},
|
||||
{
|
||||
title: t('home.inspectionRobot'),
|
||||
icon: <RobotOutlined style={{ color: '#13c2c2', fontSize: 24 }} />,
|
||||
value: `${totalRobots} 台`,
|
||||
sub: `执行中 ${activeRobots}`,
|
||||
value: `${totalRobots} ${t('devices.UnitsRobot')}`,
|
||||
sub: `${t('devices.executing')} ${activeRobots}`,
|
||||
color: '#13c2c2',
|
||||
iconBg: '#E6FFFA'
|
||||
},
|
||||
{
|
||||
title: t('devices.mowingRobot'),
|
||||
icon: <CarOutlined style={{ color: '#722ED1', fontSize: 24 }} />,
|
||||
value: `${totalMowers} 台`,
|
||||
sub: `任务中 ${activeMowers}`,
|
||||
value: `${totalMowers} ${t('devices.UnitsRobot')}`,
|
||||
sub: `${t('devices.executing')} ${activeMowers}`,
|
||||
color: '#722ED1',
|
||||
iconBg: '#F9F0FF'
|
||||
},
|
||||
{
|
||||
title: t('devices.washDrone'),
|
||||
icon: <CloudOutlined style={{ color: '#eb2f96', fontSize: 24 }} />,
|
||||
value: `${totalDrones} 架`,
|
||||
sub: `待命 ${washDroneStandby}`,
|
||||
value: `${totalDrones} ${t('devices.UnitsDrone')}`,
|
||||
sub: `${t('devices.waiting')} ${washDroneStandby}`,
|
||||
color: '#eb2f96',
|
||||
iconBg: '#FFF1F3'
|
||||
},
|
||||
@@ -514,7 +514,7 @@ export default function DeviceOverviewPage() {
|
||||
title: t('devices.todayTaskExecute'),
|
||||
icon: <CheckCircleOutlined style={{ color: '#2f54eb', fontSize: 24 }} />,
|
||||
value: `${completedTasks} / ${totalTasks}`,
|
||||
sub: `完成率 ${completionRate}%`,
|
||||
sub: `${t('devices.completionRate')} ${completionRate}%`,
|
||||
color: '#2f54eb',
|
||||
iconBg: '#E8F3FF'
|
||||
},
|
||||
@@ -779,7 +779,7 @@ export default function DeviceOverviewPage() {
|
||||
<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(realtimeDevice?.capacity_percent || realtimeDevice?.lastRunningStatus?.battery || 100)}%</span>
|
||||
<span style={{ fontSize: 12 }}>{t('devices.batteryLevel')}: {fix2(realtimeDevice?.capacity_percent || realtimeDevice?.lastRunningStatus?.battery || 100)}%</span>
|
||||
</div>
|
||||
{realtimeDevice?.environment_temperature && (
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 6 }}>
|
||||
|
||||
Reference in New Issue
Block a user