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