mirror of
https://github.com/PlayEdu/backend
synced 2025-07-19 20:49:40 +08:00
视频列表优化
This commit is contained in:
parent
b585766d84
commit
4722c5d02a
@ -23,6 +23,7 @@ interface DataType {
|
|||||||
id: React.Key;
|
id: React.Key;
|
||||||
name: string;
|
name: string;
|
||||||
created_at: string;
|
created_at: string;
|
||||||
|
disk: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const ResourceVideosPage = () => {
|
export const ResourceVideosPage = () => {
|
||||||
@ -36,11 +37,6 @@ export const ResourceVideosPage = () => {
|
|||||||
const [category_ids, setCategoryIds] = useState<any>([]);
|
const [category_ids, setCategoryIds] = useState<any>([]);
|
||||||
|
|
||||||
const columns: ColumnsType<DataType> = [
|
const columns: ColumnsType<DataType> = [
|
||||||
{
|
|
||||||
title: "ID",
|
|
||||||
key: "id",
|
|
||||||
dataIndex: "id",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
title: "封面",
|
title: "封面",
|
||||||
dataIndex: "id",
|
dataIndex: "id",
|
||||||
@ -54,19 +50,23 @@ export const ResourceVideosPage = () => {
|
|||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "名称",
|
title: "视频名称",
|
||||||
dataIndex: "name",
|
dataIndex: "name",
|
||||||
render: (text: string) => <span>{text}</span>,
|
render: (text: string) => <span>{text}</span>,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "时长",
|
title: "视频时长",
|
||||||
dataIndex: "id",
|
dataIndex: "id",
|
||||||
render: (id: string) => (
|
render: (id: string) => (
|
||||||
<DurationText duration={videosExtra[id].duration}></DurationText>
|
<DurationText duration={videosExtra[id].duration}></DurationText>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "注册时间",
|
title: "创建人",
|
||||||
|
dataIndex: "disk",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
title: "视频时长",
|
||||||
dataIndex: "created_at",
|
dataIndex: "created_at",
|
||||||
render: (text: string) => <span>{dateFormat(text)}</span>,
|
render: (text: string) => <span>{dateFormat(text)}</span>,
|
||||||
},
|
},
|
||||||
@ -77,6 +77,9 @@ export const ResourceVideosPage = () => {
|
|||||||
width: 100,
|
width: 100,
|
||||||
render: (_, record: any) => (
|
render: (_, record: any) => (
|
||||||
<Space size="small">
|
<Space size="small">
|
||||||
|
<Button type="link" className="b-link c-red" onClick={() => null}>
|
||||||
|
编辑
|
||||||
|
</Button>
|
||||||
<Popconfirm
|
<Popconfirm
|
||||||
title="警告"
|
title="警告"
|
||||||
description="即将删除此账号,确认操作?"
|
description="即将删除此账号,确认操作?"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user