fixed: 课程课件组价的缓存

This commit is contained in:
xxx 2023-08-03 09:07:44 +08:00
parent c0af8d165e
commit 354bd23fc9

View File

@ -152,70 +152,72 @@ export const CourseAttachmentUpdate: React.FC<PropInterface> = ({
return ( return (
<> <>
<Drawer {open ? (
title="课件管理" <Drawer
onClose={onCancel} title="课件管理"
maskClosable={false} onClose={onCancel}
open={open} maskClosable={false}
width={634} open={true}
> width={634}
<div className={styles["top-content"]}> >
<p>1.线</p> <div className={styles["top-content"]}>
</div> <p>1.线</p>
<div className="float-left mt-24"> </div>
<SelectAttachment <div className="float-left mt-24">
defaultKeys={attachments} <SelectAttachment
open={attachmentVisible} defaultKeys={attachments}
onCancel={() => { open={attachmentVisible}
setAttachmentVisible(false); onCancel={() => {
}} setAttachmentVisible(false);
onSelected={(arr: any, videos: any) => { }}
selectAttachmentData(arr, videos); onSelected={(arr: any, videos: any) => {
}} selectAttachmentData(arr, videos);
></SelectAttachment> }}
<Form ></SelectAttachment>
form={form} <Form
name="attachment-update-basic" form={form}
labelCol={{ span: 5 }} name="attachment-update-basic"
wrapperCol={{ span: 19 }} labelCol={{ span: 5 }}
initialValues={{ remember: true }} wrapperCol={{ span: 19 }}
onFinish={onFinish} initialValues={{ remember: true }}
onFinishFailed={onFinishFailed} onFinish={onFinish}
autoComplete="off" onFinishFailed={onFinishFailed}
> autoComplete="off"
<div className="c-flex"> >
<Form.Item> <div className="c-flex">
<div className="ml-42"> <Form.Item>
<Button <div className="ml-42">
onClick={() => setAttachmentVisible(true)} <Button
type="primary" onClick={() => setAttachmentVisible(true)}
> type="primary"
>
</Button>
</Button>
</div>
</Form.Item>
<div className={styles["hous-box"]}>
{attachmentData.length === 0 && (
<span className={styles["no-hours"]}>
</span>
)}
{attachmentData.length > 0 && (
<TreeAttachments
data={attachmentData}
onRemoveItem={(id: number) => {
delAttachments(id);
}}
onUpdate={(arr: any[]) => {
transAttachments(arr);
}}
/>
)}
</div> </div>
</Form.Item>
<div className={styles["hous-box"]}>
{attachmentData.length === 0 && (
<span className={styles["no-hours"]}>
</span>
)}
{attachmentData.length > 0 && (
<TreeAttachments
data={attachmentData}
onRemoveItem={(id: number) => {
delAttachments(id);
}}
onUpdate={(arr: any[]) => {
transAttachments(arr);
}}
/>
)}
</div> </div>
</div> </Form>
</Form> </div>
</div> </Drawer>
</Drawer> ) : null}
</> </>
); );
}; };