逻辑复原
parent
9b29f5e7fb
commit
9dfc035915
|
|
@ -673,7 +673,6 @@ 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);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -474,7 +474,7 @@ export default {
|
||||||
const allKeysNumeric = Object.keys(msgData).some(key => arr.includes(key));
|
const allKeysNumeric = Object.keys(msgData).some(key => arr.includes(key));
|
||||||
if (allKeysNumeric) {
|
if (allKeysNumeric) {
|
||||||
//todo
|
//todo
|
||||||
// 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 ? '暂停' : '运行';
|
||||||
|
|
@ -527,7 +527,6 @@ export default {
|
||||||
confirmText: '确定',
|
confirmText: '确定',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
if (res.confirm) {
|
if (res.confirm) {
|
||||||
// todo 修改大棚模式
|
|
||||||
switchAgriMode(this.imei, {code:(mode?1:0)}).then(response => {
|
switchAgriMode(this.imei, {code:(mode?1:0)}).then(response => {
|
||||||
if (response.code===200) {
|
if (response.code===200) {
|
||||||
this.currentMode = mode
|
this.currentMode = mode
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue