|
|
|
@ -362,15 +362,11 @@ class EditTab extends React.Component {
|
|
|
|
|
values.forEach(v => {
|
|
|
|
|
_result.push(v.id);
|
|
|
|
|
});
|
|
|
|
|
// console.log('下拉选择的值:===>>>', _result);
|
|
|
|
|
// 保存选择的知识点
|
|
|
|
|
this.props.saveTagDisciplineId(_result);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 新增知识点
|
|
|
|
|
const handleAddKnowledge = (values) => {
|
|
|
|
|
// console.log('调用了新增知识点并返回了结果: ', values);
|
|
|
|
|
// 获取课程id
|
|
|
|
|
const { sub_discipline_id } = this.props.ojForm;
|
|
|
|
|
const obj = Object.assign({}, values, { sub_discipline_id })
|
|
|
|
|
tagDisciplines(obj);
|
|
|
|
@ -398,14 +394,6 @@ class EditTab extends React.Component {
|
|
|
|
|
help={ojFormValidate.sub_discipline_id.errMsg}
|
|
|
|
|
colon={false}
|
|
|
|
|
>
|
|
|
|
|
{/* <Select onChange={this.handleChangeCategory} value={`${ojForm.category}`}>
|
|
|
|
|
{getOptions('category')}
|
|
|
|
|
</Select> */}
|
|
|
|
|
{/* <Cascader
|
|
|
|
|
options={courseQuestions}
|
|
|
|
|
expandTrigger="hover"
|
|
|
|
|
onChange={this.handleChangeCategory}
|
|
|
|
|
/> */}
|
|
|
|
|
{renderCourseQuestion(courseQuestions)}
|
|
|
|
|
</FormItem>
|
|
|
|
|
|
|
|
|
|