|
|
|
@ -60,6 +60,7 @@ class Question extends Component {
|
|
|
|
|
booljupyterurls:false,
|
|
|
|
|
disciplinesdatakc:0,
|
|
|
|
|
disciplinesdatazsd:0,
|
|
|
|
|
selectallquestionsonthispages:false,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -168,6 +169,7 @@ class Question extends Component {
|
|
|
|
|
callback = (key) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
defaultActiveKey: key,
|
|
|
|
|
selectallquestionsonthispages:false,
|
|
|
|
|
})
|
|
|
|
|
var data = {
|
|
|
|
|
discipline_id:this.state.discipline_id,
|
|
|
|
@ -579,8 +581,13 @@ class Question extends Component {
|
|
|
|
|
item_ids:item_idsdata
|
|
|
|
|
}
|
|
|
|
|
this.getitem_baskets(data);
|
|
|
|
|
this.setState({
|
|
|
|
|
selectallquestionsonthispages:true,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//全选的状态
|
|
|
|
|
|
|
|
|
|
//删除大题型
|
|
|
|
|
Deletebigquestiontype =(item_type)=>{
|
|
|
|
|
const url=`/item_baskets/delete_item_type.json`;
|
|
|
|
@ -748,55 +755,55 @@ class Question extends Component {
|
|
|
|
|
{
|
|
|
|
|
single_questions_count === 0 ?
|
|
|
|
|
""
|
|
|
|
|
: <div className="sortinxdirection" onClick={()=>this.showQuestionModals("SINGLE")} >
|
|
|
|
|
: <div className="sortinxdirection" >
|
|
|
|
|
<p
|
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14">单选题{'('}{single_questions_count}{')'}</p>
|
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor "></i></p>
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("SINGLE")}></i></p>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
multiple_questions_count === 0 ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<div className="sortinxdirection" onClick={()=>this.showQuestionModals("MULTIPLE")}>
|
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
|
<p
|
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14">多选题{'('}{multiple_questions_count}{')'}</p>
|
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor "></i></p>
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("MULTIPLE")}></i></p>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
judgement_questions_count === 0 ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<div className="sortinxdirection" onClick={()=>this.showQuestionModals("JUDGMENT")}>
|
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
|
<p
|
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14">判断题{'('}{judgement_questions_count}{')'}</p>
|
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor "></i></p>
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("JUDGMENT")}></i></p>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
completion_questions_count === 0 ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<div className="sortinxdirection" onClick={()=>this.showQuestionModals("COMPLETION")}>
|
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
|
<p
|
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14">填空题{'('}{completion_questions_count}{')'}</p>
|
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor "></i></p>
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("COMPLETION")}></i></p>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
subjective_questions_count === 0 ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<div className="sortinxdirection" onClick={()=>this.showQuestionModals("SUBJECTIVE")}>
|
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
|
<p
|
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14">简答题{'('}{subjective_questions_count}{')'}</p>
|
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor "></i></p>
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("SUBJECTIVE")}></i></p>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
@ -814,11 +821,11 @@ class Question extends Component {
|
|
|
|
|
program_questions_count === 0 ?
|
|
|
|
|
""
|
|
|
|
|
:
|
|
|
|
|
<div className="sortinxdirection" onClick={()=>this.showQuestionModals("PROGRAM")}>
|
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
|
<p
|
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14">编程题{'('}{program_questions_count}{')'}</p>
|
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor "></i></p>
|
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("PROGRAM")}></i></p>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|