From 97f637845ae1cdd88b89c1782232ca496097231f Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Wed, 13 Sep 2023 18:34:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=86=9C=E4=BA=8B=20?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=97=85=E8=99=AB=E5=AE=B3=E6=9C=AC=E5=9C=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/massif/add_farming.vue | 29 +++++++++++++++++++++++++++-- pages/massif/agrSpecs.vue | 1 - pages/massif/pestType.vue | 10 +++++----- 3 files changed, 32 insertions(+), 8 deletions(-) diff --git a/pages/massif/add_farming.vue b/pages/massif/add_farming.vue index 3da6249..d3d1427 100644 --- a/pages/massif/add_farming.vue +++ b/pages/massif/add_farming.vue @@ -203,15 +203,19 @@ - + + { + this.formData.pests=e.map(v=>v).join(',') + }}, + success:res=>{ + res.eventChannel.emit('ids',this.formData?.pests?.split?.(',')?.filter(v=>v)||[]) + } + }) + }, //添加病虫害记录 toPestRecord(){ uni.navigateTo({ diff --git a/pages/massif/agrSpecs.vue b/pages/massif/agrSpecs.vue index d4b17dc..78625c6 100644 --- a/pages/massif/agrSpecs.vue +++ b/pages/massif/agrSpecs.vue @@ -220,7 +220,6 @@ export default { } }, async onLoad(options){ - window.the=this this.eventChannel=this.getOpenerEventChannel() this.eventChannel.on("detail", e=>{ this.agrDetail=e diff --git a/pages/massif/pestType.vue b/pages/massif/pestType.vue index 92c51ca..3547b78 100644 --- a/pages/massif/pestType.vue +++ b/pages/massif/pestType.vue @@ -91,7 +91,7 @@