人工组卷

dev_jupyter
杨树林 5 years ago
parent b1e45948df
commit b697c97076

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

Loading…
Cancel
Save