wx-program
parent
61e56c6e6c
commit
e735cd642f
|
@ -83,9 +83,10 @@
|
|||
</view>
|
||||
|
||||
<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">
|
||||
{{index+1}}#灌溉组
|
||||
<!-- {{index+1}}#灌溉组 -->
|
||||
{{item}}
|
||||
</view>
|
||||
<view class="right">
|
||||
<text>设置</text>
|
||||
|
@ -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]
|
||||
}
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue