增加地图编辑界面,该界面支持增删改查 返航点,一个机器对应一个返航点,增删改查场站分区,将原本机器状态界面的 路径规划功能移植到该页面,地图上支持显示 返航点和分区,点击分区和返航点,地图支持定位和高亮,等待测试

机器状态界面返航 功能接口对接,还未对接实机测试
This commit is contained in:
mmc
2026-10-24 13:38:05 +08:00
parent a17a19fdc4
commit fb363882ac
10 changed files with 2137 additions and 214 deletions

View File

@@ -49,7 +49,8 @@ interface RobotFeatureButtonsProps {
onToggle?: (feature: RobotFeature, enabled: boolean) => void;
className?: string;
showEmergencyStop?: boolean;
sendFindCar: () => {}
sendFindCar: () => {};
sendAutoBack?: () => {};
}
const RobotFeatureButtons: React.FC<RobotFeatureButtonsProps> = ({
@@ -58,6 +59,7 @@ const RobotFeatureButtons: React.FC<RobotFeatureButtonsProps> = ({
className = '',
showEmergencyStop = true,
sendFindCar,
sendAutoBack
}) => {
const { t } = useTranslation();
const { userInfo } = useSelector((state: RootState) => state.user);
@@ -76,6 +78,9 @@ const RobotFeatureButtons: React.FC<RobotFeatureButtonsProps> = ({
if (feature === 'findCar') {
sendFindCar?.();
}
if (feature === 'autoback') {
sendAutoBack?.();
}
const next = !active.has(feature);
const nextSet = new Set(active);
if (next) nextSet.add(feature);
@@ -100,6 +105,7 @@ const RobotFeatureButtons: React.FC<RobotFeatureButtonsProps> = ({
backgroundColor: isActive ? `${f.activeColor}1a` : '#fafafa',
borderColor: isActive ? f.activeColor : '#e5e7eb',
boxShadow: isActive ? `0 0 12px ${f.activeColor}33` : 'none',
cursor: 'pointer',
}}
title={t(`devices.features.${f.key}`)}
>