mirror of
https://github.com/PlayEdu/backend
synced 2025-06-28 19:32:51 +08:00
资源删除权限去除
This commit is contained in:
parent
fd2f1327ac
commit
8171b16bc6
@ -200,15 +200,13 @@ const ResourceImagesPage = () => {
|
|||||||
<Button className="mr-16" onClick={() => selectAll()}>
|
<Button className="mr-16" onClick={() => selectAll()}>
|
||||||
全选
|
全选
|
||||||
</Button>
|
</Button>
|
||||||
<PerButton
|
<Button
|
||||||
disabled={selectKey.length === 0}
|
disabled={selectKey.length === 0}
|
||||||
type="primary"
|
type="primary"
|
||||||
text="删除"
|
|
||||||
class=""
|
|
||||||
icon={null}
|
|
||||||
p="resource-destroy"
|
|
||||||
onClick={() => removeResource()}
|
onClick={() => removeResource()}
|
||||||
/>
|
>
|
||||||
|
删除
|
||||||
|
</Button>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -84,7 +84,6 @@ const ResourceCategoryPage = () => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{through("resource-destroy") && (
|
|
||||||
<i
|
<i
|
||||||
className="iconfont icon-icon-delete"
|
className="iconfont icon-icon-delete"
|
||||||
style={{ fontSize: 24 }}
|
style={{ fontSize: 24 }}
|
||||||
@ -92,7 +91,6 @@ const ResourceCategoryPage = () => {
|
|||||||
removeItem(categories[id][i].id, categories[id][i].name)
|
removeItem(categories[id][i].id, categories[id][i].name)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
@ -121,7 +119,6 @@ const ResourceCategoryPage = () => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{through("resource-destroy") && (
|
|
||||||
<i
|
<i
|
||||||
className="iconfont icon-icon-delete"
|
className="iconfont icon-icon-delete"
|
||||||
style={{ fontSize: 24 }}
|
style={{ fontSize: 24 }}
|
||||||
@ -129,7 +126,6 @@ const ResourceCategoryPage = () => {
|
|||||||
removeItem(categories[id][i].id, categories[id][i].name)
|
removeItem(categories[id][i].id, categories[id][i].name)
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user