|
|
|
@ -41,6 +41,12 @@ class Contentpart extends Component {
|
|
|
|
|
render() {
|
|
|
|
|
let {page}=this.state;
|
|
|
|
|
let {defaultActiveKey}=this.props;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const isysladmins=this.props&&this.props.current_user&&this.props.current_user.admin?this.props.current_user.admin:false;
|
|
|
|
|
const is_teacher=this.props&&this.props.current_user&&this.props.current_user.is_teacher?this.props.current_user.is_teacher:false;
|
|
|
|
|
const professional_certification=this.props&&this.props.current_user&&this.props.current_user.professional_certification?this.props.current_user.professional_certification:false;
|
|
|
|
|
|
|
|
|
|
const contents = (
|
|
|
|
|
<div className="questiontypes" style={{
|
|
|
|
|
width:'93px',
|
|
|
|
@ -82,12 +88,20 @@ class Contentpart extends Component {
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<Tabs defaultActiveKey={defaultActiveKey} onChange={(e)=>this.props.callback(e)}>
|
|
|
|
|
<TabPane tab="公共" key="1">
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="我的" key="0">
|
|
|
|
|
</TabPane>
|
|
|
|
|
</Tabs>
|
|
|
|
|
{
|
|
|
|
|
isysladmins===true||(is_teacher===true&&professional_certification===true)?
|
|
|
|
|
<Tabs activeKey={defaultActiveKey} onChange={(e)=>this.props.callback(e)}>
|
|
|
|
|
<TabPane tab="公共" key="1">
|
|
|
|
|
</TabPane>
|
|
|
|
|
<TabPane tab="我的" key="0">
|
|
|
|
|
</TabPane>
|
|
|
|
|
</Tabs>
|
|
|
|
|
:
|
|
|
|
|
<Tabs activeKey={1} onChange={(e)=>this.props.callback(e)}>
|
|
|
|
|
<TabPane tab="公共" key="1">
|
|
|
|
|
</TabPane>
|
|
|
|
|
</Tabs>
|
|
|
|
|
}
|
|
|
|
|
<div className=" mt19" style={{
|
|
|
|
|
position:"absolute",
|
|
|
|
|
top: "0px",
|
|
|
|
@ -112,7 +126,7 @@ class Contentpart extends Component {
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="sortinxdirection">
|
|
|
|
|
<div className={isysladmins===true||(is_teacher===true&&professional_certification===true)?"sortinxdirection":"xaxisreverseorder"}>
|
|
|
|
|
<Search
|
|
|
|
|
style={{ width: "347px",marginRight:"60px",}}
|
|
|
|
|
placeholder="请输入题目名称、内容"
|
|
|
|
@ -123,26 +137,26 @@ class Contentpart extends Component {
|
|
|
|
|
value={this.props.keywords}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="xaxisreverseorder" style={{
|
|
|
|
|
width:"50%"
|
|
|
|
|
}}>
|
|
|
|
|
|
|
|
|
|
<a href={'/question/newitem'}>
|
|
|
|
|
<div className="newbutoonss">
|
|
|
|
|
<p className="newbutoontess" >智能组卷</p>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a href={'/question'} >
|
|
|
|
|
<div className="newbutoons mr39">
|
|
|
|
|
<p className="newbutoontess" >人工组卷</p>
|
|
|
|
|
{
|
|
|
|
|
isysladmins===true||(is_teacher===true&&professional_certification===true)?
|
|
|
|
|
<div className="xaxisreverseorder" style={{
|
|
|
|
|
width:"50%"
|
|
|
|
|
}}>
|
|
|
|
|
|
|
|
|
|
<a href={'/question/newitem'}>
|
|
|
|
|
<div className="newbutoonss">
|
|
|
|
|
<p className="newbutoontess" >智能组卷</p>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
<a href={'/question'} >
|
|
|
|
|
<div className="newbutoons mr39">
|
|
|
|
|
<p className="newbutoontess" >人工组卷</p>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|