|
|
@ -364,10 +364,10 @@ class Goldsubject extends Component {
|
|
|
|
// debugger
|
|
|
|
// debugger
|
|
|
|
//新建
|
|
|
|
//新建
|
|
|
|
// console.log('Received values of form: ', values);
|
|
|
|
// console.log('Received values of form: ', values);
|
|
|
|
|
|
|
|
let subjectid = this.props.match.params.subjectid;
|
|
|
|
let url = "/courses.json";
|
|
|
|
let url = "/courses.json";
|
|
|
|
axios.post(url, {
|
|
|
|
axios.post(url, {
|
|
|
|
subject_id:128, //这是带过来的值
|
|
|
|
subject_id:subjectid, //这是带过来的值
|
|
|
|
name: values.classroom,
|
|
|
|
name: values.classroom,
|
|
|
|
class_period: values.period,
|
|
|
|
class_period: values.period,
|
|
|
|
credit: parseFloat(values.credit),
|
|
|
|
credit: parseFloat(values.credit),
|
|
|
|