mirror of
https://github.com/PlayEdu/backend
synced 2025-06-29 01:14:20 +08:00
视频、图片列表优化
This commit is contained in:
parent
2ce6292f44
commit
242d29bf5e
@ -80,7 +80,6 @@ export const CourseAttachmentUpdate: React.FC<PropInterface> = ({
|
||||
message.error("请选择课件");
|
||||
return;
|
||||
}
|
||||
console.log(hours);
|
||||
|
||||
courseAttachment
|
||||
.storeCourseAttachmentMulti(id, hours)
|
||||
|
@ -183,24 +183,25 @@ const ResourceImagesPage = () => {
|
||||
<Row gutter={16} style={{ marginBottom: 24 }}>
|
||||
<Col span={24}>
|
||||
<div className="j-b-flex">
|
||||
<div className="d-flex">
|
||||
<UploadImageSub
|
||||
categoryIds={category_ids}
|
||||
onUpdate={() => {
|
||||
resetImageList();
|
||||
}}
|
||||
></UploadImageSub>
|
||||
<div className="d-flex">
|
||||
{selectKey.length > 0 && (
|
||||
<Button className="mr-16" onClick={() => cancelAll()}>
|
||||
<Button className="ml-16" onClick={() => cancelAll()}>
|
||||
取消选择
|
||||
</Button>
|
||||
)}
|
||||
{imageList.length !== 0 && (
|
||||
<>
|
||||
<Button className="mr-16" onClick={() => selectAll()}>
|
||||
<Button className="ml-16" onClick={() => selectAll()}>
|
||||
全选
|
||||
</Button>
|
||||
<Button
|
||||
className="ml-16"
|
||||
disabled={selectKey.length === 0}
|
||||
type="primary"
|
||||
onClick={() => removeResource()}
|
||||
@ -210,6 +211,7 @@ const ResourceImagesPage = () => {
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
<div className="d-flex"></div>
|
||||
</div>
|
||||
</Col>
|
||||
</Row>
|
||||
|
@ -286,11 +286,9 @@ const ResourceVideosPage = () => {
|
||||
resetVideoList();
|
||||
}}
|
||||
></UploadVideoButton>
|
||||
</div>
|
||||
<div className="d-flex">
|
||||
<Button
|
||||
type="default"
|
||||
className="mr-16"
|
||||
className="ml-16"
|
||||
onClick={() => {
|
||||
setSelectedRowKeys([]);
|
||||
setMultiConfig(!multiConfig);
|
||||
@ -299,6 +297,7 @@ const ResourceVideosPage = () => {
|
||||
{multiConfig ? "取消操作" : "批量操作"}
|
||||
</Button>
|
||||
<Button
|
||||
className="ml-16"
|
||||
type="default"
|
||||
onClick={() => removeResourceMulti()}
|
||||
disabled={selectedRowKeys.length === 0}
|
||||
@ -306,6 +305,7 @@ const ResourceVideosPage = () => {
|
||||
删除
|
||||
</Button>
|
||||
</div>
|
||||
<div className="d-flex"></div>
|
||||
</div>
|
||||
<div className="float-left">
|
||||
{multiConfig ? (
|
||||
|
Loading…
x
Reference in New Issue
Block a user