|
|
|
@ -20,6 +20,7 @@ import {TPMIndexHOC} from "../tpm/TPMIndexHOC";
|
|
|
|
|
import NoneData from './component/NoneData';
|
|
|
|
|
import './questioncss/questioncom.css';
|
|
|
|
|
import Bottomsubmit from "../modals/Bottomsubmit";
|
|
|
|
|
import QuestionModalys from "./component/QuestionModalys";
|
|
|
|
|
|
|
|
|
|
//exam_id 试卷的id
|
|
|
|
|
class NewMyShixunModel extends Component {
|
|
|
|
@ -67,15 +68,28 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
oj_status:null,
|
|
|
|
|
isVisible: false,
|
|
|
|
|
selectionbools:false,
|
|
|
|
|
chakanjiexiboolindex:"无",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
chakanjiexibool=(index)=>{
|
|
|
|
|
if(this.state.chakanjiexiboolindex===index){
|
|
|
|
|
this.setState({
|
|
|
|
|
chakanjiexiboolindex:"无",
|
|
|
|
|
})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.setState({
|
|
|
|
|
chakanjiexiboolindex:index,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
setdiscipline_id=(discipline_id)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
discipline_id:discipline_id,
|
|
|
|
|
sub_discipline_id:null,
|
|
|
|
|
tag_discipline_id:null,
|
|
|
|
|
keywords:"",
|
|
|
|
|
keyword:"",
|
|
|
|
|
page:1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
@ -87,7 +101,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: null,
|
|
|
|
|
keyword: null,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null,
|
|
|
|
@ -101,7 +115,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
this.setState({
|
|
|
|
|
sub_discipline_id:sub_discipline_id,
|
|
|
|
|
tag_discipline_id:null,
|
|
|
|
|
keywords:"",
|
|
|
|
|
keyword:"",
|
|
|
|
|
page:1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
@ -113,7 +127,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords:null,
|
|
|
|
|
keyword:null,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null,
|
|
|
|
@ -125,7 +139,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
settag_discipline_id=(tag_discipline_id)=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
tag_discipline_id:tag_discipline_id,
|
|
|
|
|
keywords:"",
|
|
|
|
|
keyword:"",
|
|
|
|
|
page:1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null
|
|
|
|
@ -137,7 +151,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: null,
|
|
|
|
|
keyword: null,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null,
|
|
|
|
@ -355,7 +369,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
keyword: this.state.keywords,
|
|
|
|
|
page: pageNumber,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:this.state.oj_status,
|
|
|
|
@ -463,7 +477,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
visiblemys: false,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
keywords:"",
|
|
|
|
|
keyword:"",
|
|
|
|
|
oj_status:null
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -474,7 +488,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords:null,
|
|
|
|
|
keyword:null,
|
|
|
|
|
page:1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:null,
|
|
|
|
@ -490,7 +504,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
visiblemyss: false,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
keywords:"",
|
|
|
|
|
keyword:"",
|
|
|
|
|
oj_status:null
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
@ -503,7 +517,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
item_type: item_type,
|
|
|
|
|
page: 1,
|
|
|
|
|
per_page:10,
|
|
|
|
|
keywords:null,
|
|
|
|
|
keyword:null,
|
|
|
|
|
oj_status:null,
|
|
|
|
|
exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
|
|
|
|
|
};
|
|
|
|
@ -524,6 +538,19 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
showmodelsInaudit = (e) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
modalsTypeInaudit: true,
|
|
|
|
|
titilesm: "公开申请已提交,请等待管理员的审核",
|
|
|
|
|
titiless: "我们将在1-2个工作日内完成审核",
|
|
|
|
|
})
|
|
|
|
|
};
|
|
|
|
|
modalsTypeInauditbool=()=>{
|
|
|
|
|
this.setState({
|
|
|
|
|
modalsTypeInaudit:false,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handleVisibleChanges = (boll) => {
|
|
|
|
|
if (this.state.visiblemys === true) {
|
|
|
|
@ -541,13 +568,13 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
|
|
|
|
|
setdatafunsval = (e) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
keywords: e.target.value
|
|
|
|
|
keyword: e.target.value
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
setdatafuns = (value) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
keywords: value,
|
|
|
|
|
keyword: value,
|
|
|
|
|
})
|
|
|
|
|
var data = {
|
|
|
|
|
discipline_id:this.state.discipline_id,
|
|
|
|
@ -556,7 +583,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: value,
|
|
|
|
|
keyword: value,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:this.state.oj_status,
|
|
|
|
@ -581,7 +608,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
keyword: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
|
|
|
|
@ -607,7 +634,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
keyword: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
|
|
|
|
@ -675,7 +702,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
keyword: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
|
|
|
|
@ -706,7 +733,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
keyword: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
|
|
|
|
@ -732,7 +759,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
keyword: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
|
|
|
|
@ -805,7 +832,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
keyword: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
exam_id:this.props.exam_id===undefined?"":parseInt(this.props.exam_id),
|
|
|
|
@ -842,7 +869,7 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
public: this.state.defaultActiveKey,
|
|
|
|
|
difficulty: this.state.difficulty,
|
|
|
|
|
item_type: this.state.item_type,
|
|
|
|
|
keywords: this.state.keywords,
|
|
|
|
|
keyword: this.state.keywords,
|
|
|
|
|
page: this.state.page,
|
|
|
|
|
per_page:10,
|
|
|
|
|
oj_status:oj_status,
|
|
|
|
@ -856,7 +883,8 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
let {
|
|
|
|
|
page, per_page, items_count, Headertop, visible, placement, modalsType, modalsTypes,basket_list,
|
|
|
|
|
completion_questions_count, judgement_questions_count, multiple_questions_count, practical_questions_count,
|
|
|
|
|
program_questions_count, single_questions_count, subjective_questions_count,selectionbools
|
|
|
|
|
program_questions_count, single_questions_count, subjective_questions_count,selectionbools,
|
|
|
|
|
modalsTypeInaudit
|
|
|
|
|
} = this.state;
|
|
|
|
|
|
|
|
|
|
const Datacount = completion_questions_count + judgement_questions_count
|
|
|
|
@ -914,7 +942,12 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
setDownload={() => this.setDownload()}></QuestionModal>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
modalsTypeInaudit===true?
|
|
|
|
|
<QuestionModalys {...this.props}{...this.state} modalsType={modalsTypeInaudit} modalCancel={() => this.modalsTypeInauditbool()}
|
|
|
|
|
setDownload={() => this.modalsTypeInauditbool()}></QuestionModalys>
|
|
|
|
|
:""
|
|
|
|
|
}
|
|
|
|
|
{/*顶部*/}
|
|
|
|
|
|
|
|
|
|
<Headplugselections
|
|
|
|
@ -931,6 +964,8 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
<Contentpart {...this.state} {...this.props}
|
|
|
|
|
exam_id={this.props.exam_id}
|
|
|
|
|
Isitapopup={"true"}
|
|
|
|
|
chakanjiexiboolindex={this.state.chakanjiexiboolindex}
|
|
|
|
|
chakanjiexibool={(e)=>this.chakanjiexibool(e)}
|
|
|
|
|
getitem_basketss={(id)=>this.getitem_basketss(id)}
|
|
|
|
|
selectallquestionsonthispage={()=>this.selectallquestionsonthispage()}
|
|
|
|
|
getitem_baskets={(e)=>this.getitem_baskets(e)}
|
|
|
|
@ -941,7 +976,10 @@ class NewMyShixunModel extends Component {
|
|
|
|
|
showmodels={(e) => this.showmodels(e)}
|
|
|
|
|
showmodelysl={(e) => this.showmodelysl(e)}
|
|
|
|
|
callback={(e) => this.callback(e)}
|
|
|
|
|
setoj_status={(e)=>this.setoj_status(e)}></Contentpart>
|
|
|
|
|
setoj_status={(e)=>this.setoj_status(e)}
|
|
|
|
|
showmodelsInaudit={(e)=>this.showmodelsInaudit(e)}
|
|
|
|
|
|
|
|
|
|
></Contentpart>
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
items_count&&items_count>10?
|
|
|
|
|