From 4c41c3a55599808c817de96a31f5a047885dbe4b Mon Sep 17 00:00:00 2001
From: cuitw <1051735452@qq.com>
Date: Tue, 31 Mar 2026 16:53:37 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=9A=84=E4=BC=98=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../web/controller/RoomPlatformIconController.java | 4 +-
ruoyi-ui/src/views/cesiumMap/ContextMenu.vue | 50 +-
ruoyi-ui/src/views/cesiumMap/index.vue | 475 +++++++++++++++---
ruoyi-ui/src/views/childRoom/SixStepsOverlay.vue | 37 +-
ruoyi-ui/src/views/childRoom/index.vue | 545 +++++++++++----------
ruoyi-ui/src/views/dialogs/RouteEditDialog.vue | 4 +-
ruoyi-ui/src/views/dialogs/WaypointEditDialog.vue | 13 +-
7 files changed, 772 insertions(+), 356 deletions(-)
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,