|
@ -131,7 +131,12 @@ export default { |
|
|
this.$refs["form"].validate(valid => { |
|
|
this.$refs["form"].validate(valid => { |
|
|
if (valid) { |
|
|
if (valid) { |
|
|
sendAttribute({ |
|
|
sendAttribute({ |
|
|
"attributeParams": this.form.threshold, // 阈值 |
|
|
"attributeAndValues": [ |
|
|
|
|
|
{ |
|
|
|
|
|
"attributeIdentifier": "Value", |
|
|
|
|
|
"attributeValue": this.form.threshold |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
"deviceId": this.deviceId // 设备id |
|
|
"deviceId": this.deviceId // 设备id |
|
|
}).then(response => { |
|
|
}).then(response => { |
|
|
this.getAttributes(this.deviceId); // 根据设备id查找设备信息 |
|
|
this.getAttributes(this.deviceId); // 根据设备id查找设备信息 |
|
|