试卷更新操作

dev_jupyter
杨树林 5 years ago
parent 5efa4002ea
commit 3074cda9cc

@ -215,7 +215,7 @@ class Paperreview extends Component {
.then((result) => {
if (result.data.status === 0) {
this.props.showNotification(`组卷成功`);
this.props.history.replace('./paperlibrary');
this.props.history.replace('/paperlibrary');
}
}).catch((error) => {
console.log(error);

@ -364,8 +364,8 @@ class Paperreview_item extends Component {
}
showparagraphs = (e,name) => {
console.log("showparagraphs");
console.log(e);
// console.log("showparagraphs");
// console.log(e);
this.setState({
paperreviewsingleindex: e,
paperreviewsinglename:name,

@ -27,7 +27,6 @@ import JudquestionEditor from "../question/component/JudquestionEditor";
class Paperlibraryeditid extends Component {
constructor(props) {
super(props);
this.contentMdRef = React.createRef();
this.Judquestio = React.createRef();
this.state = {
paperlibrartdata: [],
@ -41,6 +40,8 @@ class Paperlibraryeditid extends Component {
}
getJudquestio = (Ref) => {
console.log("子组件对象");
console.log(Ref);
this.Judquestio = Ref;
}
@ -163,7 +164,7 @@ class Paperlibraryeditid extends Component {
.then((result) => {
if (result.data.status === 0) {
this.props.showNotification(`试卷更新成功`);
this.props.history.replace('./paperlibrary');
this.props.history.push('/paperlibrary');
}
}).catch((error) => {
console.log(error);
@ -213,7 +214,7 @@ class Paperlibraryeditid extends Component {
</div>
<Comthetestpaperst {...this.state} {...this.props}
item_banksedit={this.state.item_banksedit}
getanswerMdRef={(ref) => this.getJudquestio(ref)}
getJudquestio={(ref) => this.getJudquestio(ref)}
></Comthetestpaperst>

@ -284,8 +284,8 @@ class Paperreview_item extends Component {
}
showparagraphs = (e,name) => {
console.log("showparagraphs");
console.log(e);
// console.log("showparagraphs");
// console.log(e);
this.setState({
paperreviewsingleindex: e,
paperreviewsinglename:name,

@ -364,8 +364,8 @@ class Paperlibraryseeid_itemss extends Component {
}
showparagraphs = (e,name) => {
console.log("showparagraphs");
console.log(e);
// console.log("showparagraphs");
// console.log(e);
this.setState({
paperreviewsingleindex: e,
paperreviewsinglename:name,

Loading…
Cancel
Save