feat: There is no way the, AWC
This commit is contained in:
+2
-1
@@ -217,7 +217,8 @@ export default {
|
|||||||
&& this.$route.name !== 'nuoBLogin' && this.$route.name !== 'sTLogin'
|
&& this.$route.name !== 'nuoBLogin' && this.$route.name !== 'sTLogin'
|
||||||
&& this.$route.name !== 'StandardSearch' && this.$route.name !== 'phoneIndex'
|
&& this.$route.name !== 'StandardSearch' && this.$route.name !== 'phoneIndex'
|
||||||
&& this.$route.name !== 'AdvancedSearchExternal' && this.$route.name !== 'LoginVerifyNoEncryption'
|
&& this.$route.name !== 'AdvancedSearchExternal' && this.$route.name !== 'LoginVerifyNoEncryption'
|
||||||
&& this.$route.name !== 'blankPage' && this.$route.name !== 'processedPage') {
|
&& this.$route.name !== 'blankPage' && this.$route.name !== 'processedPage'
|
||||||
|
&& this.$route.name !== 'loginStandDetails' && this.$route.name !== 'error') {
|
||||||
this.isBoolean = true
|
this.isBoolean = true
|
||||||
} else {
|
} else {
|
||||||
this.isBoolean = false
|
this.isBoolean = false
|
||||||
|
|||||||
+1
-5
@@ -72,15 +72,11 @@ router.beforeEach(function (to, from, next) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
let toName = to.name
|
let toName = to.name
|
||||||
if (toName === 'CheckPage') {
|
if (toName === 'CheckPage' || toName === 'loginStandDetails' || toName === 'error') {
|
||||||
next()
|
next()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if (toName === 'loginStandDetails') {
|
|
||||||
next()
|
|
||||||
}
|
|
||||||
|
|
||||||
if(webLoginType === 'idm' && toName === 'Login'){
|
if(webLoginType === 'idm' && toName === 'Login'){
|
||||||
window.location.href = ssoLoginUrlDev
|
window.location.href = ssoLoginUrlDev
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,46 @@
|
|||||||
|
<template>
|
||||||
|
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { mapMutations, mapActions } from 'vuex'
|
||||||
|
import { checkPage } from '@/api/login'
|
||||||
|
import { get_verify_by_instance,loginIdm,getMenu } from 'api/process'
|
||||||
|
import { ssoLoginUrlDev,ssoLogoutUrlDev,ssoLoginUrl,webLoginType,devWebUrl } from '@/sysConfig'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'error',
|
||||||
|
data () {
|
||||||
|
return {
|
||||||
|
username: this.$store.state.laws_urm || '', // 用户名
|
||||||
|
password: this.$store.state.laws_prm || '', // 密码
|
||||||
|
loading: false,
|
||||||
|
isRemember: false, // 记住密码
|
||||||
|
showIETips: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
logout(){
|
||||||
|
this.$store.dispatch('logout')
|
||||||
|
this.$alert('您没有系统访问权限,请联系管理员进行授权', '提示', {
|
||||||
|
confirmButtonText: '确定',
|
||||||
|
type: 'warning',
|
||||||
|
showClose: false,
|
||||||
|
showCancelButton: false,
|
||||||
|
}).then(() => {
|
||||||
|
window.location.href = ssoLogoutUrlDev
|
||||||
|
})
|
||||||
|
},
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
},
|
||||||
|
mounted () {
|
||||||
|
this.logout()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -22,15 +22,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
logout(){
|
logout(){
|
||||||
this.$store.dispatch('logout')
|
this.$router.push('error')
|
||||||
this.$alert('您没有系统访问权限,请联系管理员进行授权', '提示', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
type: 'warning',
|
|
||||||
showClose: false,
|
|
||||||
showCancelButton: false,
|
|
||||||
}).then(() => {
|
|
||||||
window.location.href = ssoLogoutUrlDev
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 获取菜单logout
|
* @description: 获取菜单logout
|
||||||
@@ -166,7 +158,7 @@
|
|||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
this.loginNew(res)
|
this.loginNew(res)
|
||||||
} else {
|
} else {
|
||||||
if(res.respCode && res.respCode === 'r0011'){
|
if(res.respCode && (res.respCode === 'r0011' || res.respCode === '-1')){
|
||||||
this.logout()
|
this.logout()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -23,15 +23,7 @@
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
logout(){
|
logout(){
|
||||||
this.$store.dispatch('logout')
|
this.$router.push('error')
|
||||||
this.$alert('您没有系统访问权限,请联系管理员进行授权', '提示', {
|
|
||||||
confirmButtonText: '确定',
|
|
||||||
type: 'warning',
|
|
||||||
showClose: false,
|
|
||||||
showCancelButton: false,
|
|
||||||
}).then(() => {
|
|
||||||
window.location.href = ssoLogoutUrlDev
|
|
||||||
})
|
|
||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* @description: 获取菜单logout
|
* @description: 获取菜单logout
|
||||||
|
|||||||
@@ -66,6 +66,12 @@ const routes = [
|
|||||||
component: () =>
|
component: () =>
|
||||||
import('@/pages/loginStandDetails')
|
import('@/pages/loginStandDetails')
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/error',
|
||||||
|
name: 'error',
|
||||||
|
component: () =>
|
||||||
|
import('@/pages/loginStandDetails/common/error.vue')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: '/loginVerifyNoEncryption',
|
path: '/loginVerifyNoEncryption',
|
||||||
name: 'LoginVerifyNoEncryption',
|
name: 'LoginVerifyNoEncryption',
|
||||||
|
|||||||
Reference in New Issue
Block a user