Handy_Cao 8 ماه پیش
والد
کامیت
6861a441e0

+ 11 - 0
public/locales/en-US.json

@@ -227,6 +227,17 @@
             "password": "Please enter your login password",
             "verifyCode": "Please enter verification code",
             "loading": "Logging in"
+        },
+        "password": {
+            "title": "修改密码",
+            "membername": "登录名",
+            "membertags": "用户名称",
+            "oldPwd": "旧密码",
+            "newPwd": "新密码",
+            "checkPwd": "新密码确认",
+            "tips1": "请输入旧密码",
+            "tips2": "密码不符合规范",
+            "tips3": "确认密码不一致"
         }
     },
     "bank": {

+ 11 - 0
public/locales/th-TH.json

@@ -227,6 +227,17 @@
             "password": "กรุณาใส่รหัสผ่าน",
             "verifyCode": "กรุณาใส่รหัสยืนยัน",
             "loading": "กำลังเข้าสู่ระบบ"
+        },
+        "password": {
+            "title": "修改密码",
+            "membername": "登录名",
+            "membertags": "用户名称",
+            "oldPwd": "旧密码",
+            "newPwd": "新密码",
+            "checkPwd": "新密码确认",
+            "tips1": "请输入旧密码",
+            "tips2": "密码不符合规范",
+            "tips3": "确认密码不一致"
         }
     },
     "bank": {

+ 11 - 0
public/locales/vi-VN.json

@@ -227,6 +227,17 @@
             "password": "Vui lòng nhập mật khẩu đăng nhập",
             "verifyCode": "Vui lòng nhập mã xác minh",
             "loading": "Đang đăng nhập"
+        },
+        "password": {
+            "title": "修改密码",
+            "membername": "登录名",
+            "membertags": "用户名称",
+            "oldPwd": "旧密码",
+            "newPwd": "新密码",
+            "checkPwd": "新密码确认",
+            "tips1": "请输入旧密码",
+            "tips2": "密码不符合规范",
+            "tips3": "确认密码不一致"
         }
     },
     "bank": {

+ 11 - 0
public/locales/zh-CN.json

@@ -227,6 +227,17 @@
             "password": "请输入您的登录密码",
             "verifyCode": "请输入验证码",
             "loading": "正在登录"
+        },
+        "password": {
+            "title": "修改密码",
+            "membername": "登录名",
+            "membertags": "用户名称",
+            "oldPwd": "旧密码",
+            "newPwd": "新密码",
+            "checkPwd": "新密码确认",
+            "tips1": "请输入旧密码",
+            "tips2": "密码不符合规范",
+            "tips3": "确认密码不一致"
         }
     },
     "bank": {

+ 11 - 0
public/locales/zh-TW.json

@@ -227,6 +227,17 @@
             "password": "請輸入您的登錄密碼",
             "verifyCode": "請輸入驗證碼",
             "loading": "正在登錄"
+        },
+        "password": {
+            "title": "修改密码",
+            "membername": "登录名",
+            "membertags": "用户名称",
+            "oldPwd": "旧密码",
+            "newPwd": "新密码",
+            "checkPwd": "新密码确认",
+            "tips1": "请输入旧密码",
+            "tips2": "密码不符合规范",
+            "tips3": "确认密码不一致"
         }
     },
     "bank": {

+ 9 - 9
src/packages/pc/views/auth/password/index.vue

@@ -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'))
             }
         },
     }],