From 5ca733ccbbfc4a9747dc7d97b327793ddb6ac86e 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, 25 Dec 2019 19:14:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E8=AF=95=E9=A2=98=E6=A0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/question/Question.js | 68 ++++++++++++++----- .../question/component/JudquestionEditor.js | 20 ++++-- .../modules/question/component/Listjihe.js | 5 +- 3 files changed, 69 insertions(+), 24 deletions(-) diff --git a/public/react/src/modules/question/Question.js b/public/react/src/modules/question/Question.js index f4597b440..9be172fe7 100644 --- a/public/react/src/modules/question/Question.js +++ b/public/react/src/modules/question/Question.js @@ -41,6 +41,7 @@ class Question extends Component { keyword:null, timuid:null, items_count:0, + basket_list:[], } } @@ -67,6 +68,8 @@ class Question extends Component { } } }); + + this.getbasket_listdata(); } callback=(key)=>{ @@ -301,8 +304,32 @@ class Question extends Component { console.log(error); }) } + + getbasket_listdata=()=>{ + // 获取试题篮展开的数据 + const url ="/item_baskets/basket_list.json"; + axios.post(url) + .then((result) => { + if (result.data.status == 0) { + console.log("getbasket_listdata"); + console.log(result.data); + this.setState({ + basket_list:result.data, + }) + + } + }).catch((error) => { + console.log(error); + this.setState({ + basket_list:[] + }) + }) + + } + + render() { - let {page,limit,count,Headertop,visible,placement,modalsType}=this.state; + let {page,limit,count,Headertop,visible,placement,modalsType,basket_list}=this.state; return (
单选题
*/} - {/**/} - {/*
单选题
++
+ +
{ items.item_type==="JUDGMENT"? items === undefined ||items === null? "" : items.choices.map((object, index) => { return ( -
+