From 2592dc279ec82bf3649a4dbe644c6416263a10ef Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 07 三月 2025 17:10:25 +0800 Subject: [PATCH] 各模块功能新增 --- src/api/gridApi.js | 59 ++++++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 38 insertions(+), 21 deletions(-) diff --git a/src/api/gridApi.js b/src/api/gridApi.js index 76945ad..8abfe14 100644 --- a/src/api/gridApi.js +++ b/src/api/gridApi.js @@ -5,10 +5,11 @@ * 鍗槦閬ユ祴缃戞牸鐩稿叧鎺ュ彛API */ export default { - fetchGridGroup(area, page, perPage) { + fetchGridGroup(area, type, page, perPage) { return $http .post(`air/satellite/grid/group`, area, { params: { + type, page: page, per_page: perPage } @@ -27,9 +28,6 @@ }, /** - * - * - * * 鑾峰彇缃戞牸缁勪笅鐨勯仴娴嬫暟鎹� * @param {*} groupId * @param {*} dataTime @@ -48,22 +46,22 @@ .then((res) => res.data); }, - /** - * 鑾峰彇缃戞牸缁勪笅鐨勯仴娴媋od - * @param {*} groupId - * @param {*} dataTime - * @returns - */ - fetchGridAod(groupId, dataTime) { - return $http - .get(`air/satellite/grid/aod`, { - params: { - groupId, - dataTime - } - }) - .then((res) => res.data); - }, + // /** + // * 鑾峰彇缃戞牸缁勪笅鐨勯仴娴媋od + // * @param {*} groupId + // * @param {*} dataTime + // * @returns + // */ + // fetchGridAod(groupId, dataTime) { + // return $http + // .get(`air/satellite/grid/aod`, { + // params: { + // groupId, + // dataTime + // } + // }) + // .then((res) => res.data); + // }, fetchGridDataDetail(dataId, groupId, cellId) { return $http @@ -76,6 +74,19 @@ }) .then((res) => res.data); }, + + createGridDataAndDataDetail(groupId, dataTime, dataDetailList) { + return $http + .post(`air/satellite/grid/data/create`, { + params: { + groupId, + dataTime + }, + data: dataDetailList + }) + .then((res) => res.data); + }, + downloadTemplate() { return $http .get(`air/satellite/import/grid/data/download/template`, { @@ -132,4 +143,10 @@ .post(`air/satellite/grid/data/mix`, dataIdList) .then((res) => res.data); }, -}; \ No newline at end of file + + buildUnderwayProduct(missionCode, groupId) { + return $http.get(`air/satellite/import/grid/aod/download/template`, { + responseType: 'blob' + }); + } +}; -- Gitblit v1.9.3