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