Browse Source

选择虫害 修改标签字段

master
邓宏 2 years ago
parent
commit
23e164c966
  1. 2
      pages/massif/pestType.vue

2
pages/massif/pestType.vue

@ -164,7 +164,7 @@ export default {
params:{code:"B09"}
})
if(res.statu){
this.cropList=res.data.map(v=>({...v,children:v?.children?.length>0?v.children:[{label:"全部",value:v.pest}]}))
this.cropList=res.data.map(v=>({...v,children:v?.children?.length>0?v.children:[{label:"全部",value:v.pest.map(v=>({name:v.label,id:v.id}))}]}))
this.agrSearch(res.data[0]?.children?.[0]?.value||"")
}else{
uni.showModal({

Loading…
Cancel
Save