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({
url:`/pages/massif/add_farming?plotId=${this.plotId}`,
events:{update: e=>{
this.$provise.emit('addFarming')
this.total=0
this.list=[]
this.searchVal.pageNo=1

7
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')
}
}
</script>
Loading…
Cancel
Save