视频、图片列表优化

This commit is contained in:
unknown 2023-07-31 10:48:43 +08:00
parent 2ce6292f44
commit 242d29bf5e
3 changed files with 13 additions and 12 deletions

View File

@ -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)

View File

@ -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>

View File

@ -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 ? (