|
@@ -26,6 +26,7 @@ const fieldLabels = {
|
|
|
coverUrl: '课程封面图',
|
|
|
bgUrl: '课程背景图',
|
|
|
status: '课程状态',
|
|
|
+ courseType: '阅读历史过滤',
|
|
|
};
|
|
|
const formItemLayout = {
|
|
|
labelCol: {
|
|
@@ -245,7 +246,7 @@ export default class CourseItemCreatePage extends Component {
|
|
|
const { currentItem } = product;
|
|
|
const {
|
|
|
code, title, subTitle, name, digest, detail, status, coverUrl, bgUrl, cpId,
|
|
|
- breadCrumb, subItemList = [], supportList = [],
|
|
|
+ courseType, breadCrumb, subItemList = [], supportList = [],
|
|
|
} = currentItem;
|
|
|
const { getFieldDecorator } = form;
|
|
|
|
|
@@ -493,6 +494,16 @@ export default class CourseItemCreatePage extends Component {
|
|
|
</Select>
|
|
|
)}
|
|
|
</Form.Item>
|
|
|
+ <Form.Item hasFeedback label={fieldLabels.courseType} {...formItemLayout}>
|
|
|
+ {getFieldDecorator('courseType', {
|
|
|
+ initialValue: courseType || Hotax.FILTER_NO,
|
|
|
+ })(
|
|
|
+ <Select placeholder="请选择">
|
|
|
+ <Select.Option value={Hotax.FILTER_YES}>是</Select.Option>
|
|
|
+ <Select.Option value={Hotax.FILTER_NO}>否</Select.Option>
|
|
|
+ </Select>
|
|
|
+ )}
|
|
|
+ </Form.Item>
|
|
|
<Form.Item label={fieldLabels.digest} {...formItemLayout}>
|
|
|
{getFieldDecorator('digest', {
|
|
|
initialValue: digest,
|