|
|
|
@ -96,8 +96,13 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
})
|
|
|
|
|
var data={
|
|
|
|
|
page:pages,
|
|
|
|
|
discipline_id:this.state.discipline_id,
|
|
|
|
|
sub_discipline_id:this.state.sub_discipline_id,
|
|
|
|
|
tag_discipline_id:this.state.tag_discipline_id,
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
keywords: null,
|
|
|
|
|
per_page:10,
|
|
|
|
|
public:this.state.defaultActiveKey,
|
|
|
|
|
}
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
@ -114,20 +119,31 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
keywords: value,
|
|
|
|
|
})
|
|
|
|
|
var data={
|
|
|
|
|
page:1,
|
|
|
|
|
page:this.state.page,
|
|
|
|
|
discipline_id:this.state.discipline_id,
|
|
|
|
|
sub_discipline_id:this.state.sub_discipline_id,
|
|
|
|
|
tag_discipline_id:this.state.tag_discipline_id,
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
keywords: value,
|
|
|
|
|
per_page:10,
|
|
|
|
|
public:this.state.defaultActiveKey,
|
|
|
|
|
}
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
|
callback = (key) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
defaultActiveKey: key,
|
|
|
|
|
difficulty:null
|
|
|
|
|
})
|
|
|
|
|
var data={
|
|
|
|
|
page:1,
|
|
|
|
|
page:this.state.page,
|
|
|
|
|
discipline_id:this.state.discipline_id,
|
|
|
|
|
sub_discipline_id:this.state.sub_discipline_id,
|
|
|
|
|
tag_discipline_id:this.state.tag_discipline_id,
|
|
|
|
|
public: key,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
per_page:10,
|
|
|
|
|
public:key,
|
|
|
|
|
}
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
@ -178,9 +194,9 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
sub_discipline_id:null,
|
|
|
|
|
tag_discipline_id:null,
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
difficulty: null,
|
|
|
|
|
keywords: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
};
|
|
|
|
|
this.getdata(data);
|
|
|
|
@ -196,9 +212,9 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
sub_discipline_id:sub_discipline_id,
|
|
|
|
|
tag_discipline_id:null,
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
difficulty: null,
|
|
|
|
|
keywords: null,
|
|
|
|
|
page:1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
};
|
|
|
|
|
this.getdata(data);
|
|
|
|
@ -213,17 +229,15 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
sub_discipline_id:this.state.sub_discipline_id,
|
|
|
|
|
tag_discipline_id:tag_discipline_id,
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
difficulty: null,
|
|
|
|
|
keywords: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
};
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setdifficulty=(bool)=>{
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
modalCancels=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
modalsTypes: false
|
|
|
|
|