|
|
|
@ -110,6 +110,7 @@ class Intecomponents extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//难度
|
|
|
|
|
getdatas=()=>{
|
|
|
|
|
if (this.Judquestio.Getdatas().length === 0) {
|
|
|
|
|
this.scrollToAnchor("Itembankstopid");
|
|
|
|
@ -129,25 +130,96 @@ class Intecomponents extends Component {
|
|
|
|
|
difficulty:this.Judquestio.Getdatas()[0].rbnd,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
axios.post(url,data).then((response) => {
|
|
|
|
|
if (response) {
|
|
|
|
|
console.log("智能组卷");
|
|
|
|
|
console.log(response);
|
|
|
|
|
if(response.data){
|
|
|
|
|
this.setState({
|
|
|
|
|
single_question_count:response.data.single_question_count,
|
|
|
|
|
multiple_question_count:response.data.multiple_question_count,
|
|
|
|
|
judgement_question_count:response.data.judgement_question_count,
|
|
|
|
|
program_question_count:response.data.program_question_count,
|
|
|
|
|
})
|
|
|
|
|
this.getwangluodata(url,data);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
//课程
|
|
|
|
|
getdatasss=(kech)=>{
|
|
|
|
|
if (this.Judquestio.Getdatas().length === 0) {
|
|
|
|
|
this.scrollToAnchor("Itembankstopid");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
console.log(this.Judquestio.Getdatas());
|
|
|
|
|
var myrbkc=[];
|
|
|
|
|
var Getdatasdatas=this.Judquestio.Getdatas()[1].rbzsd;
|
|
|
|
|
for(let myda of Getdatasdatas) {
|
|
|
|
|
myrbkc.push(myda.id);
|
|
|
|
|
}
|
|
|
|
|
const url="/examination_intelligent_settings/optinal_items.json";
|
|
|
|
|
var data={
|
|
|
|
|
sub_discipline_id:kech,
|
|
|
|
|
tag_discipline_id:myrbkc,
|
|
|
|
|
source:this.Judquestio.Getdatas()[7].rbly,
|
|
|
|
|
difficulty:this.Judquestio.Getdatas()[0].rbnd,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.getwangluodata(url,data);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//知识点
|
|
|
|
|
getdatassss=(zhishidian)=>{
|
|
|
|
|
if (this.Judquestio.Getdatas().length === 0) {
|
|
|
|
|
this.scrollToAnchor("Itembankstopid");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
console.log(this.Judquestio.Getdatas());
|
|
|
|
|
var myrbkc=[];
|
|
|
|
|
var Getdatasdatas=zhishidian;
|
|
|
|
|
for(let myda of Getdatasdatas) {
|
|
|
|
|
myrbkc.push(myda.id);
|
|
|
|
|
}
|
|
|
|
|
const url="/examination_intelligent_settings/optinal_items.json";
|
|
|
|
|
var data={
|
|
|
|
|
sub_discipline_id:this.Judquestio.Getdatas()[2].rbkc[1],
|
|
|
|
|
tag_discipline_id:myrbkc,
|
|
|
|
|
source:this.Judquestio.Getdatas()[7].rbly,
|
|
|
|
|
difficulty:this.Judquestio.Getdatas()[0].rbnd,
|
|
|
|
|
}
|
|
|
|
|
this.getwangluodata(url,data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//来源
|
|
|
|
|
getdatassssy=(rbly)=>{
|
|
|
|
|
if (this.Judquestio.Getdatas().length === 0) {
|
|
|
|
|
this.scrollToAnchor("Itembankstopid");
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
console.log(this.Judquestio.Getdatas());
|
|
|
|
|
var myrbkc=[];
|
|
|
|
|
var Getdatasdatas=this.Judquestio.Getdatas()[1].rbzsd;
|
|
|
|
|
for(let myda of Getdatasdatas) {
|
|
|
|
|
myrbkc.push(myda.id);
|
|
|
|
|
}
|
|
|
|
|
const url="/examination_intelligent_settings/optinal_items.json";
|
|
|
|
|
var data={
|
|
|
|
|
sub_discipline_id:this.Judquestio.Getdatas()[2].rbkc[1],
|
|
|
|
|
tag_discipline_id:myrbkc,
|
|
|
|
|
source:rbly,
|
|
|
|
|
difficulty:this.Judquestio.Getdatas()[0].rbnd,
|
|
|
|
|
}
|
|
|
|
|
this.getwangluodata(url,data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
getwangluodata=(url,data)=>{
|
|
|
|
|
axios.post(url,data).then((response) => {
|
|
|
|
|
if (response) {
|
|
|
|
|
console.log("智能组卷");
|
|
|
|
|
console.log(response);
|
|
|
|
|
if(response.data){
|
|
|
|
|
this.setState({
|
|
|
|
|
single_question_count:response.data.single_question_count,
|
|
|
|
|
multiple_question_count:response.data.multiple_question_count,
|
|
|
|
|
judgement_question_count:response.data.judgement_question_count,
|
|
|
|
|
program_question_count:response.data.program_question_count,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
//难度
|
|
|
|
|
getdatass=(nandu)=>{
|
|
|
|
|
if (this.Judquestio.Getdatas().length === 0) {
|
|
|
|
|
this.scrollToAnchor("Itembankstopid");
|
|
|
|
@ -313,7 +385,10 @@ class Intecomponents extends Component {
|
|
|
|
|
program_question_count={this.state.program_question_count}
|
|
|
|
|
getdatas={()=>this.getdatas()}
|
|
|
|
|
getdatass={(nd)=>this.getdatass(nd)}
|
|
|
|
|
getJudquestio={(ref) => this.getJudquestio(ref)}
|
|
|
|
|
getJudquestio={(ref) => this.getJudquestio(ref)}
|
|
|
|
|
getdatasss={(e)=>this.getdatasss(e)}
|
|
|
|
|
getdatassss={(e)=>this.getdatassss(e)}
|
|
|
|
|
getdatassssy={(e)=>this.getdatassssy(e)}
|
|
|
|
|
></Intelligentcomponents>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -326,6 +401,7 @@ class Intecomponents extends Component {
|
|
|
|
|
{
|
|
|
|
|
newmyshixunmodelbool === true ? "" :
|
|
|
|
|
<Bottomsubmit {...this.props} {...this.state} bottomvalue={"保存"}
|
|
|
|
|
Cohetepaperbool={false}
|
|
|
|
|
setCohetepaperbool={(bool) => this.setCohetepaperbool(bool)}
|
|
|
|
|
onSubmits={() => this.preservation()} url={'/paperlibrary'}></Bottomsubmit>
|
|
|
|
|
}
|
|
|
|
|