优化一些细节

This commit is contained in:
mmc
2026-11-16 14:33:48 +08:00
parent 831e1086d3
commit d9f4b752dd
5 changed files with 71 additions and 53 deletions

View File

@@ -1745,7 +1745,7 @@ export function TaskPlanningView({ selectedMachineSn, embedded = false, onStatsC
/>
{/* 机器人操作面板(状态信息改为鼠标悬浮机器时在地图上显示) */}
{execute && executingRobot && (
{targetRobot && (
<div
style={{
position: 'absolute',
@@ -1768,7 +1768,7 @@ export function TaskPlanningView({ selectedMachineSn, embedded = false, onStatsC
}}
>
<span style={{ fontWeight: 600 }}>
🤖 {executingRobot.deviceAlias || executingRobot.serialNumber}
🤖 {targetRobot.deviceAlias || targetRobot.serialNumber}
</span>
<span>
@@ -2277,7 +2277,7 @@ export function TaskPlanningView({ selectedMachineSn, embedded = false, onStatsC
<div style={{ fontWeight: 600, marginBottom: 8 }}>{t('devices.dispatchSource')}</div>
<Radio.Group value={dispatchSource} onChange={e => { setDispatchSource(e.target.value); setDispatchRouteIds([]); setDispatchRegionIds([]); }} buttonStyle="solid">
<Radio.Button value="route">{t('devices.dispatchByRoute')}</Radio.Button>
<Radio.Button value="region">{t('devices.dispatchByRegion')}</Radio.Button>
{/*<Radio.Button value="region">{t('devices.dispatchByRegion')}</Radio.Button>*/}
</Radio.Group>
</div>
@@ -2334,7 +2334,13 @@ export function TaskPlanningView({ selectedMachineSn, embedded = false, onStatsC
}}
>
<span style={{ width: 6, height: 6, borderRadius: '50%', background: group.color, flex: '0 0 auto' }} />
<span style={{ flex: 1, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{route.workName || route.name}</span>
{route?.imgUrl && (
<img
src={route.imgUrl}
alt=""
style={{ width: 20, height: 20, objectFit: 'cover' }}
/>
)} <span style={{ flex: 1, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>{route.workName || route.name}</span>
{checked && <span style={{ color: '#1677ff', fontWeight: 700 }}>✓</span>}
</div>
);