|
|
|
@ -135,6 +135,8 @@ class CoursesNew extends Component {
|
|
|
|
|
let {is_public,datatime} = this.state
|
|
|
|
|
// console.log(is_public)
|
|
|
|
|
|
|
|
|
|
debugger
|
|
|
|
|
|
|
|
|
|
if (coursesId != undefined) {
|
|
|
|
|
// 编辑
|
|
|
|
|
|
|
|
|
@ -180,7 +182,7 @@ class CoursesNew extends Component {
|
|
|
|
|
name: values.classroom,
|
|
|
|
|
class_period: values.period,
|
|
|
|
|
credit: parseFloat(values.credit),
|
|
|
|
|
end_date: datatime,
|
|
|
|
|
end_date: datatime===undefined?"":datatime,
|
|
|
|
|
is_public: is_public === true || is_public === 1 ? 1 : 0,
|
|
|
|
|
course_module_types: values.checkboxgroup,
|
|
|
|
|
authentication: this.state.Realnamecertification,
|
|
|
|
@ -234,7 +236,7 @@ class CoursesNew extends Component {
|
|
|
|
|
name: values.classroom,
|
|
|
|
|
class_period: values.period,
|
|
|
|
|
credit: parseFloat(values.credit),
|
|
|
|
|
end_date: datatime,
|
|
|
|
|
end_date: datatime===undefined?"":datatime,
|
|
|
|
|
is_public: is_public === true || is_public === 1 ? 1 : 0,
|
|
|
|
|
course_module_types: values.checkboxgroup,
|
|
|
|
|
authentication: this.state.Realnamecertification,
|
|
|
|
|