From b7e14faaf969600d8b41b6ed2095d66d37326c93 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 17 Apr 2025 21:38:00 +0800
Subject: [PATCH] 调试盘

---
 src/api/device-setting/index.js |   24 +++++++++++++++++++-----
 1 files changed, 19 insertions(+), 5 deletions(-)

diff --git a/src/api/device-setting/index.js b/src/api/device-setting/index.js
index f917683..07f2d84 100644
--- a/src/api/device-setting/index.js
+++ b/src/api/device-setting/index.js
@@ -8,16 +8,30 @@
  *
  * 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,
+  })
+}

--
Gitblit v1.9.3