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 @@
- +