From 37a088d6ac377b608f6d9728984eba082b2df819 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E5=B0=91=E5=BA=B7?= <2496371772@qq.com> Date: Thu, 6 Aug 2026 14:50:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BD=93=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E4=B8=A4=E4=B8=AA=E6=95=88=E6=9E=9C=E6=97=B6?= =?UTF-8?q?=E7=9A=84=E8=BF=9E=E7=BB=AD=E9=97=AA=E7=83=81=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/gis/ol/index.ts | 2 +- src/layout/Container/mapTimeSlider.vue | 12 +++++++----- src/layout/Container/meteorologyMenu.vue | 7 ++++++- src/pages/tqybjs/index.vue | 1 + 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/src/gis/ol/index.ts b/src/gis/ol/index.ts index 46e38abe..8a4064ac 100644 --- a/src/gis/ol/index.ts +++ b/src/gis/ol/index.ts @@ -204,7 +204,7 @@ const palyDateEvent: any = { // 添加天气运算接口 animationType: 0 回放 1预览 addyctqjsGis(map: any, eventOpt?: any) { // 清理UI - if (gisImgOpt.weatherType === 3) { + if (eventOpt.weatherType === 3) { removeWindLayer(map); addWindLayer(map, windDataHandle(eventOpt.data)); diff --git a/src/layout/Container/mapTimeSlider.vue b/src/layout/Container/mapTimeSlider.vue index 6d432075..20fc3abf 100644 --- a/src/layout/Container/mapTimeSlider.vue +++ b/src/layout/Container/mapTimeSlider.vue @@ -308,18 +308,20 @@ function updateTimeLabel(ctime: any) { EventBusTool.getEventBus().publish("playData", { key: "addyctqjsGis", data: res.result, + weatherType:params.weatherType }); }); - // 判定风场数据 + // // 判定风场数据 if (weathFlag[3] === true&&gisImgOpt.weatherType!=3) { - const params = { ...gisImgOpt, weatherType: 3, startTime: dataRequestOpt.value[currentHourDiff],hour:currentHourDiff }; - delete params.key; - delete params.endTime; - playbackSearchData(params, true, (res) => { + const params1 = { ...params, weatherType: 3 }; + delete params1.key; + delete params1.endTime; + playbackSearchData(params1, true, (res) => { // 往态势传递数据 EventBusTool.getEventBus().publish('playData', { key: 'addyctqjsGis', data: res.result, + weatherType:3 }); }); } diff --git a/src/layout/Container/meteorologyMenu.vue b/src/layout/Container/meteorologyMenu.vue index ca8d4617..efe2c27c 100644 --- a/src/layout/Container/meteorologyMenu.vue +++ b/src/layout/Container/meteorologyMenu.vue @@ -99,14 +99,19 @@ function handleIconClick(item: meteorologyItem) { key: "addyctqjsGis", data: res.result, animationType: 1, + weatherType:gisImgOpt.weatherType }); }); } else { - playbackSearchData(gisImgOpt, false, (res) => { + const params = { ...gisImgOpt }; + delete params.key; + delete params.endTime; + playbackSearchData(params, false, (res) => { // 往态势传递数据 EventBusTool.getEventBus().publish("playData", { key: "addyctqjsGis", data: res.result, + weatherType:gisImgOpt.weatherType }); }); } diff --git a/src/pages/tqybjs/index.vue b/src/pages/tqybjs/index.vue index e131a40f..850c6b2e 100644 --- a/src/pages/tqybjs/index.vue +++ b/src/pages/tqybjs/index.vue @@ -62,6 +62,7 @@ function weatherPreviewHandle(params: any) { key: 'addyctqjsGis', data: res.result, animationType: 1, + weatherType:gisImgOpt.weatherType }); dialogVisible.value = false; });