From c31bb5010893cf4143c6490d912732b7ab6ddfdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=86=AF=E5=B0=91=E5=BA=B7?= <2496371772@qq.com> Date: Wed, 29 Jul 2026 17:47:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A9=E6=B0=94=E9=A2=84=E6=8A=A5=E6=A8=A1?= =?UTF-8?q?=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/language/zh.json | 3 +- src/pages/tqybjs/index.vue | 5 +- src/pages/tqybjs/tab-2/index.vue | 437 ++++++++++++++++++--------- src/pages/tqybjs/tab-3/index.vue | 456 +++++++++-------------------- src/utils/axios/tqyb/data/index.ts | 53 ++++ 5 files changed, 501 insertions(+), 453 deletions(-) diff --git a/src/locales/language/zh.json b/src/locales/language/zh.json index e57d6fbe..30068c91 100644 --- a/src/locales/language/zh.json +++ b/src/locales/language/zh.json @@ -274,6 +274,7 @@ "monitoringData": "监测数据", "ImportMonitoringData": "导入监测数据", "pinToTop": "置顶", - "unpin": "取消置顶" + "unpin": "取消置顶", + "executeAssociation":"执行关联" } diff --git a/src/pages/tqybjs/index.vue b/src/pages/tqybjs/index.vue index ee7ead86..cc0130cd 100644 --- a/src/pages/tqybjs/index.vue +++ b/src/pages/tqybjs/index.vue @@ -5,7 +5,7 @@ import { gisImgOpt, tqycAnimationType, weathFlag } from '@/gis/ol/index'; import { playbackSearchData, weatherDataLine, weatherPreview } from '@/utils/axios/tqyb/data/index'; import tab1 from './tab-1/index.vue'; import tab2 from './tab-2/index.vue'; -// import tab3 from './tab-3/index.vue'; +import tab3 from './tab-3/index.vue'; import WindRose from './WindRose.vue'; const { t } = useI18n(); @@ -50,6 +50,7 @@ function handleSendData(params: any) { console.log('选中的回放数据,需要传至gis --->', params); delete params.key delete params.endTime + params.hour+=6; playbackSearchData(params, false, (res) => { console.log(res); // 将请求前的传递方法放到这里:只有请求成功后才会传递 @@ -239,7 +240,7 @@ onMounted(() => { - + diff --git a/src/pages/tqybjs/tab-2/index.vue b/src/pages/tqybjs/tab-2/index.vue index 9760e67c..7328f829 100644 --- a/src/pages/tqybjs/tab-2/index.vue +++ b/src/pages/tqybjs/tab-2/index.vue @@ -1,16 +1,33 @@ @@ -323,20 +398,50 @@ getList();
- + - - + + + + + - - {{ t('search') }} + + {{ t("search") }} - + @@ -361,7 +466,12 @@ getList();
- + - diff --git a/src/pages/tqybjs/tab-3/index.vue b/src/pages/tqybjs/tab-3/index.vue index 9cf2c637..1e860f65 100644 --- a/src/pages/tqybjs/tab-3/index.vue +++ b/src/pages/tqybjs/tab-3/index.vue @@ -1,343 +1,173 @@ - diff --git a/src/utils/axios/tqyb/data/index.ts b/src/utils/axios/tqyb/data/index.ts index 68628987..cf63806f 100644 --- a/src/utils/axios/tqyb/data/index.ts +++ b/src/utils/axios/tqyb/data/index.ts @@ -235,3 +235,56 @@ export async function importFile( } // 127.0.0.1:9999/weatherData/getDataLine?startTime=2025-07-31 00:00:00&endTime=2025-07-31 18:00:00&longitude=1&latitude=1&dataType=1 +/** + * 公开气象数据,通过数据类型来查询批次 + */ +export async function getPcValueBySjlx( + params: any, + callback?: (data: any) => void, +): Promise { + const response = await request({ + url: `${serverIp}${baseURL}/weatherData/getTimeBatch`, + method: 'GET', + params, + }); + + if (response.success && response.code === 200) { + callback?.(response); + } +} + +/** + * 执行关联 + */ +export async function getZxglData( + params: any, + callback?: (data: any) => void, +): Promise { + const response = await request({ + url: `${serverIp}${baseURL}/weatherData/linkedData`, + method: 'PUT', + params, + }); + + if (response.success && response.code === 200) { + callback?.(response); + } +} + +/** + * 查询关联气象数据日志 + */ +export async function getGlqxsjRzData( + params: any, + callback?: (data: any) => void, +): Promise { + const response = await request({ + url: `${serverIp}${baseURL}/weatherData/getLinkedDataLog`, + method: 'GET', + params, + }); + + if (response.success && response.code === 200) { + callback?.(response); + } +} \ No newline at end of file