mirror of
https://github.com/PlayEdu/backend
synced 2025-06-07 20:55:41 +08:00
commit
61573f1891
@ -6,7 +6,7 @@ interface PropInterface {
|
||||
text: string;
|
||||
p: string;
|
||||
class: string;
|
||||
icon: any;
|
||||
icon?: any;
|
||||
onClick?: () => void;
|
||||
disabled: any;
|
||||
}
|
||||
|
@ -129,8 +129,10 @@ export const TreeDepartment = (props: PropInterface) => {
|
||||
if (info) {
|
||||
label = info.node.title.props.children;
|
||||
}
|
||||
props.onUpdate(selectedKeys, label);
|
||||
setSelectKey(selectedKeys);
|
||||
if (selectedKeys.length <= 1) {
|
||||
props.onUpdate(selectedKeys, label);
|
||||
setSelectKey(selectedKeys);
|
||||
}
|
||||
};
|
||||
|
||||
const onExpand = (selectedKeys: any, info: any) => {
|
||||
@ -138,8 +140,10 @@ export const TreeDepartment = (props: PropInterface) => {
|
||||
if (info) {
|
||||
label = info.node.title.props.children;
|
||||
}
|
||||
props.onUpdate(selectedKeys, label);
|
||||
setSelectKey(selectedKeys);
|
||||
if (selectedKeys.length <= 1) {
|
||||
props.onUpdate(selectedKeys, label);
|
||||
setSelectKey(selectedKeys);
|
||||
}
|
||||
};
|
||||
|
||||
return (
|
||||
|
@ -330,6 +330,10 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
||||
});
|
||||
} else {
|
||||
setChapterType(e.target.value);
|
||||
setChapters([]);
|
||||
setHours([]);
|
||||
setChapterHours([]);
|
||||
setTreeData([]);
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -396,7 +396,6 @@ const MemberPage = () => {
|
||||
type="default"
|
||||
text="部门学员进度"
|
||||
class="mr-16"
|
||||
icon={null}
|
||||
p="department-user-learn"
|
||||
disabled={null}
|
||||
/>
|
||||
|
@ -170,10 +170,6 @@ const SystemConfigPage = () => {
|
||||
form.setFieldsValue({
|
||||
"ldap.base_dn": configData[i].key_value,
|
||||
});
|
||||
} else if (configData[i].key_name === "ldap.user_dn_prefix") {
|
||||
form.setFieldsValue({
|
||||
"ldap.user_dn_prefix": configData[i].key_value,
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
@ -731,7 +727,7 @@ const SystemConfigPage = () => {
|
||||
/>
|
||||
</Form.Item>
|
||||
<div className="helper-text">
|
||||
(LDAP的对外服务地址。例如:ldap.example.com)
|
||||
(LDAP的对外服务地址。例如:ldap://ldap.example.com:389)
|
||||
</div>
|
||||
</Space>
|
||||
</Form.Item>
|
||||
@ -765,21 +761,7 @@ const SystemConfigPage = () => {
|
||||
placeholder="请填写基本DN"
|
||||
/>
|
||||
</Form.Item>
|
||||
<div className="helper-text">(从LDAP根节点搜索用户)</div>
|
||||
</Space>
|
||||
</Form.Item>
|
||||
<Form.Item style={{ marginBottom: 30 }} label="附件用户DN">
|
||||
<Space align="baseline" style={{ height: 32 }}>
|
||||
<Form.Item name="ldap.user_dn_prefix">
|
||||
<Input
|
||||
style={{ width: 274 }}
|
||||
allowClear
|
||||
placeholder="请填写基本DN"
|
||||
/>
|
||||
</Form.Item>
|
||||
<div className="helper-text">
|
||||
(搜索用户时,基于基础DN的搜索范围限制)
|
||||
</div>
|
||||
<div className="helper-text">(从此节点搜索用户)</div>
|
||||
</Space>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
|
Loading…
x
Reference in New Issue
Block a user