调整题库

yslnewtiku
杨树林 5 years ago
parent 83cfed7e73
commit b8a59202be

@ -361,6 +361,21 @@ class Question extends Component {
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() {
@ -375,10 +390,6 @@ class Question extends Component {
+ program_questions_count
+ single_questions_count
+ subjective_questions_count;
console.log("选用实训打印");
console.log(Datacount);
return (
<div className="newMain clearfix" ref={this.saveContainer}>
<QuestionModal {...this.props}{...this.state} modalsType={modalsType} modalCancel={() => this.modalCancel()}
@ -392,6 +403,7 @@ class Question extends Component {
<Headplugselection></Headplugselection>
{/*头部*/}
<Contentpart {...this.state} {...this.props}
selectallquestionsonthispage={()=>this.selectallquestionsonthispage()}
getitem_baskets={(e)=>this.getitem_baskets(e)}
setdatafuns={(e) => this.setdatafuns(e)}
setdatafunsval={(e) => this.setdatafunsval(e)}

@ -426,7 +426,7 @@ class Questionitem_banks extends Component {
{
item_type&&item_type==="SINGLE"?
<div className=" clearfix educontent Contentquestionbankstyle w100s w1200fpx mt19" >
<div className=" clearfix educontent w100s w1200fpx mt19" >
<SingleEditor
{...this.state}
{...this.props}
@ -436,7 +436,7 @@ class Questionitem_banks extends Component {
</SingleEditor>
</div>
:item_type&&item_type==="MULTIPLE"?
<div className=" clearfix educontent Contentquestionbankstyle w100s w1200fpx mt19" >
<div className=" clearfix educontent w100s w1200fpx mt19" >
<ChoquesEditor
{...this.state}
{...this.props}
@ -448,7 +448,7 @@ class Questionitem_banks extends Component {
:item_type&&item_type==="JUDGMENT"?
<div className=" clearfix educontent Contentquestionbankstyle w100s w1200fpx mt19" >
<div className=" clearfix educontent w100s w1200fpx mt19" >
<JudquestionEditor
{...this.state}
{...this.props}
@ -476,7 +476,7 @@ class Questionitem_banks extends Component {
item_type===null?
""
:
<div className=" clearfix bor-bottom-greyE edu-back-white orderingbox newshixunbottombtn bottomdivs sortinxdirection intermediatecenter mt50" style={{
<div className=" clearfix edu-back-white orderingbox newshixunbottombtn bottomdivs sortinxdirection intermediatecenter mt50" style={{
position:"absolute",
bottom: "0px",
}} >

@ -265,7 +265,7 @@ class ChoquesEditor extends Component{
// //console.log(!exerciseIsPublish);
return(
<div className="padding20-30 bor-bottom-greyE signleEditor duoxuano" id={qNumber}>
<div className="padding20-30 signleEditor duoxuano" id={qNumber}>
<style>{`
.optionMdEditor {
flex:1

@ -168,12 +168,12 @@ class Contentpart extends Component {
<div className=" w100s mb10">
{
defaultActiveKey===1||defaultActiveKey==="1"?
<Contentquestionbank {...this.props} {...this.state} ></Contentquestionbank>
<Contentquestionbank {...this.props} {...this.state} selectallquestionsonthispage={()=>this.props.selectallquestionsonthispage()}></Contentquestionbank>
:""
}
{
defaultActiveKey===0||defaultActiveKey==="0"?
<Contentquestionbank {...this.props} {...this.state} ></Contentquestionbank>
<Contentquestionbank {...this.props} {...this.state} selectallquestionsonthispage={()=>this.props.selectallquestionsonthispage()}></Contentquestionbank>
:""
}
</div>

@ -47,7 +47,7 @@ class Contentquestionbank extends Component {
<div className="educontent mt10 w100s">
<div className="sortinxdirection w100s" >
<div className="sortinxdirection w50s">
<Checkbox onChange={()=>this.onChange()}></Checkbox>
<Checkbox onChange={()=>this.props.selectallquestionsonthispage()}></Checkbox>
<p className="setequesbank ml20">选用本页全部试题</p>
</div>
<div className="xaxisreverseorder testpaper w50s">

@ -299,7 +299,7 @@ class JudquestionEditor extends Component{
// ////console.log(!exerciseIsPublish);
const params= this.props&&this.props.match&&this.props.match.params;
return(
<div className="padding20-30 bor-bottom-greyE signleEditor danxuano" id={qNumber}>
<div className="padding20-30 signleEditor danxuano" id={qNumber}>
<style>{`
.optionMdEditor {
flex:1
@ -340,17 +340,17 @@ class JudquestionEditor extends Component{
<style>
{
`
.choice_textcsss .ant-radio-button-wrapper{
.choice_textcsss {
border-radius:2px !important;
}
.choice_textcss .ant-radio-button-wrapper{
.choice_textcss {
margin-left: 40px !important;
border-radius:2px !important;
}
`
}
</style>
<div className="mb10 sortinxdirection ">
<div className="mb15 sortinxdirection ">
<Radio.Group buttonStyle="solid" value={this.state.zqda} onChange={this.handleFormLayoutChange}>
<Radio.Button value="0" className={"choice_textcsss"}>正确</Radio.Button>
<Radio.Button value="1" className={"choice_textcss"}>错误</Radio.Button>

@ -276,7 +276,7 @@ class SingleEditor extends Component{
// //console.log(!exerciseIsPublish);
return(
<div className="padding20-30 bor-bottom-greyE signleEditor danxuano" id={qNumber}>
<div className="padding20-30 signleEditor danxuano" id={qNumber}>
<style>{`
.optionMdEditor {
flex:1

Loading…
Cancel
Save