bug
parent
11feb967cc
commit
4ac3178b04
|
|
@ -365,7 +365,7 @@ export default {
|
||||||
handler(newVal) {
|
handler(newVal) {
|
||||||
// 确保数据有值后执行方法
|
// 确保数据有值后执行方法
|
||||||
if (newVal) {
|
if (newVal) {
|
||||||
this.rollerParam.ventTotalLen = newVal;
|
this.rollerParam.autoTotalLen = newVal;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -662,6 +662,7 @@ export default {
|
||||||
this.message = JSON.stringify({[`${type}1`]: status})
|
this.message = JSON.stringify({[`${type}1`]: status})
|
||||||
|
|
||||||
this.$emit(emitFunction, this.message);
|
this.$emit(emitFunction, this.message);
|
||||||
|
this.$set(this.status, type, status);
|
||||||
//todo
|
//todo
|
||||||
// this.testAuto(type);
|
// this.testAuto(type);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -420,14 +420,13 @@ export default {
|
||||||
// 3. 区分“回执”和“其他内容”
|
// 3. 区分“回执”和“其他内容”
|
||||||
if (tag==='ack' && msgData.prop && "suc" in msgData) {
|
if (tag==='ack' && msgData.prop && "suc" in msgData) {
|
||||||
this.handleCommandAck(msgData);
|
this.handleCommandAck(msgData);
|
||||||
|
} else if (tag==='listener' && "msg" in msgData && "clientId" in msgData) {
|
||||||
|
if (mqttUtil.getMqttState().clientId === msgData.clientId) {
|
||||||
|
this.$modal.msg(
|
||||||
|
`${msgData.msg}`
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// else if (tag==='ack' && "msg" in msgData && "clientId" in msgData) {
|
|
||||||
// if (mqttUtil.getMqttState().clientId === msgData.clientId) {
|
|
||||||
// this.$modal.msg(
|
|
||||||
// `${msgData.msg}`
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
else {
|
else {
|
||||||
this.handleOtherContent(msgData,tag)
|
this.handleOtherContent(msgData,tag)
|
||||||
}
|
}
|
||||||
|
|
@ -471,7 +470,7 @@ export default {
|
||||||
var arr = ['jbk', "jbg", "jm1k", "jm1g", "jm2k", "jm2g", "jm3k", "jm3g","jlk","jlg"]
|
var arr = ['jbk', "jbg", "jm1k", "jm1g", "jm2k", "jm2g", "jm3k", "jm3g","jlk","jlg"]
|
||||||
const allKeysNumeric = Object.keys(msgData).some(key => arr.includes(key));
|
const allKeysNumeric = Object.keys(msgData).some(key => arr.includes(key));
|
||||||
if (allKeysNumeric) {
|
if (allKeysNumeric) {
|
||||||
this.status = {...msgData}
|
// this.status = {...msgData}
|
||||||
Object.keys(msgData).forEach(key => {
|
Object.keys(msgData).forEach(key => {
|
||||||
const value = msgData[key];
|
const value = msgData[key];
|
||||||
this.show[key] = value === 0 ? '暂停' : '运行';
|
this.show[key] = value === 0 ? '暂停' : '运行';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue