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