资源视频编辑、删除权限去除

This commit is contained in:
禺狨 2023-06-13 10:47:49 +08:00
parent 87d1fc8e01
commit 5d69ed977b

View File

@ -97,32 +97,28 @@ const ResourceVideosPage = () => {
{ {
key: "1", key: "1",
label: ( label: (
<PerButton <Button
type="link" type="link"
text="编辑" className="b-link c-red"
class="b-link c-red"
icon={null}
p="resource-update"
onClick={() => { onClick={() => {
setUpdateId(record.id); setUpdateId(record.id);
setUpdateVisible(true); setUpdateVisible(true);
}} }}
disabled={null} >
/>
</Button>
), ),
}, },
{ {
key: "2", key: "2",
label: ( label: (
<PerButton <Button
type="link" type="link"
text="删除" className="b-link c-red"
class="b-link c-red"
icon={null}
p="resource-destroy"
onClick={() => removeResource(record.id)} onClick={() => removeResource(record.id)}
disabled={null} >
/>
</Button>
), ),
}, },
]; ];
@ -302,15 +298,13 @@ const ResourceVideosPage = () => {
> >
{multiConfig ? "取消操作" : "批量操作"} {multiConfig ? "取消操作" : "批量操作"}
</Button> </Button>
<PerButton <Button
type="default" type="default"
text="删除"
class=""
icon={null}
p="resource-destroy"
onClick={() => removeResourceMulti()} onClick={() => removeResourceMulti()}
disabled={selectedRowKeys.length === 0} disabled={selectedRowKeys.length === 0}
/> >
</Button>
</div> </div>
</div> </div>
<div className="float-left"> <div className="float-left">