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