|
|
@ -659,9 +659,37 @@ class Question extends Component {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 不选用 NewMyShixunModel.js 页面也有个
|
|
|
|
|
|
|
|
NOgetitem_baskets=(data)=>{
|
|
|
|
|
|
|
|
let url="/examination_banks/cancel_items.json";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
axios.post(url, data)
|
|
|
|
|
|
|
|
.then((result) => {
|
|
|
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
|
|
|
// this.props.showNotification(`选用成功`);
|
|
|
|
|
|
|
|
var data = {
|
|
|
|
|
|
|
|
discipline_id:this.state.discipline_id,
|
|
|
|
|
|
|
|
sub_discipline_id:this.state.sub_discipline_id,
|
|
|
|
|
|
|
|
tag_discipline_id:this.state.tag_discipline_id,
|
|
|
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
|
|
|
keyword: this.state.keywords,
|
|
|
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
|
|
|
per_page:10,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
this.getdatasy(data);
|
|
|
|
|
|
|
|
this.getbasket_listdata();
|
|
|
|
|
|
|
|
// this.setState({
|
|
|
|
|
|
|
|
// visible:true
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}).catch((error) => {
|
|
|
|
|
|
|
|
////console.log(error);
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//选用
|
|
|
|
//选用 NewMyShixunModel.js 页面也有个
|
|
|
|
getitem_baskets=(data)=>{
|
|
|
|
getitem_baskets=(data)=>{
|
|
|
|
//选用题型可以上传单个 或者多个题型
|
|
|
|
//选用题型可以上传单个 或者多个题型
|
|
|
|
let url="/item_baskets.json";
|
|
|
|
let url="/item_baskets.json";
|
|
|
@ -738,7 +766,7 @@ class Question extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//全选试题库
|
|
|
|
//全选试题库
|
|
|
|
selectallquestionsonthispage=()=>{
|
|
|
|
selectallquestionsonthispage=(bool)=>{
|
|
|
|
var item_idsdata=[];
|
|
|
|
var item_idsdata=[];
|
|
|
|
|
|
|
|
|
|
|
|
var arr= this.state.Contentdata.items;
|
|
|
|
var arr= this.state.Contentdata.items;
|
|
|
@ -746,7 +774,10 @@ class Question extends Component {
|
|
|
|
if(data.item_type==="PROGRAM"){
|
|
|
|
if(data.item_type==="PROGRAM"){
|
|
|
|
//编程题
|
|
|
|
//编程题
|
|
|
|
if(data.choosed===true){
|
|
|
|
if(data.choosed===true){
|
|
|
|
|
|
|
|
if(data.program_attr.status===1){
|
|
|
|
|
|
|
|
//已发布
|
|
|
|
|
|
|
|
item_idsdata.push(data.id);
|
|
|
|
|
|
|
|
}
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
//未选用
|
|
|
|
//未选用
|
|
|
|
if(data.program_attr.status===1){
|
|
|
|
if(data.program_attr.status===1){
|
|
|
@ -759,7 +790,7 @@ class Question extends Component {
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
//不是编程题
|
|
|
|
//不是编程题
|
|
|
|
if(data.choosed===true){
|
|
|
|
if(data.choosed===true){
|
|
|
|
|
|
|
|
item_idsdata.push(data.id);
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
//未选用
|
|
|
|
//未选用
|
|
|
|
item_idsdata.push(data.id);
|
|
|
|
item_idsdata.push(data.id);
|
|
|
@ -770,10 +801,18 @@ class Question extends Component {
|
|
|
|
const data={
|
|
|
|
const data={
|
|
|
|
item_ids:item_idsdata
|
|
|
|
item_ids:item_idsdata
|
|
|
|
}
|
|
|
|
}
|
|
|
|
this.getitem_baskets(data);
|
|
|
|
if(bool===false){
|
|
|
|
this.setState({
|
|
|
|
this.getitem_baskets(data);
|
|
|
|
selectallquestionsonthispages:true,
|
|
|
|
this.setState({
|
|
|
|
})
|
|
|
|
selectallquestionsonthispages:true,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
|
|
|
this.NOgetitem_baskets(data);
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
|
|
|
selectallquestionsonthispages:false,
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//全选的状态
|
|
|
|
//全选的状态
|
|
|
@ -901,6 +940,15 @@ class Question extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="newMain clearfix" ref={this.saveContainer}>
|
|
|
|
<div className="newMain clearfix" ref={this.saveContainer}>
|
|
|
|
|
|
|
|
<style>{
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
.newHeaders{
|
|
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
|
|
top: 0px;
|
|
|
|
|
|
|
|
z-index: 999 !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
`
|
|
|
|
|
|
|
|
}</style>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mydisplay===true?
|
|
|
|
mydisplay===true?
|
|
|
|
<Certifiedprofessional {...this.props} {...this.state} ModalCancelsy={this.mydisplayHidedel} />
|
|
|
|
<Certifiedprofessional {...this.props} {...this.state} ModalCancelsy={this.mydisplayHidedel} />
|
|
|
@ -927,11 +975,7 @@ class Question extends Component {
|
|
|
|
<style>
|
|
|
|
<style>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
`
|
|
|
|
`
|
|
|
|
.newHeaders{
|
|
|
|
|
|
|
|
position: fixed;
|
|
|
|
|
|
|
|
top: 0px;
|
|
|
|
|
|
|
|
z-index: 999 !important;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.ant-drawer {
|
|
|
|
.ant-drawer {
|
|
|
|
z-index: 800 !important;
|
|
|
|
z-index: 800 !important;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -943,18 +987,17 @@ class Question extends Component {
|
|
|
|
position: relative;
|
|
|
|
position: relative;
|
|
|
|
z-index: 9999999 ;
|
|
|
|
z-index: 9999999 ;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
:""
|
|
|
|
:""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
{
|
|
|
|
|
|
|
|
visible===true?
|
|
|
|
|
|
|
|
<div
|
|
|
|
<div
|
|
|
|
style={{
|
|
|
|
style={{
|
|
|
|
marginTop: "81px"
|
|
|
|
marginTop: "81px"
|
|
|
|
}}></div>
|
|
|
|
}}></div>
|
|
|
|
:""}
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
modalsTypes===true?
|
|
|
|
modalsTypes===true?
|
|
|
|
<QuestionModals {...this.props}{...this.state} modalsTypes={modalsTypes} modalCancels={() => this.modalCancels()}
|
|
|
|
<QuestionModals {...this.props}{...this.state} modalsTypes={modalsTypes} modalCancels={() => this.modalCancels()}
|
|
|
@ -1016,7 +1059,7 @@ class Question extends Component {
|
|
|
|
chakanjiexiboolindex={this.state.chakanjiexiboolindex}
|
|
|
|
chakanjiexiboolindex={this.state.chakanjiexiboolindex}
|
|
|
|
chakanjiexibool={(e)=>this.chakanjiexibool(e)}
|
|
|
|
chakanjiexibool={(e)=>this.chakanjiexibool(e)}
|
|
|
|
getitem_basketss={(id)=>this.getitem_basketss(id)}
|
|
|
|
getitem_basketss={(id)=>this.getitem_basketss(id)}
|
|
|
|
selectallquestionsonthispage={()=>this.selectallquestionsonthispage()}
|
|
|
|
selectallquestionsonthispage={(bool)=>this.selectallquestionsonthispage(bool)}
|
|
|
|
getitem_baskets={(e)=>this.getitem_baskets(e)}
|
|
|
|
getitem_baskets={(e)=>this.getitem_baskets(e)}
|
|
|
|
setdatafuns={(e) => this.setdatafuns(e)}
|
|
|
|
setdatafuns={(e) => this.setdatafuns(e)}
|
|
|
|
setdatafunsval={(e) => this.setdatafunsval(e)}
|
|
|
|
setdatafunsval={(e) => this.setdatafunsval(e)}
|
|
|
@ -1047,7 +1090,7 @@ class Question extends Component {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
`
|
|
|
|
`
|
|
|
|
.ant-drawer-content-wrapper{
|
|
|
|
.ant-drawer-content-wrapper{
|
|
|
|
width: 200px !important;
|
|
|
|
width: 160px !important;
|
|
|
|
overflow:hidden;
|
|
|
|
overflow:hidden;
|
|
|
|
margin-top: 62px;
|
|
|
|
margin-top: 62px;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1095,8 +1138,8 @@ class Question extends Component {
|
|
|
|
""
|
|
|
|
""
|
|
|
|
: <div className="sortinxdirection " >
|
|
|
|
: <div className="sortinxdirection " >
|
|
|
|
<p
|
|
|
|
<p
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">单选题{'('}{single_questions_count}{')'}</p>
|
|
|
|
className="w80s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">单选题{'('}{single_questions_count}{')'}</p>
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
<p className="w20s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("SINGLE")}></i></p>
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("SINGLE")}></i></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1106,8 +1149,8 @@ class Question extends Component {
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
<p
|
|
|
|
<p
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">多选题{'('}{multiple_questions_count}{')'}</p>
|
|
|
|
className="w80s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">多选题{'('}{multiple_questions_count}{')'}</p>
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
<p className="w20s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("MULTIPLE")}></i></p>
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("MULTIPLE")}></i></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1117,8 +1160,8 @@ class Question extends Component {
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
<p
|
|
|
|
<p
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">判断题{'('}{judgement_questions_count}{')'}</p>
|
|
|
|
className="w80s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">判断题{'('}{judgement_questions_count}{')'}</p>
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
<p className="w20s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("JUDGMENT")}></i></p>
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("JUDGMENT")}></i></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1128,8 +1171,8 @@ class Question extends Component {
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
<p
|
|
|
|
<p
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">填空题{'('}{completion_questions_count}{')'}</p>
|
|
|
|
className="w80s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">填空题{'('}{completion_questions_count}{')'}</p>
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
<p className="w20s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("COMPLETION")}></i></p>
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("COMPLETION")}></i></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1139,8 +1182,8 @@ class Question extends Component {
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
<p
|
|
|
|
<p
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">简答题{'('}{subjective_questions_count}{')'}</p>
|
|
|
|
className="w80s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">简答题{'('}{subjective_questions_count}{')'}</p>
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
<p className="w20s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("SUBJECTIVE")}></i></p>
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("SUBJECTIVE")}></i></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1150,8 +1193,8 @@ class Question extends Component {
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<div className="sortinxdirection">
|
|
|
|
<div className="sortinxdirection">
|
|
|
|
<p
|
|
|
|
<p
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">实训题{'('}{practical_questions_count}{')'}</p>
|
|
|
|
className="w80s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">实训题{'('}{practical_questions_count}{')'}</p>
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
<p className="w20s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor "></i></p>
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor "></i></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -1161,8 +1204,8 @@ class Question extends Component {
|
|
|
|
:
|
|
|
|
:
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
<div className="sortinxdirection" >
|
|
|
|
<p
|
|
|
|
<p
|
|
|
|
className="w50s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">编程题{'('}{program_questions_count}{')'}</p>
|
|
|
|
className="w80s intermediatecenterysls sortinxdirection font-14 xiaoshou xiaoshoums">编程题{'('}{program_questions_count}{')'}</p>
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
<p className="w20s intermediatecenterysls xaxisreverseorder"><i
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("PROGRAM")}></i></p>
|
|
|
|
className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor " onClick={()=>this.showQuestionModals("PROGRAM")}></i></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|