|
|
@ -43,6 +43,12 @@ |
|
|
|
v-decorator="['course_detail', { rules: [{ required: true, message: '请输入教学详情' }] }]" |
|
|
|
v-decorator="['course_detail', { rules: [{ required: true, message: '请输入教学详情' }] }]" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</a-form-item> |
|
|
|
</a-form-item> |
|
|
|
|
|
|
|
<a-form-item label="状态" :labelCol="labelCol" :wrapperCol="wrapperCol" extra="用户端是否展示"> |
|
|
|
|
|
|
|
<a-radio-group v-decorator="['status', { initialValue: 1, rules: [{ required: true }] }]"> |
|
|
|
|
|
|
|
<a-radio :value="1">显示</a-radio> |
|
|
|
|
|
|
|
<a-radio :value="0">隐藏</a-radio> |
|
|
|
|
|
|
|
</a-radio-group> |
|
|
|
|
|
|
|
</a-form-item> |
|
|
|
<a-form-item label="教学图片" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
<a-form-item label="教学图片" :labelCol="labelCol" :wrapperCol="wrapperCol"> |
|
|
|
<SelectImage |
|
|
|
<SelectImage |
|
|
|
:defaultList="record.image_url ? [record.image_url] : []" |
|
|
|
:defaultList="record.image_url ? [record.image_url] : []" |
|
|
@ -118,7 +124,7 @@ export default { |
|
|
|
} = this |
|
|
|
} = this |
|
|
|
// 设置表单内容 |
|
|
|
// 设置表单内容 |
|
|
|
this.$nextTick(() => { |
|
|
|
this.$nextTick(() => { |
|
|
|
setFieldsValue(_.pick(record, ['course_name', 'course_subheading', 'course_detail','image_id', 'video_id','course_category_id'])) |
|
|
|
setFieldsValue(_.pick(record, ['status','course_name', 'course_subheading', 'course_detail','image_id', 'video_id','course_category_id'])) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|