From 51015fea0c8c3e06c14bbcfc7dd6172291116ccb Mon Sep 17 00:00:00 2001 From: ctw <1051735452@qq.com> Date: Mon, 26 Jan 2026 10:03:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E6=9C=AC=EF=BC=8C?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E6=8F=92=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/cesiumMap/index.vue | 26 ++++++++++++++++++++------ ruoyi-ui/src/views/childRoom/index.vue | 9 ++------- 2 files changed, 22 insertions(+), 13 deletions(-) diff --git a/ruoyi-ui/src/views/cesiumMap/index.vue b/ruoyi-ui/src/views/cesiumMap/index.vue index 7bd8947..21e7bc9 100644 --- a/ruoyi-ui/src/views/cesiumMap/index.vue +++ b/ruoyi-ui/src/views/cesiumMap/index.vue @@ -89,8 +89,8 @@ export default { circle: { color: '#800080', opacity: 0.4, width: 2 }, sector: { color: '#FF6347', opacity: 0.5, width: 2 }, arrow: { color: '#FF0000', width: 6 }, - text: { color: '#000000', font: '32px Microsoft YaHei, PingFang SC, sans-serif', backgroundColor: 'rgba(255, 255, 255, 0.8)' }, - image: { width: 100, height: 100 } + text: { color: '#000000', font: '48px Microsoft YaHei, PingFang SC, sans-serif', backgroundColor: 'rgba(255, 255, 255, 0.8)' }, + image: { width: 150, height: 150 } } } }, @@ -1728,8 +1728,15 @@ export default { scaleByDistance: new Cesium.NearFarScalar( 1000, // 近距离(米) 1.0, // 近距离时的缩放比例 - 1000000, // 远距离(米) - 0.0 // 远距离时的缩放比例 + 500000, // 远距离(米) + 0.1 // 远距离时的缩放比例(不为0,保持可见) + ), + // 随地图缩放调整透明度 + translucencyByDistance: new Cesium.NearFarScalar( + 1000, // 近距离(米) + 1.0, // 近距离时的透明度 + 500000, // 远距离(米) + 0.3 // 远距离时的透明度 ) } }) @@ -1870,8 +1877,15 @@ export default { scaleByDistance: new Cesium.NearFarScalar( 1000, // 近距离(米) 1.0, // 近距离时的缩放比例 - 1000000, // 远距离(米) - 0.0 // 远距离时的缩放比例 + 500000, // 远距离(米) + 0.1 // 远距离时的缩放比例(不为0,保持可见) + ), + // 随地图缩放调整透明度 + translucencyByDistance: new Cesium.NearFarScalar( + 1000, // 近距离(米) + 1.0, // 近距离时的透明度 + 500000, // 远距离(米) + 0.3 // 远距离时的透明度 ) } }) diff --git a/ruoyi-ui/src/views/childRoom/index.vue b/ruoyi-ui/src/views/childRoom/index.vue index 81eb37c..eaf2c72 100644 --- a/ruoyi-ui/src/views/childRoom/index.vue +++ b/ruoyi-ui/src/views/childRoom/index.vue @@ -392,7 +392,7 @@ export default { // 右侧面板 activeRightTab: 'plan', activeRouteIds: [], // 存储当前所有选中的航线ID - selectedRouteDetails: null, + // 冲突数据 conflictCount: 2, @@ -682,9 +682,7 @@ export default { this.isMenuHidden = true; }, - selectTopNav(item) { - console.log('选中顶部导航:', item); - }, + // 右侧面板操作 showRightPanel() { @@ -993,9 +991,6 @@ export default { this.$message.success('航线收藏'); }, - showOnlineMembersDialog() { - this.showOnlineMembers = true; - }, hideRightPanel() { this.isRightPanelHidden = true;