|
@@ -169,15 +169,28 @@
|
|
activated () {
|
|
activated () {
|
|
// 判断是否有签章页面带过来
|
|
// 判断是否有签章页面带过来
|
|
if (this.commonJS.isNotEmpty(this.$route.query.signatureUrl)) {
|
|
if (this.commonJS.isNotEmpty(this.$route.query.signatureUrl)) {
|
|
|
|
+ console.log('this.$route.query', this.$route.query)
|
|
this.$confirm(`确定要前往签章页面吗?`, '提示', {
|
|
this.$confirm(`确定要前往签章页面吗?`, '提示', {
|
|
confirmButtonText: '确定',
|
|
confirmButtonText: '确定',
|
|
cancelButtonText: '取消',
|
|
cancelButtonText: '取消',
|
|
type: 'warning'
|
|
type: 'warning'
|
|
}).then(() => {
|
|
}).then(() => {
|
|
- console.log('前往签章页面')
|
|
|
|
- window.open(this.$route.query.signatureUrl, '_blank')
|
|
|
|
|
|
+ let _this = this
|
|
|
|
+ const wait = function () {
|
|
|
|
+ return new Promise((resolve, reject) => {
|
|
|
|
+ window.open(_this.$route.query.signatureUrl, '_blank')
|
|
|
|
+ resolve()
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ wait().then(() => {
|
|
|
|
+ this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
|
|
|
|
+ console.log('前往签章页面,清除本页$router.query')
|
|
|
|
+ this.$router.push({query: {}})
|
|
|
|
+ })
|
|
}).catch(() => {
|
|
}).catch(() => {
|
|
- console.log('取消前往签章页面')
|
|
|
|
|
|
+ this.$store.dispatch('tagsView/delView', {fullPath: this.$route.fullPath})
|
|
|
|
+ this.$router.push({query: {}})
|
|
|
|
+ console.log('取消前往签章页面,清除本页$router.query')
|
|
})
|
|
})
|
|
}
|
|
}
|
|
this.refreshList()
|
|
this.refreshList()
|