mirror of
https://github.com/PlayEdu/backend
synced 2025-07-22 06:02:18 +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/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) => {
|
||||
<p className="ant-upload-drag-icon">
|
||||
<InboxOutlined />
|
||||
</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>
|
||||
</Dragger>
|
||||
</Col>
|
||||
|
@ -84,6 +84,8 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
||||
setHours([]);
|
||||
setTreeData([]);
|
||||
setAttachmentData([]);
|
||||
setAttachments([]);
|
||||
setShowDrop(false);
|
||||
}, [form, open]);
|
||||
|
||||
const getParams = () => {
|
||||
@ -793,7 +795,10 @@ export const CourseCreate: React.FC<PropInterface> = ({
|
||||
className={showDrop ? "drop-item active" : "drop-item"}
|
||||
onClick={() => setShowDrop(!showDrop)}
|
||||
>
|
||||
<i className="iconfont icon-icon-xiala c-red" />
|
||||
<i
|
||||
style={{ fontSize: 14 }}
|
||||
className="iconfont icon-icon-xiala c-red"
|
||||
/>
|
||||
<span>(课程简介、课件)</span>
|
||||
</div>
|
||||
</Form.Item>
|
||||
|
@ -93,18 +93,13 @@ const SystemLogPage = () => {
|
||||
};
|
||||
|
||||
const columns: ColumnsType<DataType> = [
|
||||
{
|
||||
title: "ID",
|
||||
width: 100,
|
||||
render: (_, record: any) => <span>{record.id}</span>,
|
||||
},
|
||||
{
|
||||
title: "管理员名称",
|
||||
width: 150,
|
||||
render: (_, record: any) => <span>{record.admin_name}</span>,
|
||||
},
|
||||
{
|
||||
title: "标题",
|
||||
title: "操作",
|
||||
render: (_, record: any) => <span>{record.title}</span>,
|
||||
},
|
||||
{
|
||||
@ -148,7 +143,7 @@ const SystemLogPage = () => {
|
||||
<div className="d-flex"></div>
|
||||
<div className="d-flex">
|
||||
<div className="d-flex mr-24">
|
||||
<Typography.Text>标题:</Typography.Text>
|
||||
<Typography.Text>操作:</Typography.Text>
|
||||
<Input
|
||||
value={title}
|
||||
onChange={(e) => {
|
||||
@ -156,7 +151,7 @@ const SystemLogPage = () => {
|
||||
}}
|
||||
allowClear
|
||||
style={{ width: 160 }}
|
||||
placeholder="请输入标题"
|
||||
placeholder="请输入操作"
|
||||
/>
|
||||
</div>
|
||||
<div className="d-flex mr-24">
|
||||
|
Loading…
x
Reference in New Issue
Block a user