|
|
|
@ -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: { |
|
|
|
|