diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RoomPlatformIconController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RoomPlatformIconController.java
index 0869b0d..f28ac5e 100644
--- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RoomPlatformIconController.java
+++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/RoomPlatformIconController.java
@@ -108,7 +108,7 @@ public class RoomPlatformIconController extends BaseController {
@PutMapping
public AjaxResult edit(@RequestBody RoomPlatformIcon roomPlatformIcon) {
RoomPlatformIcon before = roomPlatformIcon.getId() != null
- ? roomPlatformIconService.selectById(roomPlatformIcon.getId()) : null;
+ ? roomPlatformIconService.selectById(roomPlatformIcon.getId()) : null;
int rows = roomPlatformIconService.update(roomPlatformIcon);
if (rows > 0 && before != null) {
RoomPlatformIcon after = roomPlatformIconService.selectById(roomPlatformIcon.getId());
@@ -171,5 +171,5 @@ public class RoomPlatformIconController extends BaseController {
}
}
return toAjax(rows);
-}
+ }
}
diff --git a/ruoyi-ui/src/views/cesiumMap/ContextMenu.vue b/ruoyi-ui/src/views/cesiumMap/ContextMenu.vue
index 73f324f..e7502e4 100644
--- a/ruoyi-ui/src/views/cesiumMap/ContextMenu.vue
+++ b/ruoyi-ui/src/views/cesiumMap/ContextMenu.vue
@@ -256,21 +256,22 @@
磁方位
-
-
+
-
{{ formatNum(scope.row.turnAngle) }}
-
+
@@ -775,7 +775,7 @@ export default {
alt: row.alt,
speed: speedVal,
startTime: this.minutesToStartTime(row.minutesFromK),
- turnAngle: row.turnAngle != null ? row.turnAngle : 0,
+ turnAngle: row.turnAngle != null ? row.turnAngle : 45,
turnRadius,
pointType: row.pointType || null,
holdParams: row.holdParams || null,
diff --git a/ruoyi-ui/src/views/dialogs/WaypointEditDialog.vue b/ruoyi-ui/src/views/dialogs/WaypointEditDialog.vue
index 2179248..85162e2 100644
--- a/ruoyi-ui/src/views/dialogs/WaypointEditDialog.vue
+++ b/ruoyi-ui/src/views/dialogs/WaypointEditDialog.vue
@@ -116,13 +116,9 @@
-
- ⚠️ 首尾航点坡度已锁定为 0,不可编辑
-
@@ -217,7 +213,6 @@ export default {
segmentTargetSpeed: null,
currentIndex: -1,
totalPoints: 0,
- isBankDisabled: false,
pointType: 'normal',
holdClockwise: true,
holdEdgeLengthKm: 20,
@@ -268,7 +263,6 @@ export default {
initFormData() {
const index = this.waypoint.currentIndex !== undefined ? this.waypoint.currentIndex : -1;
const total = this.waypoint.totalPoints || 0;
- const locked = (index === 0) || (total > 0 && index === total - 1);
const pt = (this.waypoint.pointType || this.waypoint.point_type) || 'normal';
let holdClockwise = true;
@@ -305,8 +299,9 @@ export default {
segmentTargetSpeed: (disp && disp.segmentTargetSpeed != null) ? Number(disp.segmentTargetSpeed) : (this.waypoint.segmentTargetSpeed != null ? Number(this.waypoint.segmentTargetSpeed) : (this.waypoint.speed != null ? Number(this.waypoint.speed) : null)),
currentIndex: index,
totalPoints: total,
- isBankDisabled: locked,
- turnAngle: locked ? 0 : (this.waypoint.turnAngle != null ? Number(this.waypoint.turnAngle) : 45),
+ turnAngle: this.waypoint.turnAngle != null && this.waypoint.turnAngle !== ''
+ ? Number(this.waypoint.turnAngle)
+ : 45,
pointType: pt,
holdClockwise,
holdEdgeLengthKm,