From a8d09fba6533c5c383c5ac45485c88cd479bc6e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Sun, 5 Jan 2020 17:19:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=98=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../question/comthetestpaper/Comthetestpaperst.js | 2 +- .../src/modules/testpaper/Paperlibraryeditid.js | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js b/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js index b4a905fbd..47b906db1 100644 --- a/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js +++ b/public/react/src/modules/question/comthetestpaper/Comthetestpaperst.js @@ -538,7 +538,7 @@ class Comthetestpaperst extends Component { )(
- diff --git a/public/react/src/modules/testpaper/Paperlibraryeditid.js b/public/react/src/modules/testpaper/Paperlibraryeditid.js index 6de67c161..000bb8990 100644 --- a/public/react/src/modules/testpaper/Paperlibraryeditid.js +++ b/public/react/src/modules/testpaper/Paperlibraryeditid.js @@ -20,21 +20,26 @@ import Bottomsubmit from "../../modules/modals/Bottomsubmit"; import Seeoagertit from "./component/Seeoagertit"; import Paperlibraryseeid_item from './component/Paperlibraryseeid_item'; import Comthetestpaperst from '../question/comthetestpaper/Comthetestpaperst'; +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:[], disciplinesdata: [], knowledgepoints: [], disciplmy: [], + item_banksedit:[] } } - + getJudquestio = (Ref) => { + this.Judquestio = Ref; + } //初始化 componentDidMount() { console.log("Paperlibraryseeid"); @@ -107,6 +112,7 @@ class Paperlibraryeditid extends Component { if (response) { this.setState({ paperlibrartdata: response.data, + item_banksedit:response.data.exam, }) } }); @@ -177,7 +183,10 @@ class Paperlibraryeditid extends Component { 试卷编辑
- + this.getJudquestio(ref)} + >