From 22ac496d7b6099ad696ed14a43930530aa35d3f0 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Tue, 14 Jul 2026 11:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=9B=BD=E9=99=85=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/system/user/components/UserInfo.vue | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/views/system/user/components/UserInfo.vue b/src/views/system/user/components/UserInfo.vue index 163e55fc..759b3bb2 100644 --- a/src/views/system/user/components/UserInfo.vue +++ b/src/views/system/user/components/UserInfo.vue @@ -178,7 +178,7 @@ export default { updateUser(this.user) .then((res) => { this.isDisabled = false - this.$message.success('Updated successfully') + this.$message.success(this.$t("common:message:updatedSuccessfully")) }) .catch(() => { this.isDisabled = false @@ -190,7 +190,7 @@ export default { this.user.Id = res.Result.Id this.user.UserCode = res.Result.UserCode this.$emit('getUserId', res.Result.Id) - this.$message.success('Added successfully') + this.$message.success(this.$t("common:message:addedSuccessfully")) this.$router.push({ path: '/system/user/list' }) }) .catch(() => { @@ -308,63 +308,63 @@ export default { UserWorkLanguage: [ { required: true, - message: 'Please Select', + message: this.$t("common:ruleMessage:select"), trigger: ['blur', 'change'], }, ], Roles: [ { required: true, - message: 'Please Select', + message: this.$t("common:ruleMessage:select"), trigger: ['blur', 'change'], }, ], IsZhiZhun: [ { required: true, - message: 'Please Select', + message: this.$t("common:ruleMessage:select"), trigger: ['blur', 'change'], }, ], OrganizationName: [ - { required: true, message: 'Please specify', trigger: 'blur' }, + { required: true, message: this.$t("common:ruleMessage:specify"), trigger: 'blur' }, ], LastName: [ - { required: true, message: 'Please specify', trigger: 'blur' }, - { max: 50, message: 'The maximum length is 50' }, + { required: true, message: this.$t("common:ruleMessage:specify"), trigger: 'blur' }, + { max: 50, message: this.$t("trials:researchForm:formRule:maxLength") }, ], FirstName: [ - { required: true, message: 'Please specify', trigger: 'blur' }, - { max: 50, message: 'The maximum length is 50' }, + { required: true, message: this.$t("common:ruleMessage:specify"), trigger: 'blur' }, + { max: 50, message: this.$t("trials:researchForm:formRule:maxLength") }, ], Phone: [ { max: 20, min: 7, - message: 'The length is 7 to 20', + message: this.$t("system:userInfo:ruleMessage:length7to20"), trigger: ['blur'], }, ], EMail: [ { required: true, - message: 'Please input the email address', + message: this.$t("common:ruleMessage:specify"), trigger: 'blur', }, { // type: 'email', pattern: new RegExp(this.$reg().EmailRegexStr), - message: 'Please input the correct email address', + message: this.$t("trials:site:ruleMessage:correctEmail"), trigger: ['blur'], }, - { max: 50, message: 'The maximum length is 50' }, + { max: 50, message: this.$t("trials:researchForm:formRule:maxLength") }, ], - Sex: [{ required: true, message: 'Please specify', trigger: 'blur' }], + Sex: [{ required: true, message: this.$t("common:ruleMessage:specify"), trigger: 'blur' }], Status: [ - { required: true, message: 'Please specify', trigger: 'blur' }, + { required: true, message: this.$t("common:ruleMessage:specify"), trigger: 'blur' }, ], - DepartmentName: [{ max: 50, message: 'The maximum length is 50' }], - PositionName: [{ max: 50, message: 'The maximum length is 50' }], + DepartmentName: [{ max: 50, message: this.$t("trials:researchForm:formRule:maxLength") }], + PositionName: [{ max: 50, message: this.$t("trials:researchForm:formRule:maxLength") }], }, userTypeOptions: [], isDisabled: false,