Browse Source

设备箱调用方法使用批量调用

develop
wangsixiang 1 week ago
parent
commit
7f4b54e458
  1. 16
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/SmartDevice/components/DeviceParams.vue

16
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 => {

Loading…
Cancel
Save