逻辑复原
parent
9b29f5e7fb
commit
9dfc035915
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue