提交 dd62c5c8 编写于 作者: linjinyang's avatar linjinyang

app-update-password 国际化

上级 ddaddb05
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
<div class="update-password"> <div class="update-password">
<div class="password-item"> <div class="password-item">
<label for> <label for>
原密码: {{$t('components.appUpdatePassword.oldPwd')}}
<Input type="password" v-model="oldPwd" @on-blur="oldPwdVaild"/> <Input type="password" v-model="oldPwd" @on-blur="oldPwdVaild"/>
</label> </label>
</div> </div>
<div class="password-item"> <div class="password-item">
<label for> <label for>
新密码: {{$t('components.appUpdatePassword.newPwd')}}
<Input type="password" v-model="newPwd" @on-blur="newPwdVaild"/> <Input type="password" v-model="newPwd" @on-blur="newPwdVaild"/>
</label> </label>
</div> </div>
<div class="password-item"> <div class="password-item">
<label for> <label for>
确认密码: {{$t('components.appUpdatePassword.confirmPwd')}}
<Input type="password" v-model="confirmPwd" :disabled="!this.newPwd" @on-blur="confirmVaild" /> <Input type="password" v-model="confirmPwd" :disabled="!this.newPwd" @on-blur="confirmVaild" />
</label> </label>
</div> </div>
<div class="password-item password-btn"> <div class="password-item password-btn">
<Button type="primary" long :disabled="!oldPwd || !newPwd || !confirmPwd || disUpdate" @click="updatePwd">确认修改</Button> <Button type="primary" long :disabled="!oldPwd || !newPwd || !confirmPwd || disUpdate" @click="updatePwd">{{$t('components.appUpdatePassword.sure')}}</Button>
</div> </div>
</div> </div>
</template> </template>
...@@ -73,7 +73,7 @@ export default class AppUpdatePassword extends Vue { ...@@ -73,7 +73,7 @@ export default class AppUpdatePassword extends Vue {
public oldPwdVaild(){ public oldPwdVaild(){
if(!this.oldPwd){ if(!this.oldPwd){
this.$Notice.error({ this.$Notice.error({
title:'原密码不能为空!', title: (this.$t('components.appUpdatePassword.oldPwdErr') as string),
duration: 3 duration: 3
}); });
} }
...@@ -88,7 +88,7 @@ export default class AppUpdatePassword extends Vue { ...@@ -88,7 +88,7 @@ export default class AppUpdatePassword extends Vue {
public newPwdVaild(){ public newPwdVaild(){
if(!this.newPwd){ if(!this.newPwd){
this.$Notice.error({ this.$Notice.error({
title:'新密码不能为空!', title: (this.$t('components.appUpdatePassword.newPwdErr') as string),
duration: 3 duration: 3
}); });
} }
...@@ -104,7 +104,7 @@ export default class AppUpdatePassword extends Vue { ...@@ -104,7 +104,7 @@ export default class AppUpdatePassword extends Vue {
if (this.newPwd && this.confirmPwd) { if (this.newPwd && this.confirmPwd) {
if (this.confirmPwd !== this.newPwd) { if (this.confirmPwd !== this.newPwd) {
this.$Notice.error({ this.$Notice.error({
title:'两次输入密码不一致!', title: (this.$t('components.appUpdatePassword.confirmPwdErr') as string),
duration: 3 duration: 3
}); });
}else{ }else{
...@@ -136,7 +136,7 @@ export default class AppUpdatePassword extends Vue { ...@@ -136,7 +136,7 @@ export default class AppUpdatePassword extends Vue {
} }
}).catch((error: any) =>{ }).catch((error: any) =>{
this.$Notice.error({ this.$Notice.error({
title:'系统异常', title: (this.$t('components.appUpdatePassword.error') as string),
duration: 3 duration: 3
}); });
console.error(error); console.error(error);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册