This commit is contained in:
unknown 2023-07-30 12:51:58 +08:00
parent d94d8afbba
commit 4e3d6b0969
3 changed files with 13 additions and 10 deletions

View File

@ -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">
wordexcelpptpdfziptxt格式文件
</p>
<p className="ant-upload-hint"></p> <p className="ant-upload-hint"></p>
</Dragger> </Dragger>
</Col> </Col>

View File

@ -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>

View File

@ -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">