密码重置页面验证码验证通过添加提示

uat_us
caiyiling 2024-04-10 15:21:32 +08:00
parent 15f7e35de5
commit bfdd137cba
2 changed files with 18 additions and 16 deletions

View File

@ -31,7 +31,7 @@
<el-form-item :label="$t('trials:researchForm:form:verifyCode')" required> <el-form-item :label="$t('trials:researchForm:form:verifyCode')" required>
<el-col :span="18"> <el-col :span="18">
<el-form-item prop="VerificationCode"> <el-form-item prop="VerificationCode">
<el-input v-model="form.VerificationCode" autocomplete="off" /> <el-input v-model="form.VerificationCode" autocomplete="off" />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="6" style="text-align:right;"> <el-col :span="6" style="text-align:right;">
@ -122,17 +122,17 @@ export default {
} }
} }
} }
var validatePass = (rule, value, callback) => { // var validatePass = (rule, value, callback) => {
if (value === '') { // if (value === '') {
// // //
callback(new Error(this.$t('passwordReset:formRule:password'))) // callback(new Error(this.$t('passwordReset:formRule:password')))
} else { // } else {
if (this.CheckPass !== '') { // if (this.CheckPass !== '') {
this.$refs.resetForm.validateField('CheckPass') // this.$refs.resetForm.validateField('CheckPass')
} // }
callback() // callback()
} // }
} // }
var validatePass2 = (rule, value, callback) => { var validatePass2 = (rule, value, callback) => {
if (value === '' || value === undefined) { if (value === '' || value === undefined) {
// //
@ -205,6 +205,8 @@ export default {
verifyAnonymousVerifyCode(this.form.EmailOrPhone, this.form.VerificationCode).then(res => { verifyAnonymousVerifyCode(this.form.EmailOrPhone, this.form.VerificationCode).then(res => {
this.formLoading = false this.formLoading = false
this.users = res.Result this.users = res.Result
//
this.$message.success(this.$t('passwordReset:message:verifiedSuccessfully'))
}).catch(() => { this.formLoading = false }) }).catch(() => { this.formLoading = false })
}, },
handleEmailChange() { handleEmailChange() {
@ -268,7 +270,7 @@ export default {
/*/deep/ .is-error{*/ /*/deep/ .is-error{*/
/* margin-bottom: 40px;*/ /* margin-bottom: 40px;*/
/*}*/ /*}*/
/deep/ .is-error.my_new_pwd{ .is-error.my_new_pwd{
margin-bottom: 40px; margin-bottom: 40px;
} }
</style> </style>

View File

@ -63,7 +63,7 @@
:label="$t('trials:medicalFeedback:table:taskBlindName')" :label="$t('trials:medicalFeedback:table:taskBlindName')"
> >
<el-input <el-input
v-model="searchData.TaskName" v-model="searchData.TaskBlindName"
style="width:100px;" style="width:100px;"
clearable clearable
/> />
@ -554,6 +554,7 @@ const searchDataDefault = () => {
SubjectId: '', SubjectId: '',
SubjectCode: '', SubjectCode: '',
TaskName: '', TaskName: '',
TaskBlindName: '',
IsUrgent: null, IsUrgent: null,
DoctorUserId: '', DoctorUserId: '',
ReadingCategory: null, ReadingCategory: null,
@ -661,10 +662,9 @@ export default {
this.$message.success(this.$t('common:message:savedSuccessfully')) this.$message.success(this.$t('common:message:savedSuccessfully'))
this.$refs['signForm'].btnLoading = false this.$refs['signForm'].btnLoading = false
this.signVisible = false this.signVisible = false
this.$nextTick(()=>{ this.$nextTick(() => {
this.chatForm.visible = false this.chatForm.visible = false
}) })
} }
this.loading = false this.loading = false
this.getList() this.getList()