From 4e823b008f5db7f0bfeb0fdeeea661a7c89060cd Mon Sep 17 00:00:00 2001 From: supermap123 Date: Wed, 8 May 2024 16:44:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=B0=E5=9B=BE=E6=9F=A5=E8=AF=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=BC=B9=E7=AA=97=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../layerSeries/map-query/mapQuery.vue | 49 +++++++------------ 1 file changed, 19 insertions(+), 30 deletions(-) diff --git a/SuperMap iEarth/src/package/layerSeries/map-query/mapQuery.vue b/SuperMap iEarth/src/package/layerSeries/map-query/mapQuery.vue index feea8cba..c0dfd8ac 100644 --- a/SuperMap iEarth/src/package/layerSeries/map-query/mapQuery.vue +++ b/SuperMap iEarth/src/package/layerSeries/map-query/mapQuery.vue @@ -34,17 +34,12 @@ color="#3499E5" text-color="#fff" :loading="state.isloading_table" + :focusable="false" @click="startQuery" style="margin-right: 0.1rem" >{{ $t("attributeList") }} - {{ $t("clear") }} + {{ $t("clear") }} @@ -103,6 +98,7 @@ {{ $t("filter") }}{{ $t("sure") }} - {{ $t("cancle") }} + {{ + $t("cancle") + }} @@ -362,19 +355,16 @@
{{ $t("sure") }} - {{ $t("clear") }} + {{ + $t("clear") + }}
@@ -621,16 +611,14 @@ onBeforeUnmount(() => { // 设置气泡位置 function setBablePosition() { if (state.scenePosition) { - var canvasHeight = viewer.scene.canvas.height; - var windowPosition = new SuperMap3D.Cartesian2(); - SuperMap3D.SceneTransforms.wgs84ToWindowCoordinates( + let WindowCoordinates = SuperMap3D.SceneTransforms.wgs84ToWindowCoordinates( viewer.scene, - state.scenePosition, - windowPosition + state.scenePosition ); - bableQuery.value.style.bottom = canvasHeight - windowPosition.y - 10 + "px"; - bableQuery.value.style.left = windowPosition.x + "px"; - bableQuery.value.style.visibility = "visible"; + bableQuery.value.style.top = + WindowCoordinates.y - bableQuery.value.offsetHeight + 450 + "px"; + bableQuery.value.style.left = + WindowCoordinates.x - bableQuery.value.offsetWidth / 2 + 150 + "px"; } } @@ -789,6 +777,7 @@ function clickQuery() { let features = serviceResult.result?.features?.features; if (features.length == 0) { message.success($t("noData")); + state.shadowRadioShow = false; return; } state.shadowRadioShow = true;