From 4722c5d02a68e764c26e17a2d1d0cabb648d4386 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A6=BA=E7=8B=A8?= <18119604035@163.com> Date: Fri, 10 Mar 2023 17:28:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=86=E9=A2=91=E5=88=97=E8=A1=A8=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/resource/videos/index.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/pages/resource/videos/index.tsx b/src/pages/resource/videos/index.tsx index 3bb0419..93e3b1f 100644 --- a/src/pages/resource/videos/index.tsx +++ b/src/pages/resource/videos/index.tsx @@ -23,6 +23,7 @@ interface DataType { id: React.Key; name: string; created_at: string; + disk: string; } export const ResourceVideosPage = () => { @@ -36,11 +37,6 @@ export const ResourceVideosPage = () => { const [category_ids, setCategoryIds] = useState([]); const columns: ColumnsType = [ - { - title: "ID", - key: "id", - dataIndex: "id", - }, { title: "封面", dataIndex: "id", @@ -54,19 +50,23 @@ export const ResourceVideosPage = () => { ), }, { - title: "名称", + title: "视频名称", dataIndex: "name", render: (text: string) => {text}, }, { - title: "时长", + title: "视频时长", dataIndex: "id", render: (id: string) => ( ), }, { - title: "注册时间", + title: "创建人", + dataIndex: "disk", + }, + { + title: "视频时长", dataIndex: "created_at", render: (text: string) => {dateFormat(text)}, }, @@ -77,6 +77,9 @@ export const ResourceVideosPage = () => { width: 100, render: (_, record: any) => ( +