|
@@ -76,7 +76,7 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
<el-form-item class="text-position">
|
|
<el-form-item class="text-position">
|
|
|
<div class="page-part" v-if="loginStyle.needRememberPwd">
|
|
<div class="page-part" v-if="loginStyle.needRememberPwd">
|
|
|
- <el-checkbox v-model="checked">30天免登陆</el-checkbox>
|
|
|
|
|
|
|
+ <el-checkbox v-model="checked">30天免登录</el-checkbox>
|
|
|
</div>
|
|
</div>
|
|
|
<a class="forget" id='forget' @click="goForgetPassword">忘记密码?</a>
|
|
<a class="forget" id='forget' @click="goForgetPassword">忘记密码?</a>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -227,7 +227,7 @@
|
|
|
this.showCheckCode = false
|
|
this.showCheckCode = false
|
|
|
let getPasswordErrorCount = response.data.content || ''
|
|
let getPasswordErrorCount = response.data.content || ''
|
|
|
if (getPasswordErrorCount >= 5) {
|
|
if (getPasswordErrorCount >= 5) {
|
|
|
- this.$message.error('密码错误次数已达上限,今日无法登陆')
|
|
|
|
|
|
|
+ this.$message.error('密码错误次数已达上限,今日无法登录')
|
|
|
this.isLoginDisabled = true
|
|
this.isLoginDisabled = true
|
|
|
this.showCheckCode = false
|
|
this.showCheckCode = false
|
|
|
} else if (getPasswordErrorCount < 3) {
|
|
} else if (getPasswordErrorCount < 3) {
|
|
@@ -236,10 +236,10 @@
|
|
|
this.showCheckCode = false
|
|
this.showCheckCode = false
|
|
|
} else if (getPasswordErrorCount >= 3 && getPasswordErrorCount < 5) {
|
|
} else if (getPasswordErrorCount >= 3 && getPasswordErrorCount < 5) {
|
|
|
if (getPasswordErrorCount === 3) {
|
|
if (getPasswordErrorCount === 3) {
|
|
|
- this.$message.error('当前已输错密码3次,若达到5次今日将无法登陆')
|
|
|
|
|
|
|
+ this.$message.error('当前已输错密码3次,若达到5次今日将无法登录')
|
|
|
}
|
|
}
|
|
|
if (getPasswordErrorCount === 4) {
|
|
if (getPasswordErrorCount === 4) {
|
|
|
- this.$message.error('当前已输错密码4次,若达到5次今日将无法登陆')
|
|
|
|
|
|
|
+ this.$message.error('当前已输错密码4次,若达到5次今日将无法登录')
|
|
|
}
|
|
}
|
|
|
this.isLoginDisabled = false
|
|
this.isLoginDisabled = false
|
|
|
this.checkUsername = true
|
|
this.checkUsername = true
|
|
@@ -406,7 +406,7 @@
|
|
|
if (response.data.success) {
|
|
if (response.data.success) {
|
|
|
let getPasswordErrorCount = response.data.content || ''
|
|
let getPasswordErrorCount = response.data.content || ''
|
|
|
if (getPasswordErrorCount >= 5) {
|
|
if (getPasswordErrorCount >= 5) {
|
|
|
- this.$message.error('密码错误次数已达上限,今日无法登陆')
|
|
|
|
|
|
|
+ this.$message.error('密码错误次数已达上限,今日无法登录')
|
|
|
this.isLoginDisabled = true
|
|
this.isLoginDisabled = true
|
|
|
this.showCheckCode = false
|
|
this.showCheckCode = false
|
|
|
} else if (getPasswordErrorCount < 3) {
|
|
} else if (getPasswordErrorCount < 3) {
|
|
@@ -415,10 +415,10 @@
|
|
|
this.showCheckCode = false
|
|
this.showCheckCode = false
|
|
|
} else if (getPasswordErrorCount >= 3 && getPasswordErrorCount < 5) {
|
|
} else if (getPasswordErrorCount >= 3 && getPasswordErrorCount < 5) {
|
|
|
if (getPasswordErrorCount === 3) {
|
|
if (getPasswordErrorCount === 3) {
|
|
|
- this.$message.error('当前已输错密码3次,若达到5次今日将无法登陆')
|
|
|
|
|
|
|
+ this.$message.error('当前已输错密码3次,若达到5次今日将无法登录')
|
|
|
}
|
|
}
|
|
|
if (getPasswordErrorCount === 4) {
|
|
if (getPasswordErrorCount === 4) {
|
|
|
- this.$message.error('当前已输错密码4次,若达到5次今日将无法登陆')
|
|
|
|
|
|
|
+ this.$message.error('当前已输错密码4次,若达到5次今日将无法登录')
|
|
|
}
|
|
}
|
|
|
this.isLoginDisabled = false
|
|
this.isLoginDisabled = false
|
|
|
this.checkUsername = true
|
|
this.checkUsername = true
|
|
@@ -544,13 +544,13 @@
|
|
|
this.showCheckCode = false
|
|
this.showCheckCode = false
|
|
|
this.isLoginDisabled = false
|
|
this.isLoginDisabled = false
|
|
|
} else if (count >= 5) {
|
|
} else if (count >= 5) {
|
|
|
- this.$message.error('密码错误次数已达上限,今日无法登陆')
|
|
|
|
|
|
|
+ this.$message.error('密码错误次数已达上限,今日无法登录')
|
|
|
this.isLoginDisabled = true
|
|
this.isLoginDisabled = true
|
|
|
this.showCheckCode = false
|
|
this.showCheckCode = false
|
|
|
} else if (count >= 3 && count < 5) {
|
|
} else if (count >= 3 && count < 5) {
|
|
|
this.getCode()
|
|
this.getCode()
|
|
|
if (count === 3) {
|
|
if (count === 3) {
|
|
|
- this.$message.error('当前已输错密码3次,若达到5次今日将无法登陆')
|
|
|
|
|
|
|
+ this.$message.error('当前已输错密码3次,若达到5次今日将无法登录')
|
|
|
}
|
|
}
|
|
|
this.showCheckCode = true
|
|
this.showCheckCode = true
|
|
|
this.isLoginDisabled = false
|
|
this.isLoginDisabled = false
|