fix(*): 全量 UI 审查与 undefined 展示异常修复

This commit is contained in:
zhanjunhao
2026-11-20 10:18:17 +08:00
parent 04cc45bbb7
commit 605cff1d58
65 changed files with 507 additions and 274 deletions
+5 -1
View File
@@ -251,7 +251,11 @@ function AccessGroupSelect({ id, value, onChange, groupOptions, placeholder }) {
);
}
const orgOptionLabel = (org) => `${org.name || ''} (#${org.id})`;
const orgOptionLabel = (org) => {
const name = org?.name?.trim();
const reference = formatIdReference(org?.id);
return name ? `${name} (${reference})` : reference;
};
// 开放企业多选:远程搜索管理端企业列表(名称 / 代码 / 联系人),值只存企业 ID。
// 已保存的企业由父组件按 ID 批量回填名称(orgLabels),已删除的企业回显为