|
|
|
@ -77,7 +77,14 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
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,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
}
|
|
|
|
|
this.getdata(data);
|
|
|
|
|
|
|
|
|
@ -172,7 +179,6 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
tag_discipline_id:null,
|
|
|
|
|
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,
|
|
|
|
@ -191,7 +197,6 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
tag_discipline_id:null,
|
|
|
|
|
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,
|
|
|
|
@ -209,7 +214,6 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
tag_discipline_id: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,
|
|
|
|
@ -263,6 +267,9 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
if (result.data.status == 0) {
|
|
|
|
|
this.props.showNotification(`公开试卷成功`);
|
|
|
|
|
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,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
@ -286,6 +293,9 @@ class Testpaperlibrary extends Component {
|
|
|
|
|
this.props.showNotification('删除试卷成功')
|
|
|
|
|
// props.history.push(response.data.right_url)
|
|
|
|
|
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,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|