mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 21:49:23 +08:00
fix(系统设置): 修复导入用户姓名长度提示与修改用户姓名长度提示不一致问题
--bug=1028086 --user=王旭 【系统设置】github#25748,系统设置-用户:excel导入用户提示名称不能超出64字符,改成名称刚好64 页面上再修改这个用户 提示字段在2-50 https://www.tapd.cn/55049933/s/1396363
This commit is contained in:
parent
4946331adc
commit
31c339c78e
@ -88,8 +88,8 @@ public class UserDataListener extends EasyExcelListener<UserExcelData> {
|
||||
stringBuilder.append(Translator.get("user_import_id_too_long") + ";");
|
||||
}
|
||||
|
||||
if (data.getName().length() > 64) {
|
||||
stringBuilder.append(Translator.get("user_import_name_too_long") + ";");
|
||||
if (data.getName().length() > 50 || data.getName().length() < 2) {
|
||||
stringBuilder.append(Translator.get("user_import_name_length_limit") + ";");
|
||||
}
|
||||
|
||||
if (containsChineseCharacter(data.getId())) {
|
||||
|
@ -7,4 +7,4 @@ plugin_parse_error=Plugin parse error
|
||||
plugin_type_error=Plugin type selection error!
|
||||
user_import_id_not_chinese=User id cannot be Chinese
|
||||
user_import_id_too_long=User ID length cannot exceed 50 characters
|
||||
user_import_name_too_long=Username length cannot exceed 64 characters
|
||||
user_import_name_length_limit=The name must be between 2-50 characters in length
|
@ -7,4 +7,4 @@ plugin_parse_error=插件解析失败
|
||||
plugin_type_error=插件类型选择错误!
|
||||
user_import_id_not_chinese=用户ID不能为中文
|
||||
user_import_id_too_long=用户ID长度不能超过50个字符
|
||||
user_import_name_too_long=用户名称长度不能超过64个字符
|
||||
user_import_name_length_limit=姓名长度必须在2-50个字符之间
|
||||
|
@ -7,4 +7,4 @@ plugin_parse_error=插件解析失敗!
|
||||
plugin_type_error=插件類型選擇錯誤!
|
||||
user_import_id_not_chinese=用戶id不能為中文
|
||||
user_import_id_too_long=用戶ID長度不能超過50個字符
|
||||
user_import_name_too_long=用戶名稱長度不能超過64個字符
|
||||
user_import_name_length_limit=姓名長度必須在2-50個字符之間
|
Loading…
Reference in New Issue
Block a user