|
|
|
@ -14,8 +14,9 @@ import {
|
|
|
|
|
import './../testioncss/testioncss.css';
|
|
|
|
|
|
|
|
|
|
import NoneDatas from '../component/NoneDatas';
|
|
|
|
|
import LoadingSpin from '../../../common/LoadingSpin';
|
|
|
|
|
import Contentquestionbank from "./Contentquestionbank";
|
|
|
|
|
import LoadingSpin from '../../../common/LoadingSpin';
|
|
|
|
|
import Listjihe from "./Listjihe";
|
|
|
|
|
const { TabPane } = Tabs;
|
|
|
|
|
const Search = Input.Search;
|
|
|
|
|
class Contentpart extends Component {
|
|
|
|
@ -30,6 +31,10 @@ class Contentpart extends Component {
|
|
|
|
|
componentDidMount(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
//跳转人工组卷
|
|
|
|
|
Mantegeneration=()=>{
|
|
|
|
|
this.props.history.push('/question');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
render() {
|
|
|
|
@ -40,7 +45,7 @@ class Contentpart extends Component {
|
|
|
|
|
width:'93px',
|
|
|
|
|
height:'120px',
|
|
|
|
|
}}>
|
|
|
|
|
<p className="questiontype " >简单</p>
|
|
|
|
|
<p className="questiontype ">简单</p>
|
|
|
|
|
<p className="questiontypeheng"></p>
|
|
|
|
|
<p className="questiontype " >适中</p>
|
|
|
|
|
<p className="questiontypeheng"></p>
|
|
|
|
@ -78,19 +83,20 @@ class Contentpart extends Component {
|
|
|
|
|
position:"absolute",
|
|
|
|
|
top: "0px",
|
|
|
|
|
paddingLeft: "170px",
|
|
|
|
|
width: "100%",
|
|
|
|
|
}}>
|
|
|
|
|
<style>
|
|
|
|
|
{
|
|
|
|
|
`
|
|
|
|
|
.xaxisreverseorder .ant-input-group-addon{
|
|
|
|
|
.sortinxdirection .ant-input-group-addon{
|
|
|
|
|
width: 60px !important;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.xaxisreverseorder .ant-input-lg {
|
|
|
|
|
.sortinxdirection .ant-input-lg {
|
|
|
|
|
height: 41px;}
|
|
|
|
|
|
|
|
|
|
.xaxisreverseorder .ant-popover{
|
|
|
|
|
.sortinxdirection .ant-popover{
|
|
|
|
|
top: 348px !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -102,17 +108,16 @@ class Contentpart extends Component {
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
<div className="xaxisreverseorder">
|
|
|
|
|
{
|
|
|
|
|
defaultActiveKey===0||defaultActiveKey==="0"?
|
|
|
|
|
<a href={'/question/newitem'}>
|
|
|
|
|
<div className="newbutoon">
|
|
|
|
|
<p className="newbutoontes" >新增</p>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
<Popover getPopupContainer={trigger => trigger.parentNode} placement="bottom" trigger="hover" content={contents} >
|
|
|
|
|
<div className="sortinxdirection">
|
|
|
|
|
<Search
|
|
|
|
|
style={{ width: "347px",marginRight:"60px",}}
|
|
|
|
|
placeholder="请输入题目名称、内容"
|
|
|
|
|
enterButton
|
|
|
|
|
size="large"
|
|
|
|
|
onInput={(e)=>this.props.setdatafunsval(e)}
|
|
|
|
|
onSearch={ (value)=>this.props.setdatafuns(value)} />
|
|
|
|
|
|
|
|
|
|
<Popover placement="bottom" trigger="hover" content={contents} >
|
|
|
|
|
<div className=" sortinxdirection mr10">
|
|
|
|
|
|
|
|
|
|
<div className="subjecttit">
|
|
|
|
@ -122,19 +127,76 @@ class Contentpart extends Component {
|
|
|
|
|
</div>
|
|
|
|
|
</Popover>
|
|
|
|
|
|
|
|
|
|
<Search
|
|
|
|
|
style={{ width: "347px",marginRight:"60px",}}
|
|
|
|
|
placeholder="请输入题目名称、内容"
|
|
|
|
|
enterButton
|
|
|
|
|
size="large"
|
|
|
|
|
onInput={(e)=>this.props.setdatafunsval(e)}
|
|
|
|
|
onSearch={ (value)=>this.props.setdatafuns(value)} />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="xaxisreverseorder" style={{
|
|
|
|
|
width:"388px"
|
|
|
|
|
}}>
|
|
|
|
|
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{/*内容*/}
|
|
|
|
|
{
|
|
|
|
|
this.props.Contentdata.items === undefined ||this.props.Contentdata.items === null||this.props.Contentdata.items.length===0 ?
|
|
|
|
|
<div className=" w100s mb10"></div>
|
|
|
|
|
:
|
|
|
|
|
<div className=" w100s mb10">
|
|
|
|
|
{
|
|
|
|
|
defaultActiveKey===1||defaultActiveKey==="1"?
|
|
|
|
|
<Contentquestionbank {...this.props} {...this.state} selectallquestionsonthispage={()=>this.props.selectallquestionsonthispage()} ></Contentquestionbank>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
defaultActiveKey===0||defaultActiveKey==="0"?
|
|
|
|
|
<Contentquestionbank {...this.props} {...this.state} selectallquestionsonthispage={()=>this.props.selectallquestionsonthispage()}></Contentquestionbank>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div className="minheight">
|
|
|
|
|
{/*列表集合*/}
|
|
|
|
|
<div className=" w100s">
|
|
|
|
|
{
|
|
|
|
|
this.props.booljupyterurls===true?
|
|
|
|
|
<LoadingSpin></LoadingSpin>
|
|
|
|
|
:
|
|
|
|
|
this.props.Contentdata.exams === undefined ||this.props.Contentdata.exams === null||this.props.Contentdata.exams.length===0?
|
|
|
|
|
<NoneDatas></NoneDatas>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
: this.props.Contentdata.exams.map((object, index) => {
|
|
|
|
|
return (
|
|
|
|
|
<Listjihe {...this.state} {...this.props} items={object}>
|
|
|
|
|
|
|
|
|
|
</Listjihe>
|
|
|
|
|
)
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|