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= // https://www.yuque.com/dayuanzhong-ovjwn/gkht0m/ww776d5kzs72ilzh?singleDoc=
request({ request({
url: `/business/device/functions/${this.dialogData.iotDeviceId}/${102}`, url: `/business/device/batchFunctions`,
method: "POST", method: "POST",
data: { data: {
deviceName, devices: [{
// 1=0= iotDeviceId: this.dialogData.iotDeviceId,
value: value ? 1 : 0 id: this.dialogData.id,
deviceType: 13
}],
functions: [
{
functionId: "102",
params: {value: value ? 1 : 0,deviceName}
}
],
} }
}) })
.then(result => { .then(result => {

Loading…
Cancel
Save