|
|
|
@ -62,6 +62,7 @@ class Question extends Component {
|
|
|
|
|
disciplinesdatakc:0,
|
|
|
|
|
disciplinesdatazsd:0,
|
|
|
|
|
selectallquestionsonthispages:false,
|
|
|
|
|
oj_status:null,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -73,6 +74,7 @@ class Question extends Component {
|
|
|
|
|
keywords:"",
|
|
|
|
|
page:1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
|
})
|
|
|
|
|
var data = {
|
|
|
|
|
discipline_id:discipline_id,
|
|
|
|
@ -84,6 +86,7 @@ class Question extends Component {
|
|
|
|
|
keywords: null,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
|
};
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
|
|
|
|
@ -96,6 +99,7 @@ class Question extends Component {
|
|
|
|
|
keywords:"",
|
|
|
|
|
page:1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
|
})
|
|
|
|
|
var data = {
|
|
|
|
|
discipline_id:this.state.discipline_id,
|
|
|
|
@ -107,6 +111,7 @@ class Question extends Component {
|
|
|
|
|
keywords:null,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
|
};
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
@ -117,6 +122,7 @@ class Question extends Component {
|
|
|
|
|
keywords:"",
|
|
|
|
|
page:1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
|
})
|
|
|
|
|
var data = {
|
|
|
|
|
discipline_id:this.state.discipline_id,
|
|
|
|
@ -128,6 +134,7 @@ class Question extends Component {
|
|
|
|
|
keywords: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
|
};
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
@ -175,13 +182,14 @@ class Question extends Component {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//公共和我的
|
|
|
|
|
callback = (key) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
defaultActiveKey: key,
|
|
|
|
|
selectallquestionsonthispages:false,
|
|
|
|
|
difficulty:null,
|
|
|
|
|
page:1
|
|
|
|
|
page:1,
|
|
|
|
|
oj_status:null
|
|
|
|
|
})
|
|
|
|
|
var data = {
|
|
|
|
|
discipline_id:this.state.discipline_id,
|
|
|
|
@ -192,6 +200,7 @@ class Question extends Component {
|
|
|
|
|
difficulty: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
|
};
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
|
|
|
|
@ -245,6 +254,7 @@ class Question extends Component {
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
page: pageNumber,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:this.state.oj_status
|
|
|
|
|
};
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
@ -340,7 +350,8 @@ class Question extends Component {
|
|
|
|
|
visiblemys: false,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
keywords:""
|
|
|
|
|
keywords:"",
|
|
|
|
|
oj_status:null
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
var data = {
|
|
|
|
@ -353,6 +364,7 @@ class Question extends Component {
|
|
|
|
|
keywords:null,
|
|
|
|
|
page:1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.getdata(data);
|
|
|
|
@ -364,7 +376,8 @@ class Question extends Component {
|
|
|
|
|
visiblemyss: false,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
keywords:""
|
|
|
|
|
keywords:"",
|
|
|
|
|
oj_status:null
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
var data = {
|
|
|
|
@ -376,7 +389,8 @@ class Question extends Component {
|
|
|
|
|
item_type: item_type,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
keywords:null
|
|
|
|
|
keywords:null,
|
|
|
|
|
oj_status:null
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.getdata(data);
|
|
|
|
@ -443,6 +457,7 @@ class Question extends Component {
|
|
|
|
|
keywords: value,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:this.state.oj_status
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
this.getdata(data);
|
|
|
|
@ -646,6 +661,27 @@ class Question extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setoj_status=(oj_status)=>{
|
|
|
|
|
//编程题发布未发布
|
|
|
|
|
this.setState({
|
|
|
|
|
selectallquestionsonthispages:false,
|
|
|
|
|
difficulty:null,
|
|
|
|
|
oj_status:oj_status
|
|
|
|
|
})
|
|
|
|
|
var data = {
|
|
|
|
|
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,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:oj_status
|
|
|
|
|
};
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
}
|
|
|
|
|
render() {
|
|
|
|
|
let {
|
|
|
|
|
page, per_page, items_count, Headertop, visible, placement, modalsType, modalsTypes,basket_list,
|
|
|
|
@ -735,7 +771,8 @@ class Question extends Component {
|
|
|
|
|
handleVisibleChange={(e) => this.handleVisibleChange(e)}
|
|
|
|
|
showmodels={(e) => this.showmodels(e)}
|
|
|
|
|
showmodelysl={(e) => this.showmodelysl(e)}
|
|
|
|
|
callback={(e) => this.callback(e)}></Contentpart>
|
|
|
|
|
callback={(e) => this.callback(e)}
|
|
|
|
|
setoj_status={(e)=>this.setoj_status(e)}></Contentpart>
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
items_count&&items_count>10?
|
|
|
|
|