|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
import React, { Component } from "react";
|
|
|
|
|
import { SnackbarHOC } from 'educoder';
|
|
|
|
|
import React, {Component} from "react";
|
|
|
|
|
import {Link, NavLink} from 'react-router-dom';
|
|
|
|
|
import {WordsBtn, ActionBtn, SnackbarHOC, getImageUrl,queryString} from 'educoder';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import {
|
|
|
|
|
Breadcrumb
|
|
|
|
@ -26,7 +27,8 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
knowledgepoints: [],
|
|
|
|
|
disciplmy: [],
|
|
|
|
|
item_banksedit: [],
|
|
|
|
|
newmyshixunmodelbool: false,
|
|
|
|
|
newmyshixunmodelbool:false,
|
|
|
|
|
defaultActiveKey:"0",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -100,6 +102,26 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const query = this.props.location.search;
|
|
|
|
|
const parsed = queryString.parse(query);
|
|
|
|
|
if(JSON.stringify(parsed)==="{}"){
|
|
|
|
|
this.setState({
|
|
|
|
|
defaultActiveKey:"0",
|
|
|
|
|
})
|
|
|
|
|
}else {
|
|
|
|
|
if(parsed.defaultActiveKey==="0"){
|
|
|
|
|
this.setState({
|
|
|
|
|
defaultActiveKey:"0",
|
|
|
|
|
})
|
|
|
|
|
}else{
|
|
|
|
|
this.setState({
|
|
|
|
|
defaultActiveKey:"1",
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -196,10 +218,10 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
|
let { paperlibrartdata, newmyshixunmodelbool } = this.state;
|
|
|
|
|
let {paperlibrartdata,newmyshixunmodelbool,defaultActiveKey} = this.state;
|
|
|
|
|
const params = this.props && this.props.match && this.props.match.params;
|
|
|
|
|
// //console.log("newmyshixunmodelbool");
|
|
|
|
|
// //console.log(newmyshixunmodelbool);
|
|
|
|
|
let urlsysl=`/paperlibrary?defaultActiveKey=${defaultActiveKey}`;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div>
|
|
|
|
|
<div id={"Itembankstopid"} className="newMain clearfix intermediatecenter "
|
|
|
|
@ -237,7 +259,7 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
<div className="w100s mt30">
|
|
|
|
|
<Breadcrumb separator=">">
|
|
|
|
|
<Breadcrumb.Item className={"shubiao"} >试卷库</Breadcrumb.Item>
|
|
|
|
|
<Breadcrumb.Item href="/paperlibrary">公开试卷库</Breadcrumb.Item>
|
|
|
|
|
<Breadcrumb.Item href={urlsysl}>{defaultActiveKey==="1"?"公开试卷库":"我的试卷库"}</Breadcrumb.Item>
|
|
|
|
|
<Breadcrumb.Item className={"shubiao"}>试卷编辑</Breadcrumb.Item>
|
|
|
|
|
</Breadcrumb>
|
|
|
|
|
</div>
|
|
|
|
@ -293,8 +315,8 @@ class Paperlibraryeditid extends Component {
|
|
|
|
|
{
|
|
|
|
|
newmyshixunmodelbool === true ? "" :
|
|
|
|
|
<Bottomsubmit {...this.props} {...this.state} bottomvalue={"保存"}
|
|
|
|
|
setCohetepaperbool={(bool) => this.setCohetepaperbool(bool)}
|
|
|
|
|
onSubmits={() => this.preservation()} url={'/paperlibrary'}></Bottomsubmit>
|
|
|
|
|
setCohetepaperbool={(bool) => this.setCohetepaperbool(bool)}
|
|
|
|
|
onSubmits={() => this.preservation()} url={urlsysl}></Bottomsubmit>
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
)
|
|
|
|
|