|
|
|
@ -31,7 +31,7 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
super(props);
|
|
|
|
|
this.Judquestio = React.createRef();
|
|
|
|
|
this.state = {
|
|
|
|
|
paperlibrartdata: [],
|
|
|
|
|
Contentdata: [],
|
|
|
|
|
disciplinesdata: [],
|
|
|
|
|
knowledgepoints: [],
|
|
|
|
|
disciplmy: [],
|
|
|
|
@ -139,7 +139,7 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
axios.get(urls).then((response) => {
|
|
|
|
|
if (response) {
|
|
|
|
|
this.setState({
|
|
|
|
|
paperlibrartdata: response.data,
|
|
|
|
|
Contentdata: response.data,
|
|
|
|
|
item_banksedit: response.data.exam,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -227,7 +227,7 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let {paperlibrartdata,newmyshixunmodelbool,defaultActiveKey} = this.state;
|
|
|
|
|
let {Contentdata,newmyshixunmodelbool,defaultActiveKey} = this.state;
|
|
|
|
|
const params = this.props && this.props.match && this.props.match.params;
|
|
|
|
|
let urlsysl=`/paperlibrary?defaultActiveKey=${defaultActiveKey}`;
|
|
|
|
|
|
|
|
|
@ -248,7 +248,7 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
{
|
|
|
|
|
newmyshixunmodelbool===true?
|
|
|
|
|
<div className="fangdatwo">
|
|
|
|
|
<NewMyShixunModel {...this.state} {...this.props} exam_id={this.props.match.params.id} setnewmyshixunmodelbool={(e)=>this.setnewmyshixunmodelbool(e)}></NewMyShixunModel>
|
|
|
|
|
<NewMyShixunModel {...this.state} {...this.props} Contentdata={this.state.Contentdata} exam_id={this.props.match.params.id} setnewmyshixunmodelbool={(e)=>this.setnewmyshixunmodelbool(e)}></NewMyShixunModel>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
@ -291,9 +291,9 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
<div className={"seeoagertitscss"}>
|
|
|
|
|
<Seeoagertits
|
|
|
|
|
setnewmyshixunmodelbool={(e)=>this.setnewmyshixunmodelbool(e)}
|
|
|
|
|
all_score={paperlibrartdata && paperlibrartdata.exam && paperlibrartdata.exam.all_questions_count}
|
|
|
|
|
all_questions_count={paperlibrartdata && paperlibrartdata.exam && paperlibrartdata.exam.all_score}
|
|
|
|
|
difficulty={paperlibrartdata && paperlibrartdata.exam && paperlibrartdata.exam.difficulty}
|
|
|
|
|
all_score={Contentdata && Contentdata.exam && Contentdata.exam.all_questions_count}
|
|
|
|
|
all_questions_count={Contentdata && Contentdata.exam && Contentdata.exam.all_score}
|
|
|
|
|
difficulty={Contentdata && Contentdata.exam && Contentdata.exam.difficulty}
|
|
|
|
|
>
|
|
|
|
|
</Seeoagertits>
|
|
|
|
|
</div>
|
|
|
|
@ -301,15 +301,15 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
{...this.state}
|
|
|
|
|
{...this.props}
|
|
|
|
|
getdata={() => this.getdata()}
|
|
|
|
|
single_questions={paperlibrartdata && paperlibrartdata.single_questions && paperlibrartdata.single_questions.questions.length > 0 ? paperlibrartdata.single_questions : null}
|
|
|
|
|
multiple_questions={paperlibrartdata && paperlibrartdata.multiple_questions
|
|
|
|
|
&& paperlibrartdata.multiple_questions.questions.length > 0 ? paperlibrartdata.multiple_questions : null
|
|
|
|
|
single_questions={Contentdata && Contentdata.single_questions && Contentdata.single_questions.questions.length > 0 ? Contentdata.single_questions : null}
|
|
|
|
|
multiple_questions={Contentdata && Contentdata.multiple_questions
|
|
|
|
|
&& Contentdata.multiple_questions.questions.length > 0 ? Contentdata.multiple_questions : null
|
|
|
|
|
}
|
|
|
|
|
judgement_questions={paperlibrartdata && paperlibrartdata.judgement_questions
|
|
|
|
|
&& paperlibrartdata.judgement_questions.questions.length > 0 ? paperlibrartdata.judgement_questions : null
|
|
|
|
|
judgement_questions={Contentdata && Contentdata.judgement_questions
|
|
|
|
|
&& Contentdata.judgement_questions.questions.length > 0 ? Contentdata.judgement_questions : null
|
|
|
|
|
}
|
|
|
|
|
program_questions={paperlibrartdata && paperlibrartdata.program_questions
|
|
|
|
|
&& paperlibrartdata.program_questions.questions.length > 0 ? paperlibrartdata.program_questions : null
|
|
|
|
|
program_questions={Contentdata && Contentdata.program_questions
|
|
|
|
|
&& Contentdata.program_questions.questions.length > 0 ? Contentdata.program_questions : null
|
|
|
|
|
}
|
|
|
|
|
></Paperlibraryseeid_itemss>
|
|
|
|
|
|
|
|
|
|