mirror of
https://github.com/PlayEdu/backend
synced 2025-06-28 20:42:50 +08:00
fixed: 课程课件组价的缓存
This commit is contained in:
parent
c0af8d165e
commit
354bd23fc9
@ -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}
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user