@ -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
@ -187,6 +187,10 @@ export default {
},
created(){
this.search()
this.$provise.on('addFarming',()=>{
this.clean()
})
methods:{
clean(){
@ -321,6 +325,9 @@ export default {
}
destroyed(){
this.$provise.off('addFarming')
</script>