From ea6f3146959f88de5704b34b3ba9dc4ea6d99f65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=9E=97?= <904079904@qq.com> Date: Wed, 19 Feb 2020 16:57:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/question/Paperreview.js | 9 +++++---- .../react/src/modules/question/Paperreview_item.js | 13 +++++++++---- .../testpaper/component/Paperlibraryseeid_itemss.js | 3 ++- 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/public/react/src/modules/question/Paperreview.js b/public/react/src/modules/question/Paperreview.js index bb553993c..af222157f 100644 --- a/public/react/src/modules/question/Paperreview.js +++ b/public/react/src/modules/question/Paperreview.js @@ -334,14 +334,15 @@ class Paperreview extends Component { { - Cohetepaperbool === false ? - this.getdata(data)} setnewmyshixunmodelbool={(e) => this.setnewmyshixunmodelbool(e)}> + Cohetepaperbool===false? + this.Changingtopics(e)} Replacementtype={(e)=>this.Replacementtype(e)} getdata={(data)=>this.getdata(data)} setnewmyshixunmodelbool={(e)=>this.setnewmyshixunmodelbool(e)}> : this.getcontentMdRef(ref)} - setitem_type={(item) => this.setitem_type(item)} + + getJudquestio={(ref) => this.getcontentMdRef(ref)} + setitem_type={(item) => this.setitem_type(item)} > } diff --git a/public/react/src/modules/question/Paperreview_item.js b/public/react/src/modules/question/Paperreview_item.js index 2e3b8190c..cb6c1514b 100644 --- a/public/react/src/modules/question/Paperreview_item.js +++ b/public/react/src/modules/question/Paperreview_item.js @@ -272,7 +272,9 @@ class Paperreview_item extends Component { } else { //确定 const url = `/item_baskets/${this.state.item_bank_id}.json`; - axios.delete((url)) + axios.delete(url, { data: { + exam_setting_id: this.props.match.params.id, + }}) .then((response) => { if (response.data.status == 0) { // this.props.showNotification('试题删除成功'); @@ -290,8 +292,9 @@ class Paperreview_item extends Component { } - showsetmodalsTypedels = (id, bool, type) => { - debugger + showsetmodalsTypedels=(id,bool,type)=>{ + console.log("Paperreview_item"); + this.setState({ item_bank_id: id, }) @@ -393,7 +396,9 @@ class Paperreview_item extends Component { paperreviewsingleindex, modalsTypeys } = this.state; - let { single_questions, multiple_questions, judgement_questions, program_questions, all_score } = this.props; + let {single_questions, multiple_questions, judgement_questions, program_questions, all_score} = this.props; + console.log("this.props"); + console.log(this.props); return (
{ diff --git a/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js b/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js index b725b4e5e..754a45560 100644 --- a/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js +++ b/public/react/src/modules/testpaper/component/Paperlibraryseeid_itemss.js @@ -291,7 +291,8 @@ class Paperlibraryseeid_itemss extends Component { } showsetmodalsTypedels=(id,bool,type)=>{ - debugger + console.log("Paperlibraryseeid_itemss"); + this.setState({ item_bank_id:id, })