mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 07:09:27 +08:00
线上课添加、编辑增加简介字段
This commit is contained in:
@@ -62,7 +62,7 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
|
||||
category_ids: [],
|
||||
type: "open",
|
||||
isRequired: 1,
|
||||
desc: "",
|
||||
short_desc: "",
|
||||
hasChapter: 0,
|
||||
});
|
||||
setThumb(defaultThumb1);
|
||||
@@ -129,6 +129,7 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
|
||||
.storeCourse(
|
||||
values.title,
|
||||
values.thumb,
|
||||
values.short_desc,
|
||||
1,
|
||||
values.isRequired,
|
||||
dep_ids,
|
||||
@@ -496,7 +497,7 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
|
||||
</div>
|
||||
</div>
|
||||
</Form.Item>
|
||||
<Form.Item label="课程简介" name="desc">
|
||||
<Form.Item label="课程简介" name="short_desc">
|
||||
<Input.TextArea
|
||||
style={{ width: 424, height: 80 }}
|
||||
allowClear
|
||||
|
||||
@@ -138,7 +138,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
||||
category_ids: categoryIds,
|
||||
isRequired: res.data.course.isRequired,
|
||||
type: type,
|
||||
desc: "",
|
||||
short_desc: res.data.course.short_desc,
|
||||
hasChapter: chapterType,
|
||||
});
|
||||
setType(type);
|
||||
@@ -242,6 +242,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
||||
id,
|
||||
values.title,
|
||||
values.thumb,
|
||||
values.short_desc,
|
||||
1,
|
||||
values.isRequired,
|
||||
dep_ids,
|
||||
@@ -609,7 +610,7 @@ export const CourseUpdate: React.FC<PropInterface> = ({
|
||||
</div>
|
||||
</div>
|
||||
</Form.Item>
|
||||
<Form.Item label="课程简介" name="desc">
|
||||
<Form.Item label="课程简介" name="short_desc">
|
||||
<Input.TextArea
|
||||
style={{ width: 424, height: 80 }}
|
||||
allowClear
|
||||
|
||||
Reference in New Issue
Block a user