forked from drone/command-center-dashboard

shuishen
2025-04-16 a7e6761ba0cfccdf33ed552eb2d3b783c8e4ab4a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import request from '@/axios'
 
// 区域
export const deptsByAreaCode = params => {
    return request({
        url: `/blade-system/dept/deptsByAreaCode?areaCode=${params}`,
        method: 'get',
        params: {},
    })
}
 
// 获取机场信息
export const getDockInfo = params => {
    return request({
        url: `/drone-device-core/dp/home/getDockInfo`,
        method: 'get',
        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,
    })
}