|
|
|
@ -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
|
|
|
|
@ -258,7 +272,7 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//公开试题
|
|
|
|
|
//公开试卷
|
|
|
|
|
publicopentimu = (id) => {
|
|
|
|
|
|
|
|
|
|
const url = `/examination_banks/${id}/set_public.json`;
|
|
|
|
@ -283,7 +297,7 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//删除试题
|
|
|
|
|
//删除试卷
|
|
|
|
|
deletetimu = (id) => {
|
|
|
|
|
|
|
|
|
|
const url = `/examination_banks/${id}.json`;
|
|
|
|
@ -313,7 +327,7 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
showmodels = (id) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
modalsType: true,
|
|
|
|
|
titilesm: "设为公开后,所有成员均可使用试题",
|
|
|
|
|
titilesm: "设为公开后,所有成员均可使用试卷",
|
|
|
|
|
titiless: "是否设置为公开?",
|
|
|
|
|
titbool: true,
|
|
|
|
|
timuid: id
|
|
|
|
|