From be4bf038c162e4b367fef0933ab14ff65df4c438 Mon Sep 17 00:00:00 2001 From: wxs <211789910@qq.com> Date: Sun, 8 Mar 2026 15:39:18 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E4=BA=AE=E5=BA=A6=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/components/twin-situation/index.js | 12 ++++--- .../home/components/twin-situation/index.vue | 35 ++++++++++++------- 2 files changed, 30 insertions(+), 17 deletions(-) diff --git a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js index 69a8da2..72d75bd 100644 --- a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js +++ b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.js @@ -375,7 +375,7 @@ export default { lightPercent: 0, contrastPercent: 10, imageInfos: { - brightness: 10 + brightness: 1 }, } }, @@ -487,7 +487,7 @@ export default { // ) orthoManager = new OrthoImageryManager(viewer, DT.Cesium, { maxLayers: 400, - brightness: 1.2, // 默认亮度 + brightness: 1, // 默认亮度 alpha: 1.0 // 默认透明度 }) // this.startTest() @@ -580,7 +580,7 @@ export default { // 亮度设置变化 onLightChange: debounce(function (val) { const imageInfos = { ...this.imageInfos } - orthoManager.setBrightness(val / 10) + orthoManager.setBrightness(val) // execBrightnessexport(imageInfos).then(res => { // console.log('亮度调整成功'); // // this.$message.success('亮度调整成功') @@ -2821,7 +2821,7 @@ export default { // this.imageInfos = Object.assign({}, this.imageInfos, data) // this.imageInfos.brightness = data.brightness console.log('SAR图像2', data) - orthoManager.add(data, this.imageInfos.brightness / 10) + orthoManager.add(data, this.imageInfos.brightness) // this.addMarkPicture2(data) // console.log('灭有匹配到吗taskUavCollection', taskUavCollection, taskUavCollection[data.jobId]) // if (taskUavCollection[data.jobId]) { @@ -3040,6 +3040,10 @@ export default { viewer.entities.remove(item) } }) + if (orthoManager) { + orthoManager.clearAll() + orthoManager = null + } } if (data.jobStatus === 1 && this.detailUav.id === data.jobId) { this.updateUavInfo(data.sarStatus) diff --git a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue index b6293dd..37b4d19 100644 --- a/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue +++ b/frontend/Skyeye-sys-ui/src/views/home/components/twin-situation/index.vue @@ -14,7 +14,7 @@
@@ -91,9 +91,9 @@
- {{ $t('task.temperature') }}:{{ weatherInfo2.wendu }} + {{ $t('task.temperature') }}:{{ weatherInfo2.wendu }}
- {{ $t('task.humidity') }}:{{ weatherInfo2.shidu }} + {{ $t('task.humidity') }}:{{ weatherInfo2.shidu }}
- {{ $t('task.airQuality') }}:{{ weatherInfo2.quality }} + {{ $t('task.airQuality') }}:{{ weatherInfo2.quality }}
- {{ $t('task.pm25') }}:{{ weatherInfo2.pm25 }} + {{ $t('task.pm25') }}:{{ weatherInfo2.pm25 }}
- {{ $t('task.pm10') }}:{{ weatherInfo2.pm10 }} + {{ $t('task.pm10') }}:{{ weatherInfo2.pm10 }}
@@ -340,14 +345,18 @@
- - + + + + - - + + + +