| | |
| | | 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: {}, |
| | | }) |
| | | } |
| | | |
| | |
| | | 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 = data => { |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/devices/selectDeviceList`, |
| | | method: 'post', |
| | | data: data, |
| | | }) |
| | | } |