|
@ -164,6 +164,9 @@ export default { |
|
|
handleClickTabs() { }, |
|
|
handleClickTabs() { }, |
|
|
requestURL(functionId = 52, options = {}) { |
|
|
requestURL(functionId = 52, options = {}) { |
|
|
return new Promise((resolve, reject) => { |
|
|
return new Promise((resolve, reject) => { |
|
|
|
|
|
if (!this.dialogData.iotDeviceId) { |
|
|
|
|
|
reject(); |
|
|
|
|
|
} else { |
|
|
request |
|
|
request |
|
|
.post( |
|
|
.post( |
|
|
`business/device/functions/${this.dialogData.iotDeviceId}/${functionId}`, |
|
|
`business/device/functions/${this.dialogData.iotDeviceId}/${functionId}`, |
|
@ -176,6 +179,8 @@ export default { |
|
|
.catch((err) => { |
|
|
.catch((err) => { |
|
|
reject(); |
|
|
reject(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
}, |
|
|
}, |
|
|