dev_jupyter
杨树林 5 years ago
parent 35db6c60bb
commit ed3d8cd4b6

@ -199,6 +199,7 @@ class Contentpart extends Component {
: this.props.Contentdata.items.map((object, index) => { : this.props.Contentdata.items.map((object, index) => {
return ( return (
<Listjihe {...this.state} {...this.props} items={object} <Listjihe {...this.state} {...this.props} items={object}
key={index}
getitem_basketss={(id)=>this.props.getitem_basketss(id)} getitem_basketss={(id)=>this.props.getitem_basketss(id)}
getitem_baskets={(e)=>this.props.getitem_baskets(e)} getitem_baskets={(e)=>this.props.getitem_baskets(e)}
showmodels={(e)=>this.props.showmodels(e)} showmodels={(e)=>this.props.showmodels(e)}

@ -97,6 +97,12 @@ class Testpaperlibrary extends Component {
this.setState({ this.setState({
keywords: value, keywords: value,
}) })
var data={
page:1,
per_page:10,
public:this.state.defaultActiveKey,
}
this.getdata(data);
} }
callback = (key) => { callback = (key) => {
this.setState({ this.setState({
@ -110,16 +116,6 @@ class Testpaperlibrary extends Component {
this.getdata(data); this.getdata(data);
} }
//搜索框的内容
setdatafunsval=()=>{
}
//搜索按钮
setdatafuns=()=>{
}
//获取数据 //获取数据
getdata=(data)=>{ getdata=(data)=>{
const url = `/examination_banks.json`; const url = `/examination_banks.json`;

@ -37,6 +37,7 @@ class Contentpart extends Component {
this.props.history.push('/question'); this.props.history.push('/question');
} }
render() { render() {
let {page}=this.state; let {page}=this.state;
let {defaultActiveKey}=this.props; let {defaultActiveKey}=this.props;
@ -189,7 +190,7 @@ class Contentpart extends Component {
: this.props.Contentdata.exams.map((object, index) => { : this.props.Contentdata.exams.map((object, index) => {
return ( return (
<Listjihe {...this.state} {...this.props} items={object}> <Listjihe {...this.state} {...this.props} items={object} key={index}>
</Listjihe> </Listjihe>
) )

Loading…
Cancel
Save