diff --git a/lib/features/home/presentation/widgets/map/testmap_pages.dart b/lib/features/home/presentation/widgets/map/testmap_pages.dart index c467a2df..936caf46 100644 --- a/lib/features/home/presentation/widgets/map/testmap_pages.dart +++ b/lib/features/home/presentation/widgets/map/testmap_pages.dart @@ -573,6 +573,7 @@ class _MapPageEnterpriseState extends State { if (response.statusCode == 200) { ToastUtils.showSuccess(context, '地块「$plotName」保存成功!'); + _clearLocalData(); //ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text('地块「$plotName」保存成功!'), backgroundColor: Colors.green)); // 保存成功 setState(() { @@ -1925,17 +1926,12 @@ class _MapPageEnterpriseState extends State { if (showTips) { ToastUtils.showSuccess(context, '路径生成成功!'); } - debugPrint('生成的路径数据:${cubitState.generatedPath}'); - if (cubitState.generatedPath is List) { setState(() { _isWorkAreaCompleted = true; _saveBoxOpen = true; final pathList = cubitState.generatedPath as List; typedPathList = pathList.whereType().toList(); - debugPrint('✅ 过滤并转换后的路径点列表:typedPathList 长度=${typedPathList.length}'); - //打印 - gcjPathPoints = typedPathList.map((point) { double wgs84Lat = point.latitude; double wgs84Lon = point.longitude; @@ -1991,13 +1987,11 @@ class _MapPageEnterpriseState extends State { controlMode = updatedState.status.controlMode; _headingAngle = updatedState.status.yaw; - debugPrint("${updatedState.status} 路径规划四十数据"); - - debugPrint("路径规划四十数据 - 经纬度:"); - debugPrint(" RunningStatus纬度:${updatedState.status.latitude}"); - debugPrint(" RunningStatus经度:${updatedState.status.longitude}"); - debugPrint("${updatedState.status.obstacleFlag},${updatedState.status.qual},${updatedState.status.controlMode}"); - debugPrint("${updatedState.status.headingStatus},${updatedState.status.yaw}"); + //debugPrint("路径规划四十数据 - 经纬度:"); + //debugPrint(" RunningStatus纬度:${updatedState.status.latitude}"); + //debugPrint(" RunningStatus经度:${updatedState.status.longitude}"); + //debugPrint("${updatedState.status.obstacleFlag},${updatedState.status.qual},${updatedState.status.controlMode}"); + //debugPrint("${updatedState.status.headingStatus},${updatedState.status.yaw}"); // 提取经纬度并更新本地变量 currentLat = updatedState.status.latitude;