From c0d51010b90cf0515c9a81692d75c9a885020935 Mon Sep 17 00:00:00 2001 From: wzy-warehouse <18135009705@163.com> Date: Mon, 18 May 2026 10:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B0=94=E8=B1=A1=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E7=9B=B8=E5=85=B3=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/api.ts | 15 -- src/api/meteorology.ts | 14 -- .../detail-panels/RainfallGridComponent.vue | 144 +----------------- 3 files changed, 1 insertion(+), 172 deletions(-) delete mode 100644 src/api/meteorology.ts diff --git a/src/api/api.ts b/src/api/api.ts index 190b4c5..ddeca55 100644 --- a/src/api/api.ts +++ b/src/api/api.ts @@ -55,9 +55,6 @@ import type { XianSchool } from '@/types/base/XianSchool'; import type { XianBridge } from '@/types/base/XianBridge.ts'; import type { XianReservoirList } from '@/types/base/XianReservoirList'; import type { XianSubwayStations } from '@/types/base/XianSubwayStations'; -import type { RainfallGridRequest } from '@/types/rainstorm/RainfallGridRequest'; -import type { RainfallGridResponse } from '@/types/rainstorm/RainfallGridResponse'; -import { getRainfallGrid } from './meteorology'; /** * API接口统一导出对象 @@ -280,16 +277,4 @@ export const $api = { ): Promise> => getSubwayStationsPointDetailById(id), }, - - // 气象信息 - meteorology: { - /** - * 获取网格天气信息 - * @param request - 请求参数 - * @returns 网格天气信息 - */ - getRainfallGrid: ( - request: RainfallGridRequest - ): Promise> => getRainfallGrid(request), - }, }; diff --git a/src/api/meteorology.ts b/src/api/meteorology.ts deleted file mode 100644 index 574ae7f..0000000 --- a/src/api/meteorology.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type { ApiResponse } from '@/types/ApiResponse'; -import type { RainfallGridRequest } from '@/types/rainstorm/RainfallGridRequest'; -import type { RainfallGridResponse } from '@/types/rainstorm/RainfallGridResponse'; -import httpInstance from '@/utils/request/http'; - -/** - * 获取降雨栅格数据 - * @returns 降雨栅格数据 - */ -export const getRainfallGrid = ( - request: RainfallGridRequest -): Promise> => { - return httpInstance.post('/algorithm-api/rainfall/grid', request); -}; diff --git a/src/component/rain-earthquake/detail-panels/RainfallGridComponent.vue b/src/component/rain-earthquake/detail-panels/RainfallGridComponent.vue index 1467cd4..41cde71 100644 --- a/src/component/rain-earthquake/detail-panels/RainfallGridComponent.vue +++ b/src/component/rain-earthquake/detail-panels/RainfallGridComponent.vue @@ -3,148 +3,6 @@
- +