From 77186703dc5ff7b55ba4d0d9a36cc982a8398e7f Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Mon, 18 Nov 2024 14:59:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=9C=E4=BA=8B=E6=93=8D=E4=BD=9C=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=97=85=E8=99=AB=E5=AE=B3=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/massif/add_farming.vue | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) 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(',') }},