|
|
|
@ -145,9 +145,24 @@ class Goldsubject extends Component {
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
let subjectid= this.props.match.params.subjectid;
|
|
|
|
|
let url = "/courses/new.json"
|
|
|
|
|
axios.get(url).then((result) => {
|
|
|
|
|
console.log(result)
|
|
|
|
|
axios.get(url,{params:{
|
|
|
|
|
subject_id:subjectid, //这是带过来的值
|
|
|
|
|
}}).then((response) => {
|
|
|
|
|
if (response) {
|
|
|
|
|
// this.goback
|
|
|
|
|
if(response.data){
|
|
|
|
|
console.log("获取Goldsubject.js");
|
|
|
|
|
console.log(response.data);
|
|
|
|
|
if(response.data.status===0){
|
|
|
|
|
this.props.form.setFieldsValue({
|
|
|
|
|
classroom: response.data.course_name,
|
|
|
|
|
name: response.data.name,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
console.log(error);
|
|
|
|
|
})
|
|
|
|
@ -159,10 +174,7 @@ class Goldsubject extends Component {
|
|
|
|
|
school:user_school,
|
|
|
|
|
Whethertocreateanewclassroom:true,
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
this.handleSearchschool(user_school);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -700,17 +712,17 @@ class Goldsubject extends Component {
|
|
|
|
|
{options}
|
|
|
|
|
</AutoComplete>
|
|
|
|
|
)}
|
|
|
|
|
<span className={"newcoursestitle fl"}>
|
|
|
|
|
{/*(如果本学期包含多个班级,只需创建一个课堂然后在课堂内部建立不同的分班)*/}
|
|
|
|
|
<p className="ant-progress-text">
|
|
|
|
|
<Icon style={{ color: '#52c41a' }} type="check-circle" theme="filled"/>
|
|
|
|
|
<span className={"color-grey-9 font-12 ml5"}>正确示例:数据结构2019春季班级</span>
|
|
|
|
|
</p>
|
|
|
|
|
<p className="ant-progress-text">
|
|
|
|
|
<Icon style={{ color: 'red' }} theme="filled" type="close-circle"/>
|
|
|
|
|
<span className={"color-grey-9 font-12 ml5"}>错误示例:2019春季班级数据结构</span>
|
|
|
|
|
</p>
|
|
|
|
|
</span>
|
|
|
|
|
{/*<span className={"newcoursestitle fl"}>*/}
|
|
|
|
|
{/* /!*(如果本学期包含多个班级,只需创建一个课堂然后在课堂内部建立不同的分班)*!/*/}
|
|
|
|
|
{/* <p className="ant-progress-text">*/}
|
|
|
|
|
{/* <Icon style={{ color: '#52c41a' }} type="check-circle" theme="filled"/>*/}
|
|
|
|
|
{/* <span className={"color-grey-9 font-12 ml5"}>正确示例:数据结构2019春季班级</span>*/}
|
|
|
|
|
{/* </p>*/}
|
|
|
|
|
{/* <p className="ant-progress-text">*/}
|
|
|
|
|
{/* <Icon style={{ color: 'red' }} theme="filled" type="close-circle"/>*/}
|
|
|
|
|
{/* <span className={"color-grey-9 font-12 ml5"}>错误示例:2019春季班级数据结构</span>*/}
|
|
|
|
|
{/* </p>*/}
|
|
|
|
|
{/* </span>*/}
|
|
|
|
|
<div id='isclassroom'></div>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
|
|
|
|
|