资源课件编辑组件初步

This commit is contained in:
unknown
2023-07-29 10:20:23 +08:00
parent 974afab24d
commit c4955adb03
2 changed files with 164 additions and 6 deletions

View File

@@ -16,12 +16,8 @@ import { useLocation } from "react-router-dom";
import { DownOutlined, ExclamationCircleFilled } from "@ant-design/icons";
import type { ColumnsType } from "antd/es/table";
import { dateFormat } from "../../../utils/index";
import {
TreeCategory,
DurationText,
PerButton,
UploadCoursewareButton,
} from "../../../compenents";
import { TreeCategory, UploadCoursewareButton } from "../../../compenents";
import { CoursewareUpdateDialog } from "./compenents/update-dialog";
const { confirm } = Modal;
@@ -378,6 +374,15 @@ const ResourceCoursewarePage = () => {
)}
</div>
</div>
<CoursewareUpdateDialog
id={Number(updateId)}
open={updateVisible}
onCancel={() => setUpdateVisible(false)}
onSuccess={() => {
setUpdateVisible(false);
setRefresh(!refresh);
}}
></CoursewareUpdateDialog>
</div>
</>
);