fix: 优化顶级部门存在和子部门重复时,用户导入错误的问题

This commit is contained in:
2026-08-13 22:30:45 +08:00
parent 64a85c6a5b
commit 9be9bd7665
4 changed files with 222 additions and 76 deletions

View File

@@ -52,7 +52,7 @@
"batchResetPasswordAllFailed": "Batch password reset failed",
"importTitle": "Import Users",
"importUploadTitle": "Drag the Excel file here, or click to select a file",
"importUploadDesc": "Only .xlsx / .xls files are supported. Fill department, role, and position by name. Headers marked with * are required.",
"importUploadDesc": "Only .xlsx / .xls files are supported. Prefer the full department path; enter roles and positions by name. Headers marked with * are required.",
"importSelectFileRequired": "Please select a file to import",
"downloadTemplate": "Download Template",
"importFinished": "User import completed",
@@ -68,7 +68,7 @@
"importFieldValue": "Value",
"importReason": "Reason",
"importGuideTitle": "Instructions",
"importGuideNameRule": "Enter department, role, and position by name.",
"importGuideRequired": "Only department name, login name, and nickname are required. Position, mobile, and email are optional.",
"importGuideNameRule": "Enter the full department path and separate levels with /. Enter a top-level department by name.",
"importGuideRequired": "Department path, login name, nickname, and role name are required. Position, mobile, and email are optional.",
"importGuideMultiValue": "Role and position accept multiple names separated by commas."
}

View File

@@ -53,7 +53,7 @@
"batchResetPasswordAllFailed": "批量重置密码失败",
"importTitle": "导入用户",
"importUploadTitle": "拖拽 Excel 文件到此处,或点击选择文件",
"importUploadDesc": "仅支持 .xlsx / .xls。请按名称填写部门、角色、岗位,模板中的 * 为必填项。",
"importUploadDesc": "仅支持 .xlsx / .xls。部门优先填写完整路径,角色、岗位填写名称,模板中的 * 为必填项。",
"importSelectFileRequired": "请先选择要导入的文件",
"downloadTemplate": "下载导入模板",
"importFinished": "用户导入完成",
@@ -69,7 +69,7 @@
"importFieldValue": "填写内容",
"importReason": "失败原因",
"importGuideTitle": "填写说明",
"importGuideNameRule": "部门、角色、岗位都填写名称。",
"importGuideRequired": "部门名称、登录账号、昵称为必填;岗位、手机号、邮箱为非必填。",
"importGuideNameRule": "部门按完整路径填写,多级部门使用英文 / 分隔;顶级部门直接填写名称。",
"importGuideRequired": "部门路径、登录账号、昵称、角色名称为必填;岗位、手机号、邮箱为非必填。",
"importGuideMultiValue": "角色和岗位支持多个名称,使用英文逗号或中文逗号分隔。"
}