视频列表创建人回显

This commit is contained in:
禺狨 2023-03-13 11:51:40 +08:00
parent 205efed0b7
commit 2ae8a74cc6
2 changed files with 13 additions and 3 deletions

View File

@ -109,6 +109,11 @@ export const ResourceImagesPage = () => {
setRefresh(!refresh);
};
const cancelAll = () => {
setSelectKey([]);
setRefresh(!refresh);
};
return (
<>
<div className="tree-main-body">
@ -132,6 +137,11 @@ export const ResourceImagesPage = () => {
}}
></UploadImageSub>
<div className="d-flex">
{selectKey.length > 0 && (
<Button className="mr-16" onClick={() => cancelAll()}>
</Button>
)}
<Button className="mr-16" onClick={() => selectAll()}>
</Button>

View File

@ -61,9 +61,9 @@ export const ResourceVideosPage = () => {
},
{
title: "创建人",
dataIndex: "id",
render: (id: string) =>
JSON.stringify(adminUsers) !== "{}" && <span>{adminUsers.id}</span>,
dataIndex: "admin_id",
render: (text: number) =>
JSON.stringify(adminUsers) !== "{}" && <span>{adminUsers[text]}</span>,
},
{
title: "视频时长",