|
|
@ -310,7 +310,7 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
...mapGetters(['bookingList', 'needSavePages'])
|
|
|
|
...mapGetters(['bookingList', 'needSavePages', 'hasbookingDetail'])
|
|
|
|
},
|
|
|
|
},
|
|
|
|
created() {
|
|
|
|
created() {
|
|
|
|
// console.log('== 详情页 - created ==')
|
|
|
|
// console.log('== 详情页 - created ==')
|
|
|
@ -390,7 +390,6 @@ export default {
|
|
|
|
}, 800)
|
|
|
|
}, 800)
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
|
beforeRouteLeave(to, from, next) {
|
|
|
|
// console.log('== 离开路由- beforeRouteLeave ==')
|
|
|
|
|
|
|
|
this.inChildLoading = true
|
|
|
|
this.inChildLoading = true
|
|
|
|
if (this.isCopy) {
|
|
|
|
if (this.isCopy) {
|
|
|
|
const hisData = {
|
|
|
|
const hisData = {
|
|
|
@ -444,6 +443,9 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.$set(this.historyData, this.id, hisData)
|
|
|
|
this.$set(this.historyData, this.id, hisData)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (this.hasbookingDetail) {
|
|
|
|
|
|
|
|
this.bookingDetails = {}
|
|
|
|
|
|
|
|
}
|
|
|
|
next()
|
|
|
|
next()
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
this.inChildLoading = false
|
|
|
|
this.inChildLoading = false
|
|
|
@ -451,7 +453,6 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
|
beforeRouteEnter(to, from, next) {
|
|
|
|
next(vm => {
|
|
|
|
next(vm => {
|
|
|
|
// console.log('== 进入路由 - beforeRouteEnter ==')
|
|
|
|
|
|
|
|
vm.getRouterHis()
|
|
|
|
vm.getRouterHis()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
},
|
|
|
|
},
|
|
|
|