diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue index 9f650c88..750aebdb 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue @@ -166,12 +166,20 @@ export default { // https://www.yuque.com/dayuanzhong-ovjwn/gkht0m/ww776d5kzs72ilzh?singleDoc= request({ - url: `/business/device/functions/${this.dialogData.iotDeviceId}/${102}`, + url: `/business/device/batchFunctions`, method: "POST", data: { - deviceName, - // 开关:1=打开,0=关闭 - value: value ? 1 : 0 + devices: [{ + iotDeviceId: this.dialogData.iotDeviceId, + id: this.dialogData.id, + deviceType: 13 + }], + functions: [ + { + functionId: "102", + params: {value: value ? 1 : 0,deviceName} + } + ], } }) .then(result => {