From e735cd642f198753ee788ba1c7a45385b251ce7b Mon Sep 17 00:00:00 2001 From: sunmeng <1162067978@qq.com> Date: Thu, 19 Dec 2024 09:19:23 +0800 Subject: [PATCH] 1 --- pages/fertilizer_machine/fertilizer_machine.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/pages/fertilizer_machine/fertilizer_machine.vue b/pages/fertilizer_machine/fertilizer_machine.vue index 059bb75..b5dae45 100644 --- a/pages/fertilizer_machine/fertilizer_machine.vue +++ b/pages/fertilizer_machine/fertilizer_machine.vue @@ -83,9 +83,10 @@ - + - {{index+1}}#灌溉组 + + {{item}} 设置 @@ -289,6 +290,7 @@ timer_: null, readFs_byid_name_obj:{}, + readFs_byid_name_list:[], readFs_byid_list:[ 'solenoidOne', 'solenoidTwo', @@ -396,6 +398,9 @@ }).then(res=>{ if(res.code == 200){ this.readFs_byid_name_obj = res.data; + this.readFs_byid_list.forEach((el,j)=>{ + this.readFs_byid_name_list[j]=this.readFs_byid_name_obj[el] + }) } }) }, @@ -759,6 +764,7 @@ if(index == (j+1)){ this.readFs_byid_name = this.readFs_byid_name_obj[el] } + }) },