Merge branch 'feature/GFRS-597【电投页面优化】' into dev

# Conflicts:
#	src/views/ebiz/sale/NotifyingMessage.vue
This commit is contained in:
yuweiqi
2020-03-20 17:16:00 +08:00
8 changed files with 169 additions and 102 deletions

View File

@@ -89,14 +89,40 @@ export default {
default:
break
}
this.$jump({
flag: 'h5',
extra: {
forbidSwipeBack: '1',
url: location.origin + `/#${url}`
},
routerInfo: { path: url }
})
let str = location.hash
let i = str.search(/AttachmentManagement/i)
if (i !== -1 && pageIndex != 7 && pageIndex != 8) {
this.$dialog
.confirm({
className: 'dialog-delete',
title: '提示',
message: '离开此页可能会丢失部分数据,是否确认离开?',
cancelButtonColor: '#E9332E',
confirmButtonColor: '#FFFFFF'
})
.then(() => {
this.$jump({
flag: 'h5',
extra: {
forbidSwipeBack: '1',
url: location.origin + `/#${url}`
},
routerInfo: { path: url }
})
})
.catch(() => {
return
})
} else {
this.$jump({
flag: 'h5',
extra: {
forbidSwipeBack: '1',
url: location.origin + `/#${url}`
},
routerInfo: { path: url }
})
}
},
selectTab() {
let endIndex = location.hash.indexOf('?', 1)