mirror of
https://github.com/PlayEdu/backend
synced 2025-06-20 23:12:47 +08:00
资源课件列表文案优化和下载
This commit is contained in:
parent
036aad067f
commit
12c1492d02
@ -29,7 +29,7 @@ interface DataType {
|
|||||||
id: React.Key;
|
id: React.Key;
|
||||||
name: string;
|
name: string;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
disk: string;
|
type: string;
|
||||||
number: number;
|
number: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,7 +100,7 @@ const ResourceCoursewarePage = () => {
|
|||||||
{
|
{
|
||||||
title: "课件名称",
|
title: "课件名称",
|
||||||
dataIndex: "name",
|
dataIndex: "name",
|
||||||
render: (text: string) => (
|
render: (name: string) => (
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
<i
|
<i
|
||||||
className="iconfont icon-icon-file"
|
className="iconfont icon-icon-file"
|
||||||
@ -109,15 +109,15 @@ const ResourceCoursewarePage = () => {
|
|||||||
color: "rgba(0,0,0,0.3)",
|
color: "rgba(0,0,0,0.3)",
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
<span className="ml-8">{text}</span>
|
<span className="ml-8">{name}</span>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "课件格式",
|
title: "课件格式",
|
||||||
dataIndex: "id",
|
dataIndex: "type",
|
||||||
width: 204,
|
width: 204,
|
||||||
render: (id: string) => <span>{id}</span>,
|
render: (type: string) => <span>{type}</span>,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "课件大小",
|
title: "课件大小",
|
||||||
@ -161,7 +161,7 @@ const ResourceCoursewarePage = () => {
|
|||||||
type="link"
|
type="link"
|
||||||
className="b-link c-red"
|
className="b-link c-red"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setUpdateId(record.id);
|
setUpdateId(record.url);
|
||||||
setUpdateVisible(true);
|
setUpdateVisible(true);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@ -259,7 +259,9 @@ const ResourceCoursewarePage = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
const downLoadFile = (id: number) => {};
|
const downLoadFile = (url: string) => {
|
||||||
|
window.location.href = url;
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user