From 3074cda9cc2bc15c576d72fd36748099afee7077 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Mon, 6 Jan 2020 09:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=95=E5=8D=B7=E6=9B=B4=E6=96=B0=E6=93=8D?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/question/Paperreview.js | 2 +- public/react/src/modules/question/Paperreview_item.js | 4 ++-- public/react/src/modules/testpaper/Paperlibraryeditid.js | 7 ++++--- .../modules/testpaper/component/Paperlibraryseeid_item.js | 4 ++-- .../testpaper/component/Paperlibraryseeid_itemss.js | 4 ++-- 5 files changed, 11 insertions(+), 10 deletions(-) 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,