谁控制谁展示设备是否执行成功
parent
f2f890da09
commit
44a3e4f20d
|
|
@ -522,7 +522,7 @@ export default {
|
|||
success: (res) => {
|
||||
if (res.confirm) {
|
||||
// 组装消息
|
||||
this.message = JSON.stringify({[type]: status})
|
||||
this.message = JSON.stringify({[`${type}1}`]: status})
|
||||
// 控制设备
|
||||
this.publishMessage();
|
||||
// 设备回执
|
||||
|
|
@ -599,8 +599,11 @@ export default {
|
|||
|
||||
this.deviceType = '';
|
||||
// ========== 修改:自动停止指令不弹窗 ==========
|
||||
this.$modal.msgSuccess("设备操作成功!");
|
||||
|
||||
if (ackData.clientId && (ackData.clientId===mqttUtil.getMqttState().clientId)) {
|
||||
this.$modal[isSuccess ? 'msgSuccess' : 'msgError'](
|
||||
`设备操作${isSuccess ? "成功" : "失败"}!`
|
||||
);
|
||||
}
|
||||
console.log(`指令[${commandField}=${commandValue}]执行${isSuccess ? "成功" : "失败"}`);
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue