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

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

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

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

Loading…
Cancel
Save