From 058b78c3de405346496b8d8f03af17132a7d4aa2 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Wed, 22 Feb 2023 12:08:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=86=9C=E4=BA=8B=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=A7=8D=E6=A4=8D=E8=AE=A1=E5=88=92=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/massif/mana/farmRecord.vue | 1 + pages/massif/mana/plantPlan.vue | 7 +++++++ 2 files changed, 8 insertions(+) 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