|
|
|
@ -232,39 +232,6 @@ class Contentpart extends Component {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const content = (
|
|
|
|
|
<div className="questiontypes" style={{
|
|
|
|
|
width:'93px',
|
|
|
|
|
height:'200px',
|
|
|
|
|
}}>
|
|
|
|
|
<p className="questiontype " onClick={()=>this.props.setitem_types(null)}>全部</p>
|
|
|
|
|
<p className="questiontypeheng" ></p>
|
|
|
|
|
<p className="questiontype " onClick={()=>this.props.setitem_types("SINGLE")}>单选题</p>
|
|
|
|
|
<p className="questiontypeheng" ></p>
|
|
|
|
|
<p className="questiontype " onClick={()=>this.props.setitem_types("MULTIPLE")}>多选题</p>
|
|
|
|
|
<p className="questiontypeheng"></p>
|
|
|
|
|
<p className="questiontype " onClick={()=>this.props.setitem_types("JUDGMENT")}>判断题</p>
|
|
|
|
|
<p className="questiontypeheng"></p>
|
|
|
|
|
<p className="questiontype " onClick={()=>this.props.setitem_types("PROGRAM")}>编程题</p>
|
|
|
|
|
<p className="questiontypeheng"></p>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
const contents = (
|
|
|
|
|
<div className="questiontypes" style={{
|
|
|
|
|
width:'93px',
|
|
|
|
|
height:'120px',
|
|
|
|
|
}}>
|
|
|
|
|
<p className="questiontype " onClick={()=>this.props.setoj_status(null)}>全部</p>
|
|
|
|
|
<p className="questiontypeheng"></p>
|
|
|
|
|
<p className="questiontype " onClick={()=>this.props.setoj_status(0)}>未发布</p>
|
|
|
|
|
<p className="questiontypeheng"></p>
|
|
|
|
|
<p className="questiontype " onClick={()=>this.props.setoj_status(1)}>已发布</p>
|
|
|
|
|
<p className="questiontypeheng"></p>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// console.log("Contentpart.js");
|
|
|
|
|
// console.log(this.props.current_user.professional_certification);
|
|
|
|
|
|
|
|
|
@ -381,22 +348,6 @@ class Contentpart extends Component {
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{item_type==="PROGRAM"?
|
|
|
|
|
defaultActiveKey===0||defaultActiveKey==="0"?
|
|
|
|
|
<Popover getPopupContainer={trigger => trigger.parentNode} placement="bottom" trigger="hover" content={contents} onVisibleChange={()=>this.props.handleVisibleChange(true)}>
|
|
|
|
|
<div className=" sortinxdirection mr30">
|
|
|
|
|
|
|
|
|
|
<div className="subjecttit">
|
|
|
|
|
全部
|
|
|
|
|
</div>
|
|
|
|
|
<i className="iconfont icon-sanjiaoxing-down font-12 lg ml7 icondowncolor"></i>
|
|
|
|
|
</div>
|
|
|
|
|
</Popover>
|
|
|
|
|
:
|
|
|
|
|
"":""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
this.props.Isitapopup&&this.props.Isitapopup==="true"?
|
|
|
|
|
<Search
|
|
|
|
@ -455,6 +406,7 @@ class Contentpart extends Component {
|
|
|
|
|
: this.props.Contentdata.items.map((object, index) => {
|
|
|
|
|
return (
|
|
|
|
|
<Listjihe {...this.state} {...this.props}
|
|
|
|
|
defaultActiveKeys={defaultActiveKeys}
|
|
|
|
|
Datacountbool={this.props.Datacountbool}
|
|
|
|
|
Datacount={this.props.Datacount}
|
|
|
|
|
Isitapopup={this.props.Isitapopup}
|
|
|
|
|