diff --git a/apps/web-antd/src/api/aiot/device/index.ts b/apps/web-antd/src/api/aiot/device/index.ts index dcfd94b39..bdb947304 100644 --- a/apps/web-antd/src/api/aiot/device/index.ts +++ b/apps/web-antd/src/api/aiot/device/index.ts @@ -232,9 +232,10 @@ export async function getSnapUrl(cameraCode: string, force = false): Promise( '/aiot/device/algorithm/list', + { params: deviceId ? { deviceId } : {} }, ); } @@ -246,6 +247,14 @@ export function saveAlgoGlobalParams(algoCode: string, globalParams: string) { ); } +/** 批量更新设备算法参数 */ +export function updateDeviceAlgoParams(deviceId: string, algoCode: string, params: string) { + return wvpRequestClient.post( + `/aiot/device/algorithm/device-binds/${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..ef4754811 100644 --- a/apps/web-antd/src/views/aiot/device/algorithm/index.vue +++ b/apps/web-antd/src/views/aiot/device/algorithm/index.vue @@ -1,5 +1,6 @@