From a7e6761ba0cfccdf33ed552eb2d3b783c8e4ab4a Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 16 Apr 2025 20:49:12 +0800
Subject: [PATCH] feat:事件弹窗显示调整
---
src/api/home/common.js | 35 +++++++++++++++++++++++++----------
1 files changed, 25 insertions(+), 10 deletions(-)
diff --git a/src/api/home/common.js b/src/api/home/common.js
index 367f845..d1b21fe 100644
--- a/src/api/home/common.js
+++ b/src/api/home/common.js
@@ -1,19 +1,11 @@
import request from '@/axios'
-// 字典查询 行业 算法 工单类型
-export const getDictionary = params => {
- return request({
- url: `/blade-system/dict-biz/listByCodes?code=${params}`,
- method: 'get',
- })
-}
-
// 区域
export const deptsByAreaCode = params => {
return request({
- url: `/blade-system/dept/deptsByAreaCode`,
+ url: `/blade-system/dept/deptsByAreaCode?areaCode=${params}`,
method: 'get',
- params,
+ params: {},
})
}
@@ -25,3 +17,26 @@
params,
})
}
+// 获取天气建议
+export const getDroneSuggest = params => {
+ return request({
+ url: `/drone-device-core/dp/home/getDroneSuggest`,
+ method: 'get',
+ params,
+ })
+}
+// 机巢搜索
+export const searchByKeyword = params => {
+ return request({
+ url: `/drone-device-core/map/amap/searchByKeyword?keyword=${params}`,
+ method: 'get',
+ })
+}
+// 地址搜索
+export const selectDeviceList = params => {
+ return request({
+ url: `/drone-device-core/manage/api/v1/devices/selectDeviceList`,
+ method: 'post',
+ params,
+ })
+}
--
Gitblit v1.9.3