|
|
@ -3,6 +3,15 @@ |
|
|
|
<el-form ref="formSmsLogin" :model="loginData" :rules="rules" label-width="130px" label-position="top" size="large"> |
|
|
|
<div class="title" style="font-size:25px" margin-left="0px">重置密码</div> |
|
|
|
<el-row type="flex" justify="center" align="middle"> |
|
|
|
<el-col> |
|
|
|
<el-form-item label="旧密码" prop="oldPassword" align="center"> |
|
|
|
<el-input v-model="loginData.oldPassword" placeholder="请输入旧密码" :type="isShowPassword?'text':'password'"/> |
|
|
|
<el-icon style="position: absolute; right: 10px;cursor: pointer;" color="#a5a5a5" size="20" @click="isShowPassword = !isShowPassword"> |
|
|
|
<View v-if="!isShowPassword"/> |
|
|
|
<Hide v-if="isShowPassword"/> |
|
|
|
</el-icon> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
<el-col> |
|
|
|
<el-form-item label="新密码" prop="password" align="center"> |
|
|
|
<el-input v-model="loginData.password" placeholder="请输入新密码" :type="isShowPassword?'text':'password'"/> |
|
|
@ -52,6 +61,7 @@ |
|
|
|
againPassword: [required] |
|
|
|
} |
|
|
|
const loginData = reactive({ |
|
|
|
oldPassword: '', |
|
|
|
password: '', |
|
|
|
againPassword: '', |
|
|
|
mailKey: '', |
|
|
@ -68,7 +78,6 @@ |
|
|
|
message.error('两次输入的密码不一致,请重新输入!') |
|
|
|
} else { |
|
|
|
const data = loginData as unknown as UserApi.UserVO |
|
|
|
debugger |
|
|
|
await UserApi.updatePassword(data) |
|
|
|
// 发送操作成功的事件 |
|
|
|
message.success(t('common.updateSuccess')) |
|
|
|