feasure
lld 2026-03-08 21:44:34 +08:00
parent 11feb967cc
commit 4ac3178b04
2 changed files with 9 additions and 9 deletions

View File

@ -365,7 +365,7 @@ export default {
handler(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.$emit(emitFunction, this.message);
this.$set(this.status, type, status);
//todo
// this.testAuto(type);

View File

@ -420,14 +420,13 @@ export default {
// 3.
if (tag==='ack' && msgData.prop && "suc" in 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 {
this.handleOtherContent(msgData,tag)
}
@ -471,7 +470,7 @@ export default {
var arr = ['jbk', "jbg", "jm1k", "jm1g", "jm2k", "jm2g", "jm3k", "jm3g","jlk","jlg"]
const allKeysNumeric = Object.keys(msgData).some(key => arr.includes(key));
if (allKeysNumeric) {
this.status = {...msgData}
// this.status = {...msgData}
Object.keys(msgData).forEach(key => {
const value = msgData[key];
this.show[key] = value === 0 ? '暂停' : '运行';