mirror of
https://github.com/PlayEdu/backend
synced 2025-12-25 17:49:30 +08:00
线上课加入选修必修字段
This commit is contained in:
@@ -61,6 +61,7 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
|
||||
dep_ids: [],
|
||||
category_ids: [],
|
||||
type: "open",
|
||||
isRequired: 1,
|
||||
desc: "",
|
||||
hasChapter: 0,
|
||||
});
|
||||
@@ -129,6 +130,7 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
|
||||
values.title,
|
||||
values.thumb,
|
||||
1,
|
||||
values.isRequired,
|
||||
dep_ids,
|
||||
category_ids,
|
||||
chapters,
|
||||
@@ -359,6 +361,16 @@ export const CourseCreate: React.FC<PropInterface> = ({ open, onCancel }) => {
|
||||
placeholder="请选择课程分类"
|
||||
/>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="必修选修"
|
||||
name="isRequired"
|
||||
rules={[{ required: true, message: "请选择必修选修!" }]}
|
||||
>
|
||||
<Radio.Group>
|
||||
<Radio value={1}>必修课</Radio>
|
||||
<Radio value={0}>选修课</Radio>
|
||||
</Radio.Group>
|
||||
</Form.Item>
|
||||
<Form.Item
|
||||
label="课程类型"
|
||||
name="type"
|
||||
|
||||
Reference in New Issue
Block a user