fix(*): 全量 UI 审查与 undefined 展示异常修复
This commit is contained in:
@@ -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),已删除的企业回显为
|
||||
|
||||
Reference in New Issue
Block a user