From 03d381567bca4941fc52ecb509e5e0c21c65c7dc Mon Sep 17 00:00:00 2001 From: 16337 <1633794139@qq.com> Date: Fri, 10 Apr 2026 11:26:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E9=80=A0:=20=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E6=8C=89=E8=AE=BE=E5=A4=87=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web-antd/src/api/aiot/device/index.ts | 16 +- .../src/views/aiot/device/algorithm/index.vue | 216 ++++++++++++++++-- 2 files changed, 216 insertions(+), 16 deletions(-) diff --git a/apps/web-antd/src/api/aiot/device/index.ts b/apps/web-antd/src/api/aiot/device/index.ts index dcfd94b39..8b4130180 100644 --- a/apps/web-antd/src/api/aiot/device/index.ts +++ b/apps/web-antd/src/api/aiot/device/index.ts @@ -231,10 +231,12 @@ export async function getSnapUrl(cameraCode: string, force = false): Promise( '/aiot/device/algorithm/list', + { params }, ); } @@ -246,6 +248,16 @@ export function saveAlgoGlobalParams(algoCode: string, globalParams: string) { ); } +/** 获取设备级算法参数 */ +export function getDeviceAlgoParams(deviceId: string) { + return wvpRequestClient.get(`/aiot/device/algorithm/device-params/${deviceId}`); +} + +/** 保存设备级算法参数 */ +export function saveDeviceAlgoParams(deviceId: string, algoCode: string, params: string) { + return wvpRequestClient.post(`/aiot/device/algorithm/device-params/${deviceId}/${algoCode}`, { params }); +} + // ==================== 算法绑定 ==================== /** 绑定算法到 ROI */ diff --git a/apps/web-antd/src/views/aiot/device/algorithm/index.vue b/apps/web-antd/src/views/aiot/device/algorithm/index.vue index 13a7c01ac..67bf87e18 100644 --- a/apps/web-antd/src/views/aiot/device/algorithm/index.vue +++ b/apps/web-antd/src/views/aiot/device/algorithm/index.vue @@ -1,7 +1,8 @@