From afb3caf3edc5321dfdeebf5136e05aff0a2c2117 Mon Sep 17 00:00:00 2001 From: JoJo_ <92574547+JoJohw@users.noreply.github.com> Date: Thu, 28 Nov 2024 17:18:31 +0800 Subject: [PATCH] fix: fast enter and tips (#1995) --- src/pages/src/hooks/useValidate.ts | 2 +- src/pages/src/language/en.json | 4 ++-- src/pages/src/language/zh.json | 4 ++-- .../views/organization/components/fast-input-dialog.vue | 2 +- src/pages/src/views/setting/data-source/LdapConfig.vue | 7 ++++--- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/pages/src/hooks/useValidate.ts b/src/pages/src/hooks/useValidate.ts index 6822ada32..5b3e45e12 100644 --- a/src/pages/src/hooks/useValidate.ts +++ b/src/pages/src/hooks/useValidate.ts @@ -20,7 +20,7 @@ export const useValidate = () => { }; const id = { validator: (value: string) => /^([a-zA-Z])([a-zA-Z0-9-]){2,31}$/.test(value), - message: t('由3-32位字母、数字、连接符(-)字符组成,以字母开头'), + message: t('由3-32位小写字母、数字、连接符(-)字符组成,以字母开头'), trigger: 'blur', }; diff --git a/src/pages/src/language/en.json b/src/pages/src/language/en.json index ce34bf5ec..47c084857 100644 --- a/src/pages/src/language/en.json +++ b/src/pages/src/language/en.json @@ -162,7 +162,7 @@ "用户对象类": "User Object Class", "用户过滤器": "User filter", "过滤器中无需指定对象类,如(objectclass=xxx)": "No object class needs to be specified in the filter, such as (objectclass=xxx)", - "支持同步多个 LDAP 树(森林),需为每棵树指定相应的BaseDN": "Support synchronizing multiple LDAP trees (forests), with corresponding BaseDN specified for each tree", + "支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN": "Support synchronizing multiple LDAP trees (forests), with corresponding BaseDN specified for each tree", "部门对象类": "Department Object Class", "LDAP 服务地址": "LDAP service address", "Bind DN 密码": "Bind DN password", @@ -313,7 +313,7 @@ "请输入正确的手机号格式": "Please enter the correct phone number format", "由1-64位字符组成": "Consists of 1-64 characters", "由1-8位字符组成": "Consists of 1-8 characters", - "由3-32位字母、数字、连接符(-)字符组成,以字母开头": "Consists of 3-32 letters, numbers, and hyphen (-) characters, starting with a letter", + "由3-32位小写字母、数字、连接符(-)字符组成,以字母开头": "Consists of 3-32 letters, numbers, and hyphen (-) characters, starting with a letter", "由1-32位字母、数字、下划线(_)、点(.)、减号(-)字符组成,以字母或数字开头": "Consists of 1-32 letters, numbers, underscores (_), dots (.), and hyphens (-), starting with a letter or number", "请输入正确的邮箱地址": "Please enter a correct email address", "请输入正确的手机号码": "Please enter a correct mobile number", diff --git a/src/pages/src/language/zh.json b/src/pages/src/language/zh.json index 8b1e60e60..9ba83b408 100644 --- a/src/pages/src/language/zh.json +++ b/src/pages/src/language/zh.json @@ -162,7 +162,7 @@ "用户对象类": "用户对象类", "用户过滤器": "用户过滤器", "过滤器中无需指定对象类,如(objectclass=xxx)": "过滤器中无需指定对象类,如(objectclass=xxx)", - "支持同步多个 LDAP 树(森林),需为每棵树指定相应的BaseDN": "支持同步多个 LDAP 树(森林),需为每棵树指定相应的BaseDN", + "支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN": "支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN", "部门对象类": "部门对象类", "LDAP 服务地址": "LDAP 服务地址", "Bind DN 密码": "Bind DN 密码", @@ -313,7 +313,7 @@ "请输入正确的手机号格式": "请输入正确的手机号格式", "由1-64位字符组成": "由1-64位字符组成", "由1-8位字符组成": "由1-8位字符组成", - "由3-32位字母、数字、连接符(-)字符组成,以字母开头": "由3-32位字母、数字、连接符(-)字符组成,以字母开头", + "由3-32位小写字母、数字、连接符(-)字符组成,以字母开头": "由3-32位小写字母、数字、连接符(-)字符组成,以字母开头", "由1-32位字母、数字、下划线(_)、点(.)、减号(-)字符组成,以字母或数字开头": "由1-32位字母、数字、下划线(_)、点(.)、减号(-)字符组成,以字母或数字开头", "请输入正确的邮箱地址": "请输入正确的邮箱地址", "请输入正确的手机号码": "请输入正确的手机号码", diff --git a/src/pages/src/views/organization/components/fast-input-dialog.vue b/src/pages/src/views/organization/components/fast-input-dialog.vue index 68063d4f5..93a944677 100644 --- a/src/pages/src/views/organization/components/fast-input-dialog.vue +++ b/src/pages/src/views/organization/components/fast-input-dialog.vue @@ -76,7 +76,7 @@ v-else v-bkloading="{ loading: isLoading }" style="margin-top: 18px" - :height="290" + :min-height="290" :columns="showColumns" :data="tableData" stripe diff --git a/src/pages/src/views/setting/data-source/LdapConfig.vue b/src/pages/src/views/setting/data-source/LdapConfig.vue index 9b87ee89c..d7f8d0481 100644 --- a/src/pages/src/views/setting/data-source/LdapConfig.vue +++ b/src/pages/src/views/setting/data-source/LdapConfig.vue @@ -75,7 +75,7 @@ + :description="$t('支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN')">
+ :description="$t('支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN')">
+ property="user_group_config.search_base_dns" + :description="$t('支持同步多个 LDAP 树(森林),需为每棵树指定相应的 Base DN')">