无人机管理后台前端(已迁走)
shuishen
2025-05-19 2dfc8dc4bcd3d3cd4aed1b6054e073e140eba9c8
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
/*
 * @Author: shuishen 1109946754@qq.com
 * @Date: 2024-09-13 20:01:59
 * @LastEditors: shuishen 1109946754@qq.com
 * @LastEditTime: 2024-09-13 20:08:09
 * @FilePath: \drone-web-manage\src\api\device-setting\index.js
 * @Description:
 *
 * Copyright (c) 2024 by shuishen, All Rights Reserved.
 */
import request from '@/axios'
 
import { ELocalStorageKey } from '@/types'
 
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, param) => {
  return request({
    // /manage/api/v1/devices/selectDevicePage
    // url: `/localApi/manage/api/v1/devices/${workspaceId}/devices/${deviceSn}/setThermalCurrentPaletteStyle`,
    url: `/drone-device-core/manage/api/v1/devices/${workspaceId}/devices/${deviceSn}/setThermalCurrentPaletteStyle`,
    method: 'put',
    data: param,
  })
}