|
|
|
@ -22,7 +22,7 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
super(props);
|
|
|
|
|
this.Judquestio = React.createRef();
|
|
|
|
|
this.state = {
|
|
|
|
|
paperlibrartdata: [],
|
|
|
|
|
Contentdata: [],
|
|
|
|
|
disciplinesdata: [],
|
|
|
|
|
knowledgepoints: [],
|
|
|
|
|
disciplmy: [],
|
|
|
|
@ -130,7 +130,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,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
@ -218,7 +218,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}`;
|
|
|
|
|
|
|
|
|
@ -239,7 +239,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>
|
|
|
|
|
:
|
|
|
|
|
""
|
|
|
|
@ -279,12 +279,12 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className={"seeoagertitless"}>
|
|
|
|
|
<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}
|
|
|
|
|
setnewmyshixunmodelbool={(e)=>this.setnewmyshixunmodelbool(e)}
|
|
|
|
|
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>
|
|
|
|
@ -292,15 +292,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>
|
|
|
|
|
|
|
|
|
|