|
|
@ -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({ |
|
|
|