|
|
|
@ -48,7 +48,7 @@ export default {
|
|
|
|
|
...mapActions(['setNeedSavePages']),
|
|
|
|
|
onEdit(targetKey, action) {
|
|
|
|
|
const _that = this
|
|
|
|
|
// console.log(this.needSavePages[targetKey])
|
|
|
|
|
console.log(this.needSavePages[targetKey], targetKey)
|
|
|
|
|
if (targetKey.includes('BookingDetail')) {
|
|
|
|
|
if (this.needSavePages[targetKey].details || this.needSavePages[targetKey].hbList) {
|
|
|
|
|
this.$confirm({
|
|
|
|
@ -100,6 +100,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
closeLeft(e) {
|
|
|
|
|
console.log('=== 测试点1 ===')
|
|
|
|
|
const currentIndex = this.fullPathList.indexOf(e)
|
|
|
|
|
if (currentIndex > 0) {
|
|
|
|
|
this.fullPathList.forEach((item, index) => {
|
|
|
|
@ -112,6 +113,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
closeRight(e) {
|
|
|
|
|
console.log('=== 测试点2 ===')
|
|
|
|
|
const currentIndex = this.fullPathList.indexOf(e)
|
|
|
|
|
if (currentIndex < this.fullPathList.length - 1) {
|
|
|
|
|
this.fullPathList.forEach((item, index) => {
|
|
|
|
@ -124,6 +126,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
closeAll(e) {
|
|
|
|
|
console.log('=== 测试点3 ===')
|
|
|
|
|
const currentIndex = this.fullPathList.indexOf(e)
|
|
|
|
|
this.fullPathList.forEach((item, index) => {
|
|
|
|
|
if (index !== currentIndex) {
|
|
|
|
|