|
|
@ -1,5 +1,6 @@
|
|
|
|
import React, { Component } from "react";
|
|
|
|
import React, {Component} from "react";
|
|
|
|
import { SnackbarHOC } from 'educoder';
|
|
|
|
import {Link, NavLink} from 'react-router-dom';
|
|
|
|
|
|
|
|
import {WordsBtn, ActionBtn, SnackbarHOC, getImageUrl,queryString} from 'educoder';
|
|
|
|
import axios from 'axios';
|
|
|
|
import axios from 'axios';
|
|
|
|
import { Breadcrumb } from "antd";
|
|
|
|
import { Breadcrumb } from "antd";
|
|
|
|
import TPMIndexHOC from "../tpm/TPMIndexHOC";
|
|
|
|
import TPMIndexHOC from "../tpm/TPMIndexHOC";
|
|
|
@ -14,7 +15,8 @@ class Paperlibraryseeid extends Component {
|
|
|
|
super(props);
|
|
|
|
super(props);
|
|
|
|
this.contentMdRef = React.createRef();
|
|
|
|
this.contentMdRef = React.createRef();
|
|
|
|
this.state = {
|
|
|
|
this.state = {
|
|
|
|
paperlibrartdata: [],
|
|
|
|
paperlibrartdata:[],
|
|
|
|
|
|
|
|
defaultActiveKey:"0",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -26,7 +28,24 @@ class Paperlibraryseeid extends Component {
|
|
|
|
componentDidMount() {
|
|
|
|
componentDidMount() {
|
|
|
|
////console.log("Paperlibraryseeid");
|
|
|
|
////console.log("Paperlibraryseeid");
|
|
|
|
this.getdata();
|
|
|
|
this.getdata();
|
|
|
|
|
|
|
|
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",
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -81,9 +100,10 @@ class Paperlibraryseeid extends Component {
|
|
|
|
this.contentMdRef = Ref;
|
|
|
|
this.contentMdRef = Ref;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
let { paperlibrartdata } = this.state;
|
|
|
|
let {paperlibrartdata,defaultActiveKey} = this.state;
|
|
|
|
const params = this.props && this.props.match && this.props.match.params;
|
|
|
|
const params = this.props && this.props.match && this.props.match.params;
|
|
|
|
// ////console.log(params);
|
|
|
|
// ////console.log(params);
|
|
|
|
|
|
|
|
let urlsysl=`/paperlibrary?defaultActiveKey=${defaultActiveKey}`;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div id={"Itembankstopid"} className="newMain clearfix intermediatecenter "
|
|
|
|
<div id={"Itembankstopid"} className="newMain clearfix intermediatecenter "
|
|
|
@ -103,7 +123,7 @@ class Paperlibraryseeid extends Component {
|
|
|
|
<div className="w100s mt30">
|
|
|
|
<div className="w100s mt30">
|
|
|
|
<Breadcrumb separator=">">
|
|
|
|
<Breadcrumb separator=">">
|
|
|
|
<Breadcrumb.Item className={"shubiao"} >试卷库</Breadcrumb.Item>
|
|
|
|
<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.Item className={"shubiao"}>试卷查看</Breadcrumb.Item>
|
|
|
|
</Breadcrumb>
|
|
|
|
</Breadcrumb>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -159,8 +179,8 @@ class Paperlibraryseeid extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<Bottomsubmit {...this.props} {...this.state} bottomvalue={"发起考试"}
|
|
|
|
<Bottomsubmit {...this.props} {...this.state} bottomvalue={"发起考试"}
|
|
|
|
setCohetepaperbool={(bool) => this.setCohetepaperbool(bool)}
|
|
|
|
setCohetepaperbool={(bool)=>this.setCohetepaperbool(bool)}
|
|
|
|
onSubmits={() => this.preservation()} url={'/paperlibrary'}></Bottomsubmit>
|
|
|
|
onSubmits={() => this.preservation()} url={urlsysl}></Bottomsubmit>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|