|
|
@ -103,7 +103,7 @@ |
|
|
|
<view class="items"> |
|
|
|
<text :class="{active:select==v}" v-for="(v,k) in list" :key="k" @click="select=v">{{v}}</text> |
|
|
|
</view> |
|
|
|
<u-empty :show="list.length<=0" text=" " width="70%" icon="/static/noData.png"/> |
|
|
|
<u-empty :show="list.length<=0" text="为查询到相关信息" width="70%" icon="/static/noData.png"/> |
|
|
|
</scroll-view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -139,7 +139,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:'all'}]})) |
|
|
|
this.cropList=res.data.map(v=>({...v,children:v?.children?.length>0?v.children:[{label:"全部",value:'all'}]})) |
|
|
|
this.agrSearch(res.data[0]?.children?.[0]?.value||"") |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
|