From 4e3d6b09696e7d4c261c7a8e110928a896836144 Mon Sep 17 00:00:00 2001 From: unknown <18119604035@163.com> Date: Sun, 30 Jul 2023 12:51:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/compenents/upload-courseware-button/index.tsx | 5 ++++- src/pages/course/compenents/create.tsx | 7 ++++++- src/pages/system/adminlog/index.tsx | 11 +++-------- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/compenents/upload-courseware-button/index.tsx b/src/compenents/upload-courseware-button/index.tsx index d4dd9cb..64435c0 100644 --- a/src/compenents/upload-courseware-button/index.tsx +++ b/src/compenents/upload-courseware-button/index.tsx @@ -71,6 +71,7 @@ export const UploadCoursewareButton = (props: PropsInterface) => { file.type === "application/x-zip-compressed" || file.type === "application/octet-stream" || file.type === "application/zip" || + file.type === "application/x-rar" || file.type === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" || file.type === "application/vnd.ms-excel" || @@ -188,7 +189,9 @@ export const UploadCoursewareButton = (props: PropsInterface) => {

-

请将文件拖拽到此处上传

+

+ 支持word、excel、ppt、pdf、zip、txt格式文件 +

支持一次上传多个文件

diff --git a/src/pages/course/compenents/create.tsx b/src/pages/course/compenents/create.tsx index c67d186..cba360e 100644 --- a/src/pages/course/compenents/create.tsx +++ b/src/pages/course/compenents/create.tsx @@ -84,6 +84,8 @@ export const CourseCreate: React.FC = ({ setHours([]); setTreeData([]); setAttachmentData([]); + setAttachments([]); + setShowDrop(false); }, [form, open]); const getParams = () => { @@ -793,7 +795,10 @@ export const CourseCreate: React.FC = ({ className={showDrop ? "drop-item active" : "drop-item"} onClick={() => setShowDrop(!showDrop)} > - + (课程简介、课件) diff --git a/src/pages/system/adminlog/index.tsx b/src/pages/system/adminlog/index.tsx index b05c597..36c24d4 100644 --- a/src/pages/system/adminlog/index.tsx +++ b/src/pages/system/adminlog/index.tsx @@ -93,18 +93,13 @@ const SystemLogPage = () => { }; const columns: ColumnsType = [ - { - title: "ID", - width: 100, - render: (_, record: any) => {record.id}, - }, { title: "管理员名称", width: 150, render: (_, record: any) => {record.admin_name}, }, { - title: "标题", + title: "操作", render: (_, record: any) => {record.title}, }, { @@ -148,7 +143,7 @@ const SystemLogPage = () => {
- 标题: + 操作: { @@ -156,7 +151,7 @@ const SystemLogPage = () => { }} allowClear style={{ width: 160 }} - placeholder="请输入标题" + placeholder="请输入操作" />