diff --git a/public/react/src/modules/question/Paperreview.js b/public/react/src/modules/question/Paperreview.js index 50a1a3c89..c9da91fda 100644 --- a/public/react/src/modules/question/Paperreview.js +++ b/public/react/src/modules/question/Paperreview.js @@ -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); diff --git a/public/react/src/modules/question/Paperreview_item.js b/public/react/src/modules/question/Paperreview_item.js index 1698d2295..0f3726dcb 100644 --- a/public/react/src/modules/question/Paperreview_item.js +++ b/public/react/src/modules/question/Paperreview_item.js @@ -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, diff --git a/public/react/src/modules/testpaper/Paperlibraryeditid.js b/public/react/src/modules/testpaper/Paperlibraryeditid.js index 0b80e8bf8..ba8cb6926 100644 --- a/public/react/src/modules/testpaper/Paperlibraryeditid.js +++ b/public/react/src/modules/testpaper/Paperlibraryeditid.js @@ -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 { this.getJudquestio(ref)} + getJudquestio={(ref) => this.getJudquestio(ref)} > diff --git a/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js b/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js index 538a110bd..35f395c0f 100644 --- a/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js +++ b/public/react/src/modules/testpaper/component/Paperlibraryseeid_item.js @@ -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, diff --git a/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js b/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js index 14833b37b..7b63cb181 100644 --- a/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js +++ b/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js @@ -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,