diff --git a/pages/massif/add_farming.vue b/pages/massif/add_farming.vue index 8c39295..bd5d3e2 100644 --- a/pages/massif/add_farming.vue +++ b/pages/massif/add_farming.vue @@ -214,7 +214,7 @@ ({value:v.label,label:v.label})) - }else{ - uni.showModal({ - title:"提示", - content:res.msg||"获取农事类型失败!", - showCancel:false, - }) - } + this.formData.pests='' } } }, @@ -451,7 +432,7 @@ export default { //选择病虫害名称 pestsFun(){ uni.navigateTo({ - url:`/pages/massif/pestType?type=${({"病害":"disease","虫害":"pestis"})[this.formData.pestsType]}`, + url:`/pages/massif/pestType?type=${({"病害":"disease","虫害":"pestis"})[this.formData.pestsType]||''}&plantType=${this.massif.plantType}`, events:{type:e=>{ this.formData.pests=e.map(v=>v).join(',') }},