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("请选择课件");
|
message.error("请选择课件");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
console.log(hours);
|
|
||||||
|
|
||||||
courseAttachment
|
courseAttachment
|
||||||
.storeCourseAttachmentMulti(id, hours)
|
.storeCourseAttachmentMulti(id, hours)
|
||||||
|
@ -183,24 +183,25 @@ const ResourceImagesPage = () => {
|
|||||||
<Row gutter={16} style={{ marginBottom: 24 }}>
|
<Row gutter={16} style={{ marginBottom: 24 }}>
|
||||||
<Col span={24}>
|
<Col span={24}>
|
||||||
<div className="j-b-flex">
|
<div className="j-b-flex">
|
||||||
<UploadImageSub
|
|
||||||
categoryIds={category_ids}
|
|
||||||
onUpdate={() => {
|
|
||||||
resetImageList();
|
|
||||||
}}
|
|
||||||
></UploadImageSub>
|
|
||||||
<div className="d-flex">
|
<div className="d-flex">
|
||||||
|
<UploadImageSub
|
||||||
|
categoryIds={category_ids}
|
||||||
|
onUpdate={() => {
|
||||||
|
resetImageList();
|
||||||
|
}}
|
||||||
|
></UploadImageSub>
|
||||||
{selectKey.length > 0 && (
|
{selectKey.length > 0 && (
|
||||||
<Button className="mr-16" onClick={() => cancelAll()}>
|
<Button className="ml-16" onClick={() => cancelAll()}>
|
||||||
取消选择
|
取消选择
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
{imageList.length !== 0 && (
|
{imageList.length !== 0 && (
|
||||||
<>
|
<>
|
||||||
<Button className="mr-16" onClick={() => selectAll()}>
|
<Button className="ml-16" onClick={() => selectAll()}>
|
||||||
全选
|
全选
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
|
className="ml-16"
|
||||||
disabled={selectKey.length === 0}
|
disabled={selectKey.length === 0}
|
||||||
type="primary"
|
type="primary"
|
||||||
onClick={() => removeResource()}
|
onClick={() => removeResource()}
|
||||||
@ -210,6 +211,7 @@ const ResourceImagesPage = () => {
|
|||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
<div className="d-flex"></div>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
</Row>
|
</Row>
|
||||||
|
@ -286,11 +286,9 @@ const ResourceVideosPage = () => {
|
|||||||
resetVideoList();
|
resetVideoList();
|
||||||
}}
|
}}
|
||||||
></UploadVideoButton>
|
></UploadVideoButton>
|
||||||
</div>
|
|
||||||
<div className="d-flex">
|
|
||||||
<Button
|
<Button
|
||||||
type="default"
|
type="default"
|
||||||
className="mr-16"
|
className="ml-16"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setSelectedRowKeys([]);
|
setSelectedRowKeys([]);
|
||||||
setMultiConfig(!multiConfig);
|
setMultiConfig(!multiConfig);
|
||||||
@ -299,6 +297,7 @@ const ResourceVideosPage = () => {
|
|||||||
{multiConfig ? "取消操作" : "批量操作"}
|
{multiConfig ? "取消操作" : "批量操作"}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button
|
||||||
|
className="ml-16"
|
||||||
type="default"
|
type="default"
|
||||||
onClick={() => removeResourceMulti()}
|
onClick={() => removeResourceMulti()}
|
||||||
disabled={selectedRowKeys.length === 0}
|
disabled={selectedRowKeys.length === 0}
|
||||||
@ -306,6 +305,7 @@ const ResourceVideosPage = () => {
|
|||||||
删除
|
删除
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="d-flex"></div>
|
||||||
</div>
|
</div>
|
||||||
<div className="float-left">
|
<div className="float-left">
|
||||||
{multiConfig ? (
|
{multiConfig ? (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user