Merge pull request !12 from 白书科技/fix/0925
This commit is contained in:
白书科技 2023-09-25 06:55:35 +00:00 committed by Gitee
commit 61573f1891
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
5 changed files with 15 additions and 26 deletions

View File

@ -6,7 +6,7 @@ interface PropInterface {
text: string;
p: string;
class: string;
icon: any;
icon?: any;
onClick?: () => void;
disabled: any;
}

View File

@ -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 (

View File

@ -330,6 +330,10 @@ export const CourseCreate: React.FC<PropInterface> = ({
});
} else {
setChapterType(e.target.value);
setChapters([]);
setHours([]);
setChapterHours([]);
setTreeData([]);
}
};

View File

@ -396,7 +396,6 @@ const MemberPage = () => {
type="default"
text="部门学员进度"
class="mr-16"
icon={null}
p="department-user-learn"
disabled={null}
/>

View File

@ -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