mirror of
https://github.com/PlayEdu/backend
synced 2025-07-21 21:19:40 +08:00
优化
This commit is contained in:
parent
d94d8afbba
commit
4e3d6b0969
@ -71,6 +71,7 @@ export const UploadCoursewareButton = (props: PropsInterface) => {
|
|||||||
file.type === "application/x-zip-compressed" ||
|
file.type === "application/x-zip-compressed" ||
|
||||||
file.type === "application/octet-stream" ||
|
file.type === "application/octet-stream" ||
|
||||||
file.type === "application/zip" ||
|
file.type === "application/zip" ||
|
||||||
|
file.type === "application/x-rar" ||
|
||||||
file.type ===
|
file.type ===
|
||||||
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ||
|
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" ||
|
||||||
file.type === "application/vnd.ms-excel" ||
|
file.type === "application/vnd.ms-excel" ||
|
||||||
@ -188,7 +189,9 @@ export const UploadCoursewareButton = (props: PropsInterface) => {
|
|||||||
<p className="ant-upload-drag-icon">
|
<p className="ant-upload-drag-icon">
|
||||||
<InboxOutlined />
|
<InboxOutlined />
|
||||||
</p>
|
</p>
|
||||||
<p className="ant-upload-text">请将文件拖拽到此处上传</p>
|
<p className="ant-upload-text">
|
||||||
|
支持word、excel、ppt、pdf、zip、txt格式文件
|
||||||
|
</p>
|
||||||
<p className="ant-upload-hint">支持一次上传多个文件</p>
|
<p className="ant-upload-hint">支持一次上传多个文件</p>
|
||||||
</Dragger>
|
</Dragger>
|
||||||
</Col>
|
</Col>
|
||||||
|
@ -84,6 +84,8 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
|||||||
setHours([]);
|
setHours([]);
|
||||||
setTreeData([]);
|
setTreeData([]);
|
||||||
setAttachmentData([]);
|
setAttachmentData([]);
|
||||||
|
setAttachments([]);
|
||||||
|
setShowDrop(false);
|
||||||
}, [form, open]);
|
}, [form, open]);
|
||||||
|
|
||||||
const getParams = () => {
|
const getParams = () => {
|
||||||
@ -793,7 +795,10 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
|||||||
className={showDrop ? "drop-item active" : "drop-item"}
|
className={showDrop ? "drop-item active" : "drop-item"}
|
||||||
onClick={() => setShowDrop(!showDrop)}
|
onClick={() => setShowDrop(!showDrop)}
|
||||||
>
|
>
|
||||||
<i className="iconfont icon-icon-xiala c-red" />
|
<i
|
||||||
|
style={{ fontSize: 14 }}
|
||||||
|
className="iconfont icon-icon-xiala c-red"
|
||||||
|
/>
|
||||||
<span>(课程简介、课件)</span>
|
<span>(课程简介、课件)</span>
|
||||||
</div>
|
</div>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
@ -93,18 +93,13 @@ const SystemLogPage = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const columns: ColumnsType<DataType> = [
|
const columns: ColumnsType<DataType> = [
|
||||||
{
|
|
||||||
title: "ID",
|
|
||||||
width: 100,
|
|
||||||
render: (_, record: any) => <span>{record.id}</span>,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "管理员名称",
|
title: "管理员名称",
|
||||||
width: 150,
|
width: 150,
|
||||||
render: (_, record: any) => <span>{record.admin_name}</span>,
|
render: (_, record: any) => <span>{record.admin_name}</span>,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "标题",
|
title: "操作",
|
||||||
render: (_, record: any) => <span>{record.title}</span>,
|
render: (_, record: any) => <span>{record.title}</span>,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -148,7 +143,7 @@ const SystemLogPage = () => {
|
|||||||
<div className="d-flex"></div>
|
<div className="d-flex"></div>
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
<div className="d-flex mr-24">
|
<div className="d-flex mr-24">
|
||||||
<Typography.Text>标题:</Typography.Text>
|
<Typography.Text>操作:</Typography.Text>
|
||||||
<Input
|
<Input
|
||||||
value={title}
|
value={title}
|
||||||
onChange={(e) => {
|
onChange={(e) => {
|
||||||
@ -156,7 +151,7 @@ const SystemLogPage = () => {
|
|||||||
}}
|
}}
|
||||||
allowClear
|
allowClear
|
||||||
style={{ width: 160 }}
|
style={{ width: 160 }}
|
||||||
placeholder="请输入标题"
|
placeholder="请输入操作"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div className="d-flex mr-24">
|
<div className="d-flex mr-24">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user