|
|
@ -361,6 +361,21 @@ class Question extends Component {
|
|
|
|
console.log(error);
|
|
|
|
console.log(error);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//全选试题库
|
|
|
|
|
|
|
|
selectallquestionsonthispage=()=>{
|
|
|
|
|
|
|
|
var item_idsdata=[];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var arr= this.state.Contentdata.items;
|
|
|
|
|
|
|
|
for(let data of arr) {
|
|
|
|
|
|
|
|
item_idsdata.push(data.id);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
const data={
|
|
|
|
|
|
|
|
item_ids:item_idsdata
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.getitem_baskets(data);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
@ -375,10 +390,6 @@ class Question extends Component {
|
|
|
|
+ program_questions_count
|
|
|
|
+ program_questions_count
|
|
|
|
+ single_questions_count
|
|
|
|
+ single_questions_count
|
|
|
|
+ subjective_questions_count;
|
|
|
|
+ subjective_questions_count;
|
|
|
|
|
|
|
|
|
|
|
|
console.log("选用实训打印");
|
|
|
|
|
|
|
|
console.log(Datacount);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div className="newMain clearfix" ref={this.saveContainer}>
|
|
|
|
<div className="newMain clearfix" ref={this.saveContainer}>
|
|
|
|
<QuestionModal {...this.props}{...this.state} modalsType={modalsType} modalCancel={() => this.modalCancel()}
|
|
|
|
<QuestionModal {...this.props}{...this.state} modalsType={modalsType} modalCancel={() => this.modalCancel()}
|
|
|
@ -392,6 +403,7 @@ class Question extends Component {
|
|
|
|
<Headplugselection></Headplugselection>
|
|
|
|
<Headplugselection></Headplugselection>
|
|
|
|
{/*头部*/}
|
|
|
|
{/*头部*/}
|
|
|
|
<Contentpart {...this.state} {...this.props}
|
|
|
|
<Contentpart {...this.state} {...this.props}
|
|
|
|
|
|
|
|
selectallquestionsonthispage={()=>this.selectallquestionsonthispage()}
|
|
|
|
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)}
|
|
|
|