Browse Source

新增农事 更新种植计划列表

master
邓宏 2 years ago
parent
commit
058b78c3de
  1. 1
      pages/massif/mana/farmRecord.vue
  2. 7
      pages/massif/mana/plantPlan.vue

1
pages/massif/mana/farmRecord.vue

@ -157,6 +157,7 @@ export default {
uni.navigateTo({ uni.navigateTo({
url:`/pages/massif/add_farming?plotId=${this.plotId}`, url:`/pages/massif/add_farming?plotId=${this.plotId}`,
events:{update: e=>{ events:{update: e=>{
this.$provise.emit('addFarming')
this.total=0 this.total=0
this.list=[] this.list=[]
this.searchVal.pageNo=1 this.searchVal.pageNo=1

7
pages/massif/mana/plantPlan.vue

@ -187,6 +187,10 @@ export default {
}, },
created(){ created(){
this.search() this.search()
this.$provise.on('addFarming',()=>{
this.clean()
this.search()
})
}, },
methods:{ methods:{
clean(){ clean(){
@ -321,6 +325,9 @@ export default {
} }
}) })
}, },
},
destroyed(){
this.$provise.off('addFarming')
} }
} }
</script> </script>
Loading…
Cancel
Save