1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 15:01:23 +08:00

Added enable status to Role, Group and User

This commit is contained in:
2023-05-22 02:04:36 +08:00
parent b9dc1813ba
commit 9a7702efe6
14 changed files with 103 additions and 10 deletions

View File

@@ -84,7 +84,12 @@
import { getCaptchaSrc, login, verifyCaptcha } from '@/utils/auth'
import backShape from '@/assets/svg/back-shape.svg'
import { ElMessage } from 'element-plus'
import { LOGIN_SUCCESS, LOGOUT_FAILED, PRODUCTION_NAME } from '@/constants/Common.constants'
import {
LOGIN_SUCCESS,
LOGOUT_FAILED,
PRODUCTION_NAME,
USER_DISABLE
} from '@/constants/Common.constants'
import { setToken } from '@/utils/common'
export default {
@@ -169,6 +174,13 @@ export default {
})
this.resetLogin()
break
case USER_DISABLE:
ElMessage.error({
dangerouslyUseHTMLString: true,
message: '<strong>该用户已被禁用</strong>,请联系管理员'
})
this.resetLogin()
break
default:
ElMessage.error({
dangerouslyUseHTMLString: true,