隐藏智能组卷

dev_aliyun2
杨树林 5 years ago committed by harry
parent 5785b01e2b
commit 5993130fdc

@ -192,22 +192,22 @@ class Paperreview extends Component {
} }
preservation = () => { preservation = () => {
//保存试卷 //保存试卷
if (this.state.artificialtype === "artificial") { if(this.state.artificialtype==="artificial"){
if (this.state.Cohetepaperbool === true) { if(this.state.Cohetepaperbool===true){
if (this.contentMdRef.Getdatas().length === 0) { if (this.contentMdRef.Getdatas().length === 0) {
this.scrollToAnchor("Itembankstopid"); this.scrollToAnchor("Itembankstopid");
return; return;
} }
var myrbkc = []; var myrbkc=[];
var Getdatasdatas = this.contentMdRef.Getdatas()[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,
discipline_id: this.contentMdRef.Getdatas()[3].rbkc[0], discipline_id: this.contentMdRef.Getdatas()[3].rbkc[0],
sub_discipline_id: this.contentMdRef.Getdatas()[3].rbkc[1], sub_discipline_id: this.contentMdRef.Getdatas()[3].rbkc[1],
tag_discipline_id: myrbkc, tag_discipline_id: myrbkc,
@ -216,7 +216,8 @@ class Paperreview extends Component {
.then((result) => { .then((result) => {
if (result.data.status === 0) { if (result.data.status === 0) {
// this.props.showNotification(`组卷成功`); // this.props.showNotification(`组卷成功`);
this.props.history.replace('/paperlibrary'); // console.log(result.data.exam_id);
this.props.history.replace('/paperlibrary/see/'+result.data.exam_id);
} }
}).catch((error) => { }).catch((error) => {
//console.log(error); //console.log(error);

Loading…
Cancel
Save