地图资源 全部换成 npm的资源 加快了加载速度 ,地图加了一个定位到机器的按钮,手动定位到机器 ,实时显示工作中空闲状态 机器加入显示设备类型 机器人任务界面 保存定时任务 bug修复
This commit is contained in:
@@ -2174,138 +2174,6 @@ export default function DeviceStatusPage() {
|
||||
|
||||
|
||||
|
||||
{/* 页面顶部按钮区域 */}
|
||||
|
||||
{/*{!isUAV && (
|
||||
|
||||
<div
|
||||
|
||||
style={{
|
||||
|
||||
marginBottom: 8,
|
||||
|
||||
padding: '4px 0px',
|
||||
|
||||
background: '#f5f7fa',
|
||||
|
||||
borderRadius: 8,
|
||||
|
||||
display: 'flex',
|
||||
|
||||
alignItems: 'center',
|
||||
|
||||
justifyContent: 'space-between',
|
||||
|
||||
gap: 12,
|
||||
|
||||
}}
|
||||
|
||||
>
|
||||
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: 12 }}>
|
||||
|
||||
<Text strong>{t('devices.pathPlanning')}:</Text>
|
||||
|
||||
<Text type="secondary" style={{ color: '#8c8c8c' }}>{t('devices.markedPointsCount', { count: markedPoints?.length })}</Text>
|
||||
|
||||
</div>
|
||||
|
||||
<Space size="middle">
|
||||
|
||||
<Space>
|
||||
|
||||
<span>{t('devices.workMode')}</span>
|
||||
|
||||
<Switch
|
||||
|
||||
size="small"
|
||||
|
||||
checked={isLoopMode}
|
||||
|
||||
onChange={handleChange}
|
||||
|
||||
/>
|
||||
|
||||
<span>{isLoopMode ? t('devices.bowMode') : t('devices.abMode')}</span>
|
||||
|
||||
</Space>
|
||||
|
||||
<Button
|
||||
|
||||
type="primary"
|
||||
|
||||
onClick={handleMarkPoint}
|
||||
|
||||
disabled={!realtimePosition}
|
||||
|
||||
>
|
||||
|
||||
{t('devices.markPoint')}
|
||||
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
|
||||
type="default"
|
||||
|
||||
onClick={handleUndoMark}
|
||||
|
||||
disabled={markedPoints?.length === 0}
|
||||
|
||||
>
|
||||
|
||||
{t('devices.undoMark')}
|
||||
|
||||
</Button>
|
||||
|
||||
<Button
|
||||
|
||||
type="default"
|
||||
|
||||
onClick={handleClearPoints}
|
||||
|
||||
>
|
||||
|
||||
{t('devices.clearMarks')}
|
||||
|
||||
</Button>
|
||||
|
||||
{/*<Button
|
||||
|
||||
type="primary"
|
||||
|
||||
ghost
|
||||
|
||||
onClick={handleComplete}
|
||||
|
||||
disabled={markedPoints?.length < 2}
|
||||
|
||||
>
|
||||
|
||||
{t('devices.complete')}
|
||||
|
||||
</Button>*/}
|
||||
|
||||
{/*<Button
|
||||
|
||||
type="primary"
|
||||
|
||||
onClick={handleOpenSaveModal}
|
||||
|
||||
//disabled={!completeFlag}
|
||||
|
||||
>
|
||||
|
||||
{t('common.save')}
|
||||
|
||||
</Button>
|
||||
|
||||
</Space>
|
||||
|
||||
</div>
|
||||
|
||||
)}}*/}
|
||||
|
||||
|
||||
|
||||
<div
|
||||
@@ -2390,7 +2258,7 @@ export default function DeviceStatusPage() {
|
||||
|
||||
<Tag color={isUAV ? 'cyan' : 'blue'}>
|
||||
|
||||
{isUAV ? t('constants.uav') : t('devices.robot')}
|
||||
{isUAV ? t('constants.uav') : device?.deviceType ? device?.deviceType : t('devices.robot')}
|
||||
|
||||
</Tag>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user