feat: There is no way the, AWC

This commit is contained in:
super_liu
2022-04-26 16:18:09 +08:00
parent f44971e3d9
commit d5cf534c9e
6 changed files with 58 additions and 25 deletions
+2 -1
View File
@@ -217,7 +217,8 @@ export default {
&& this.$route.name !== 'nuoBLogin' && this.$route.name !== 'sTLogin'
&& this.$route.name !== 'StandardSearch' && this.$route.name !== 'phoneIndex'
&& 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
} else {
this.isBoolean = false
+1 -5
View File
@@ -72,15 +72,11 @@ router.beforeEach(function (to, from, next) {
}
let toName = to.name
if (toName === 'CheckPage') {
if (toName === 'CheckPage' || toName === 'loginStandDetails' || toName === 'error') {
next()
return
}
if (toName === 'loginStandDetails') {
next()
}
if(webLoginType === 'idm' && toName === 'Login'){
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>
+2 -10
View File
@@ -22,15 +22,7 @@
},
methods: {
logout(){
this.$store.dispatch('logout')
this.$alert('您没有系统访问权限,请联系管理员进行授权', '提示', {
confirmButtonText: '确定',
type: 'warning',
showClose: false,
showCancelButton: false,
}).then(() => {
window.location.href = ssoLogoutUrlDev
})
this.$router.push('error')
},
/**
* @description: 获取菜单logout
@@ -166,7 +158,7 @@
if (res.ok) {
this.loginNew(res)
} else {
if(res.respCode && res.respCode === 'r0011'){
if(res.respCode && (res.respCode === 'r0011' || res.respCode === '-1')){
this.logout()
}
}
+1 -9
View File
@@ -23,15 +23,7 @@
},
methods: {
logout(){
this.$store.dispatch('logout')
this.$alert('您没有系统访问权限,请联系管理员进行授权', '提示', {
confirmButtonText: '确定',
type: 'warning',
showClose: false,
showCancelButton: false,
}).then(() => {
window.location.href = ssoLogoutUrlDev
})
this.$router.push('error')
},
/**
* @description: 获取菜单logout
+6
View File
@@ -66,6 +66,12 @@ const routes = [
component: () =>
import('@/pages/loginStandDetails')
},
{
path: '/error',
name: 'error',
component: () =>
import('@/pages/loginStandDetails/common/error.vue')
},
{
path: '/loginVerifyNoEncryption',
name: 'LoginVerifyNoEncryption',