diff --git a/src/pages/resource/courseware/index.tsx b/src/pages/resource/courseware/index.tsx
index 03bdca1..b547ef2 100644
--- a/src/pages/resource/courseware/index.tsx
+++ b/src/pages/resource/courseware/index.tsx
@@ -29,7 +29,7 @@ interface DataType {
id: React.Key;
name: string;
created_at: string;
- disk: string;
+ type: string;
number: number;
}
@@ -100,7 +100,7 @@ const ResourceCoursewarePage = () => {
{
title: "课件名称",
dataIndex: "name",
- render: (text: string) => (
+ render: (name: string) => (
{
color: "rgba(0,0,0,0.3)",
}}
/>
- {text}
+ {name}
),
},
{
title: "课件格式",
- dataIndex: "id",
+ dataIndex: "type",
width: 204,
- render: (id: string) => {id},
+ render: (type: string) => {type},
},
{
title: "课件大小",
@@ -161,7 +161,7 @@ const ResourceCoursewarePage = () => {
type="link"
className="b-link c-red"
onClick={() => {
- setUpdateId(record.id);
+ setUpdateId(record.url);
setUpdateVisible(true);
}}
>
@@ -259,7 +259,9 @@ const ResourceCoursewarePage = () => {
});
};
- const downLoadFile = (id: number) => {};
+ const downLoadFile = (url: string) => {
+ window.location.href = url;
+ };
return (
<>