From 9ca85dc3bd39864daf9528d746f4bc6a0963a4c0 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 17 四月 2025 14:05:44 +0800
Subject: [PATCH] 完成走航融合模块

---
 src/api/gridApi.js |   48 +++++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 43 insertions(+), 5 deletions(-)

diff --git a/src/api/gridApi.js b/src/api/gridApi.js
index 83a8c4d..4d971b1 100644
--- a/src/api/gridApi.js
+++ b/src/api/gridApi.js
@@ -46,6 +46,29 @@
       .then((res) => res.data);
   },
 
+  /**
+   * 鑾峰彇缃戞牸缁勪笅鐨勯仴娴嬫暟鎹�
+   * @param {*} gridData 缃戞牸鏁版嵁
+   * @returns
+   */
+  fetchGridData2(gridData) {
+    return $http
+      .post(`air/satellite/grid/data2`, gridData)
+      .then((res) => res.data);
+  },
+
+  /**
+   * 鍒犻櫎缃戞牸鏁版嵁
+   * @param {Number} dataId 鏁版嵁id
+   */
+  deleteGridData(dataId) {
+    return $http
+      .delete(`air/satellite/grid/data/delete`, {
+        params: { dataId }
+      })
+      .then((res) => res.data);
+  },
+
   // /**
   //  * 鑾峰彇缃戞牸缁勪笅鐨勯仴娴媋od
   //  * @param {*} groupId
@@ -144,10 +167,25 @@
       .then((res) => res.data);
   },
 
-  buildUnderwayProduct(missionCode, groupId) {
-    return $http.get(`air/satellite/import/grid/aod/download/template`, {
-      responseType: 'blob'
-    });
+  /**
+   * 鐢熸垚璧拌埅缃戞牸铻嶅悎璁板綍
+   * @param {*} gridData
+   * @returns
+   */
+  buildUnderwayProduct(gridData) {
+    return $http
+      .post(`air/satellite/product/underway/build`, gridData)
+      .then((res) => res.data);
+  },
+
+  mixUnderwayGridData(groupId, dataIdList) {
+    return $http
+      .post(`air/satellite/product/underway/mix`, dataIdList, {
+        params: {
+          groupId
+        }
+      })
+      .then((res) => res.data);
   },
 
   buildUnderwayHeatmap(groupId, gridDataDetailList, searchLength) {
@@ -158,7 +196,7 @@
         {
           params: {
             groupId: groupId,
-            searchLength: 4
+            searchLength: searchLength
           }
         }
       )

--
Gitblit v1.9.3