mirror of
https://github.com/PlayEdu/backend
synced 2025-07-21 21:09:41 +08:00
视频列表创建人回显
This commit is contained in:
parent
205efed0b7
commit
2ae8a74cc6
@ -109,6 +109,11 @@ export const ResourceImagesPage = () => {
|
|||||||
setRefresh(!refresh);
|
setRefresh(!refresh);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const cancelAll = () => {
|
||||||
|
setSelectKey([]);
|
||||||
|
setRefresh(!refresh);
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="tree-main-body">
|
<div className="tree-main-body">
|
||||||
@ -132,6 +137,11 @@ export const ResourceImagesPage = () => {
|
|||||||
}}
|
}}
|
||||||
></UploadImageSub>
|
></UploadImageSub>
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
|
{selectKey.length > 0 && (
|
||||||
|
<Button className="mr-16" onClick={() => cancelAll()}>
|
||||||
|
取消全选
|
||||||
|
</Button>
|
||||||
|
)}
|
||||||
<Button className="mr-16" onClick={() => selectAll()}>
|
<Button className="mr-16" onClick={() => selectAll()}>
|
||||||
全选
|
全选
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -61,9 +61,9 @@ export const ResourceVideosPage = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "创建人",
|
title: "创建人",
|
||||||
dataIndex: "id",
|
dataIndex: "admin_id",
|
||||||
render: (id: string) =>
|
render: (text: number) =>
|
||||||
JSON.stringify(adminUsers) !== "{}" && <span>{adminUsers.id}</span>,
|
JSON.stringify(adminUsers) !== "{}" && <span>{adminUsers[text]}</span>,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "视频时长",
|
title: "视频时长",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user