|
|
|
@ -55,7 +55,8 @@ class Goldsubject extends Component {
|
|
|
|
|
addonAfteronelentwo:"",
|
|
|
|
|
Whethertocreateanewclassroom:true,
|
|
|
|
|
bordebool:false,
|
|
|
|
|
smallspinning:false
|
|
|
|
|
smallspinning:false,
|
|
|
|
|
bottonloading:false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// disabledEndDate= endValue => {
|
|
|
|
@ -351,7 +352,9 @@ class Goldsubject extends Component {
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
bottonloading:true
|
|
|
|
|
})
|
|
|
|
|
let url = "/courses/" + coursesId + ".json";
|
|
|
|
|
axios.put(url,
|
|
|
|
|
datasysl
|
|
|
|
@ -372,12 +375,21 @@ class Goldsubject extends Component {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
bottonloading:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
bottonloading:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
this.setState({
|
|
|
|
|
bottonloading:false
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -424,20 +436,15 @@ class Goldsubject extends Component {
|
|
|
|
|
course_module_types: values.checkboxgroup,
|
|
|
|
|
school:values.school
|
|
|
|
|
};
|
|
|
|
|
try {
|
|
|
|
|
// console.log("提交的ysldatas数据");
|
|
|
|
|
// console.log(ysldatas);
|
|
|
|
|
// console.log(JSON.stringify(ysldatas));
|
|
|
|
|
// console.log(moment(values.starttime).format("YYYY-MM-DD"));
|
|
|
|
|
// console.log(moment(values.endtime).format("YYYY-MM-DD"));
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
bottonloading:true
|
|
|
|
|
})
|
|
|
|
|
axios.post(url,
|
|
|
|
|
ysldatas
|
|
|
|
|
).then((response) => {
|
|
|
|
|
if (response.status === 200) {
|
|
|
|
|
|
|
|
|
|
// this.goback
|
|
|
|
|
window.location.href=response.data.first_category_url;
|
|
|
|
|
var yslGuideone = window.localStorage.getItem('yslGuideone');
|
|
|
|
@ -451,11 +458,16 @@ class Goldsubject extends Component {
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
}catch (e) {
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
bottonloading:false
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error)
|
|
|
|
|
this.setState({
|
|
|
|
|
bottonloading:false
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
@ -1074,9 +1086,11 @@ class Goldsubject extends Component {
|
|
|
|
|
<div className={"FAFAFA"}>
|
|
|
|
|
<Form.Item >
|
|
|
|
|
<div className="clearfix mt40 mb30">
|
|
|
|
|
<Button type="primary" htmlType="submit" className="defalutSubmitbtn fl mr20">
|
|
|
|
|
|
|
|
|
|
<Button type="primary" htmlType="submit" loading={this.state.bottonloading} className="defalutSubmitbtn fl mr20">
|
|
|
|
|
提交
|
|
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
{/*<a className="defalutSubmitbtn fl mr20">提交</a>*/}
|
|
|
|
|
<a className="defalutCancelbtn fl" onClick={this.goback}>取消</a>
|
|
|
|
|
</div>
|
|
|
|
|