From 87e19b5a396ac8fed6a551828b87d263f6425c31 Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期四, 16 十月 2025 10:26:12 +0800
Subject: [PATCH] 2025.10.16 修改季度报告生成逻辑
---
src/api/sceneInfoApi.js | 23 ++++++++++++++++++-----
1 files changed, 18 insertions(+), 5 deletions(-)
diff --git a/src/api/sceneInfoApi.js b/src/api/sceneInfoApi.js
index 56cbbc6..e412d46 100644
--- a/src/api/sceneInfoApi.js
+++ b/src/api/sceneInfoApi.js
@@ -1,14 +1,27 @@
import { $http } from './index';
/**
- *
+ * 鍦烘櫙淇℃伅API鎺ュ彛
*/
export default {
+ /**
+ * 鏌ユ壘琛屾斂鍖哄垝鑼冨洿鍐呯殑鏌愮被鍦烘櫙
+ * @param {Object} area
+ * @returns
+ */
searchScene(area) {
return $http.post(`scene/find`, area).then((res) => res.data);
- }
+ },
- // searchByCoordinate({lng, lat, radius}) {
- // return $http.post(`scene/find/radius`, mission).then((res) => res.data);
- // },
+ /**
+ * 鏌ユ壘鍗婂緞鑼冨洿鍐呯殑鍦烘櫙
+ * @param {Number} lng 缁忓害锛岄珮寰峰湴鍥撅紙鐏槦鍧愭爣绯伙級
+ * @param {Number} lat 缁村害锛岄珮寰峰湴鍥撅紙鐏槦鍧愭爣绯伙級
+ * @param {Number} radius 鍗婂緞锛屽崟浣嶇背
+ * @returns
+ */
+ searchByCoordinate(lng, lat, radius) {
+ let param = `?lng=${lng}&lat=${lat}&radius=${radius}`;
+ return $http.post(`scene/find/radius${param}`).then((res) => res.data);
+ }
};
--
Gitblit v1.9.3