diff --git a/pages/home/control/automatic.vue b/pages/home/control/automatic.vue index 7c9cd5f..185a37f 100644 --- a/pages/home/control/automatic.vue +++ b/pages/home/control/automatic.vue @@ -673,7 +673,6 @@ export default { this.message = JSON.stringify({[`${type}1`]: status}) this.$emit(emitFunction, this.message); - this.$set(this.status, type, status); //todo // this.testAuto(type); diff --git a/pages/home/control/index.vue b/pages/home/control/index.vue index 2952d02..8cdae12 100644 --- a/pages/home/control/index.vue +++ b/pages/home/control/index.vue @@ -474,7 +474,7 @@ export default { const allKeysNumeric = Object.keys(msgData).some(key => arr.includes(key)); if (allKeysNumeric) { //todo - // this.status = {...msgData} + this.status = {...msgData} Object.keys(msgData).forEach(key => { const value = msgData[key]; this.show[key] = value === 0 ? '暂停' : '运行'; @@ -527,7 +527,6 @@ export default { confirmText: '确定', success: (res) => { if (res.confirm) { - // todo 修改大棚模式 switchAgriMode(this.imei, {code:(mode?1:0)}).then(response => { if (response.code===200) { this.currentMode = mode