diff --git a/pages/massif/mana/farmRecord.vue b/pages/massif/mana/farmRecord.vue index 68ca50a..016e641 100644 --- a/pages/massif/mana/farmRecord.vue +++ b/pages/massif/mana/farmRecord.vue @@ -157,6 +157,7 @@ export default { uni.navigateTo({ url:`/pages/massif/add_farming?plotId=${this.plotId}`, events:{update: e=>{ + this.$provise.emit('addFarming') this.total=0 this.list=[] this.searchVal.pageNo=1 diff --git a/pages/massif/mana/plantPlan.vue b/pages/massif/mana/plantPlan.vue index 311a1fa..c526f86 100644 --- a/pages/massif/mana/plantPlan.vue +++ b/pages/massif/mana/plantPlan.vue @@ -187,6 +187,10 @@ export default { }, created(){ this.search() + this.$provise.on('addFarming',()=>{ + this.clean() + this.search() + }) }, methods:{ clean(){ @@ -321,6 +325,9 @@ export default { } }) }, + }, + destroyed(){ + this.$provise.off('addFarming') } } \ No newline at end of file