|
|
@@ -1,17 +1,17 @@
|
|
|
<!-- 修改密码 -->
|
|
|
<template>
|
|
|
- <app-drawer title="修改密码" width="480" v-model:show="show" :loading="loading">
|
|
|
+ <app-drawer :title="t('auth.password.title')" width="480" v-model:show="show" :loading="loading">
|
|
|
<el-form ref="formRef" class="el-form--vertical" label-width="100px" :model="formData" :rules="formRules">
|
|
|
- <el-form-item label="登录名" prop="membername">
|
|
|
+ <el-form-item :label="t('auth.password.membername')" prop="membername">
|
|
|
<span>{{ userStore.userInfo.username }}</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="用户名称" prop="membertags">
|
|
|
+ <el-form-item :label="t('auth.password.membertags')" prop="membertags">
|
|
|
<span>{{ userStore.userInfo.logincode }}</span>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="旧密码" prop="oldPwd">
|
|
|
+ <el-form-item :label="t('auth.password.oldPwd')" prop="oldPwd">
|
|
|
<el-input type="password" v-model="formData.oldPwd" :placeholder="t('common.pleaseenter')" />
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="新密码" prop="newPwd">
|
|
|
+ <el-form-item :label="t('auth.password.newPwd')" prop="newPwd">
|
|
|
<el-popover placement="top" trigger="click" :width="244" :hide-after="0"
|
|
|
:content="validateRules.password.message">
|
|
|
<template #reference>
|
|
|
@@ -20,7 +20,7 @@
|
|
|
</template>
|
|
|
</el-popover>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="新密码确认" prop="checkPwd">
|
|
|
+ <el-form-item :label="t('auth.password.checkPwd')" prop="checkPwd">
|
|
|
<el-input type="password" v-model="checkPwd" :placeholder="t('common.pleaseenter')" />
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
@@ -60,7 +60,7 @@ const formRules: FormRules = {
|
|
|
if (value) {
|
|
|
callback()
|
|
|
} else {
|
|
|
- callback('请输入旧密码')
|
|
|
+ callback(t('auth.password.tips1'))
|
|
|
}
|
|
|
},
|
|
|
}],
|
|
|
@@ -71,7 +71,7 @@ const formRules: FormRules = {
|
|
|
if (validateRules.password.validate(value)) {
|
|
|
callback()
|
|
|
} else {
|
|
|
- callback('密码不符合规范')
|
|
|
+ callback(t('auth.password.tips2'))
|
|
|
}
|
|
|
},
|
|
|
}],
|
|
|
@@ -82,7 +82,7 @@ const formRules: FormRules = {
|
|
|
if (formData.value.newPwd === checkPwd.value) {
|
|
|
callback()
|
|
|
} else {
|
|
|
- callback('确认密码不一致')
|
|
|
+ callback(t('auth.password.tips3'))
|
|
|
}
|
|
|
},
|
|
|
}],
|