|
|
|
@ -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 (
|
|
|
|
|
<div className="newMain clearfix" ref={this.saveContainer}>
|
|
|
|
|
<QuestionModal {...this.props}{...this.state} modalsType={modalsType} modalCancel={()=>this.modalCancel()} setDownload={()=>this.setDownload()}></QuestionModal>
|
|
|
|
@ -355,23 +382,28 @@ class Question extends Component {
|
|
|
|
|
onClose={()=>this.onClose()}
|
|
|
|
|
visible={visible}
|
|
|
|
|
>
|
|
|
|
|
{/*<div className="mt25 mb26">*/}
|
|
|
|
|
{/* <Input placeholder="未命名试卷" />*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
{/*<div className="sortinxdirection">*/}
|
|
|
|
|
{/* <p className="w50s intermediatecenterysls sortinxdirection font-14">单选题</p>*/}
|
|
|
|
|
{/* <p className="w50s intermediatecenterysls xaxisreverseorder"><i className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor "></i></p>*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
|
|
|
|
|
{/*<div className="intermediatecenter verticallayout mt42">*/}
|
|
|
|
|
{/* <div className="drawerbutton">*/}
|
|
|
|
|
{/* 试卷预览*/}
|
|
|
|
|
{/* </div>*/}
|
|
|
|
|
{/*</div>*/}
|
|
|
|
|
{
|
|
|
|
|
basket_list&&basket_list.length===0?
|
|
|
|
|
<div className="drawernonedatadiv intermediatecenter">
|
|
|
|
|
<NoneData></NoneData>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
<div>
|
|
|
|
|
<div className="mt25 mb26">
|
|
|
|
|
<Input placeholder="未命名试卷" />
|
|
|
|
|
</div>
|
|
|
|
|
<div className="sortinxdirection">
|
|
|
|
|
<p className="w50s intermediatecenterysls sortinxdirection font-14">单选题</p>
|
|
|
|
|
<p className="w50s intermediatecenterysls xaxisreverseorder"><i className="iconfont icon-shanchu1 font-14 lg lh30 icondrawercolor "></i></p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="intermediatecenter verticallayout mt42">
|
|
|
|
|
<div className="drawerbutton">
|
|
|
|
|
试卷预览
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</Drawer>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|