From 7681af9751ea62da7d09eed1353e766df4c17c8f Mon Sep 17 00:00:00 2001 From: menghao <1584479611@qq.com> Date: Fri, 27 Feb 2026 13:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/cesiumMap/index.vue | 54 ++++++++++------------------------ 1 file changed, 15 insertions(+), 39 deletions(-) diff --git a/ruoyi-ui/src/views/cesiumMap/index.vue b/ruoyi-ui/src/views/cesiumMap/index.vue index a2db5d5..1069cec 100644 --- a/ruoyi-ui/src/views/cesiumMap/index.vue +++ b/ruoyi-ui/src/views/cesiumMap/index.vue @@ -359,45 +359,6 @@ export default { default: null } }, - watch: { - drawDomClick: { - immediate: true, // 组件初始化时立即执行一次 - handler(newVal, oldVal) { - // 可选:如果需要在值变化时执行额外逻辑(比如初始化地图) - if (newVal) { - // this.initMap() - } - } - }, - scaleConfig: { - deep: true, - handler(newVal) { - if (newVal) { - this.updateScaleFromConfig(newVal) - } - } - }, - coordinateFormat: { - handler(newVal) { - this.updateCoordinatesDisplay() - } - }, - deductionTimeMinutes: { - immediate: true, - handler(val) { - this.currentDeductionMinutes = (val != null && Number.isFinite(Number(val))) ? Number(val) : 0 - this.updateMissilesByTime() - } - }, - missileDialogVisible(val) { - if (!val) { - this.clearMissilePreview() - if (this._missileDialogDragCleanup) { - this._missileDialogDragCleanup() - } - } - } - }, data() { return { @@ -636,6 +597,21 @@ export default { this.applyStylesTimer = setTimeout(() => { this.applyRedisPlatformStyles(); }, 80); + }, + deductionTimeMinutes: { + immediate: true, + handler(val) { + this.currentDeductionMinutes = (val != null && Number.isFinite(Number(val))) ? Number(val) : 0 + this.updateMissilesByTime() + } + }, + missileDialogVisible(val) { + if (!val) { + this.clearMissilePreview() + if (this._missileDialogDragCleanup) { + this._missileDialogDragCleanup() + } + } } }, computed: {