mirror of
https://github.com/PlayEdu/backend
synced 2025-06-22 03:32:47 +08:00
资源视频编辑、删除权限去除
This commit is contained in:
parent
87d1fc8e01
commit
5d69ed977b
@ -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">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user