dev_jupyter
杨树林 5 years ago
parent 7b9501c030
commit de7f418c3d

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

@ -54,10 +54,6 @@ class Contentpart extends Component {
<p className="questiontypeheng"></p> <p className="questiontypeheng"></p>
</div> </div>
); );
const difs=this.props.difficulty;
console.log("difs");
console.log(difs);
return ( return (
<div className=" clearfix mt40"> <div className=" clearfix mt40">
<div className="educontent mt10 pb20 w1200s"> <div className="educontent mt10 pb20 w1200s">
@ -127,9 +123,8 @@ class Contentpart extends Component {
<Popover placement="bottom" trigger="hover" content={contents} > <Popover placement="bottom" trigger="hover" content={contents} >
<div className=" sortinxdirection mr10"> <div className=" sortinxdirection mr10">
<div className="subjecttitys">
<div className={this.props.difficulty===null?"subjecttit":"subjecttitys"}> 难度
难度 <span>{this.props.difficulty===1?"(简单)":this.props.difficulty===1?"(适中)":this.props.difficulty===1?"(困难)":""}</span>
</div> </div>
<i className="iconfont icon-sanjiaoxing-down font-12 lg ml7 icondowncolor"></i> <i className="iconfont icon-sanjiaoxing-down font-12 lg ml7 icondowncolor"></i>
</div> </div>

Loading…
Cancel
Save