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 @@