wx-program
sunmeng 2024-12-19 09:19:23 +08:00
parent 61e56c6e6c
commit e735cd642f
1 changed files with 8 additions and 2 deletions

View File

@ -83,9 +83,10 @@
</view> </view>
<view class="set"> <view class="set">
<view class="item" v-for="(item,index) in 16" :key="index" @click="showPop(index+1)"> <view class="item" v-for="(item,index) in readFs_byid_name_list" :key="index" @click="showPop(index+1)">
<view class="left"> <view class="left">
{{index+1}}#灌溉组 <!-- {{index+1}}#灌溉组 -->
{{item}}
</view> </view>
<view class="right"> <view class="right">
<text>设置</text> <text>设置</text>
@ -289,6 +290,7 @@
timer_: null, timer_: null,
readFs_byid_name_obj:{}, readFs_byid_name_obj:{},
readFs_byid_name_list:[],
readFs_byid_list:[ readFs_byid_list:[
'solenoidOne', 'solenoidOne',
'solenoidTwo', 'solenoidTwo',
@ -396,6 +398,9 @@
}).then(res=>{ }).then(res=>{
if(res.code == 200){ if(res.code == 200){
this.readFs_byid_name_obj = res.data; 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)){ if(index == (j+1)){
this.readFs_byid_name = this.readFs_byid_name_obj[el] this.readFs_byid_name = this.readFs_byid_name_obj[el]
} }
}) })
}, },