| | |
| | | * |
| | | * Copyright (c) 2024 by shuishen, All Rights Reserved. |
| | | */ |
| | | import request from '@/axios'; |
| | | import request from '@/axios' |
| | | |
| | | import { ELocalStorageKey } from '@/types'; |
| | | import { ELocalStorageKey } from '@/types' |
| | | |
| | | const workspaceId = localStorage.getItem(ELocalStorageKey.WorkspaceId) || ''; |
| | | const workspaceId = localStorage.getItem(ELocalStorageKey.WorkspaceId) || '' |
| | | |
| | | export const putDeviceProps = (deviceSn, body) => { |
| | | return request({ |
| | | url: `/drone-device-core/manage/api/v1/devices/${workspaceId}/devices/${deviceSn}/property`, |
| | | method: 'put', |
| | | body, |
| | | }); |
| | | }; |
| | | }) |
| | | } |
| | | /** |
| | | * 设置调色盘 |
| | | * @param {机场编码} deviceSn |
| | | * @param {*} body |
| | | * @returns |
| | | */ |
| | | export const setThermalCurrentPaletteStyle = (deviceSn, workspaceId, body) => { |
| | | return request({ |
| | | // /manage/api/v1/devices/selectDevicePage |
| | | url: `/drone-device-core/manage/api/v1/devices/${workspaceId}/devices/${deviceSn}/setThermalCurrentPaletteStyle`, |
| | | method: 'put', |
| | | body, |
| | | }) |
| | | } |