From de6fd089b37613808e5a3bef38ecc0761f7456e0 Mon Sep 17 00:00:00 2001
From: Riku <risaku@163.com>
Date: 星期日, 02 三月 2025 22:07:47 +0800
Subject: [PATCH] AOD数据产品

---
 src/api/gridApi.js |   53 ++++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 36 insertions(+), 17 deletions(-)

diff --git a/src/api/gridApi.js b/src/api/gridApi.js
index 696411f..2e9469f 100644
--- a/src/api/gridApi.js
+++ b/src/api/gridApi.js
@@ -45,22 +45,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
@@ -73,6 +73,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`, {
@@ -122,5 +135,11 @@
     return $http
       .post(`air/satellite/import/grid/aod`, dataForm)
       .then((res) => res.data);
+  },
+
+  mixGridData(dataIdList) {
+    return $http
+      .post(`air/satellite/grid/data/mix`, dataIdList)
+      .then((res) => res.data);
   }
-};
\ No newline at end of file
+};

--
Gitblit v1.9.3