|
|
@ -198,31 +198,31 @@ class Paperreview extends Component {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
console.log("this.contentMdRef.Getdatas()");
|
|
|
|
console.log("this.contentMdRef.Getdatas()");
|
|
|
|
console.log(this.contentMdRef.Getdatas());
|
|
|
|
console.log(this.contentMdRef.Getdatas());
|
|
|
|
// var Getdatasdata = this.contentMdRef.Getdatas()
|
|
|
|
|
|
|
|
// var myrbkc=[];
|
|
|
|
var myrbkc=[];
|
|
|
|
// var Getdatasdatas=Getdatasdata[2].rbzsd;
|
|
|
|
var Getdatasdatas=this.contentMdRef.Getdatas()[2].rbzsd;
|
|
|
|
// for(let myda of Getdatasdatas) {
|
|
|
|
for(let myda of Getdatasdatas) {
|
|
|
|
// myrbkc.push(myda.id);
|
|
|
|
myrbkc.push(myda.id);
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
const url = `/examination_banks.json`;
|
|
|
|
const url = `/examination_banks.json`;
|
|
|
|
// var data={
|
|
|
|
var data={
|
|
|
|
// difficulty:this.contentMdRef.Getdatas()[0].rbnd,
|
|
|
|
difficulty:this.contentMdRef.Getdatas()[0].rbnd,
|
|
|
|
// name:this.contentMdRef.Getdatas()[4].classroom,
|
|
|
|
name:this.contentMdRef.Getdatas()[4].classroom,
|
|
|
|
// duration:this.contentMdRef.Getdatas()[5].kssc,
|
|
|
|
duration:this.contentMdRef.Getdatas()[5].kssc,
|
|
|
|
// duration:this.contentMdRef.Getdatas()[5].kssc,
|
|
|
|
discipline_id: this.contentMdRef.Getdatas()[3].rbkc[0],
|
|
|
|
//
|
|
|
|
sub_discipline_id: this.contentMdRef.Getdatas()[3].rbkc[1],
|
|
|
|
// }
|
|
|
|
tag_discipline_id: myrbkc,
|
|
|
|
// axios.post(url, data)
|
|
|
|
|
|
|
|
// .then((result) => {
|
|
|
|
}
|
|
|
|
// if (result.data.status == 0) {
|
|
|
|
axios.post(url, data)
|
|
|
|
// this.props.showNotification(`组卷成功`);
|
|
|
|
.then((result) => {
|
|
|
|
// this.props.history.replace('./paperlibrary');
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
// }
|
|
|
|
this.props.showNotification(`组卷成功`);
|
|
|
|
// }).catch((error) => {
|
|
|
|
this.props.history.replace('./paperlibrary');
|
|
|
|
// console.log(error);
|
|
|
|
}
|
|
|
|
// })
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
console.log(error);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
this.setCohetepaperbool(true);
|
|
|
|
this.setCohetepaperbool(true);
|
|
|
|