|
|
@ -62,7 +62,8 @@ class Shixuninformation extends Component {
|
|
|
|
shixunName:this.props.data.shixun.name,
|
|
|
|
shixunName:this.props.data.shixun.name,
|
|
|
|
trainee:this.props.data.shixun.trainee,
|
|
|
|
trainee:this.props.data.shixun.trainee,
|
|
|
|
choice_main_type:this.props.data.shixun.choice_main_type,
|
|
|
|
choice_main_type:this.props.data.shixun.choice_main_type,
|
|
|
|
choice_small_type:this.props.data.shixun.choice_small_type
|
|
|
|
choice_small_type:this.props.data.shixun.choice_small_type,
|
|
|
|
|
|
|
|
choice_standard_scripts:this.props.data.shixun.choice_standard_scripts,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
this.props.form.setFieldsValue({
|
|
|
|
this.props.form.setFieldsValue({
|
|
|
@ -315,7 +316,7 @@ class Shixuninformation extends Component {
|
|
|
|
let operateauthority=this.props.identity===1?true:this.props.identity<5&&this.props.data.shixun.status==0?true:false;
|
|
|
|
let operateauthority=this.props.identity===1?true:this.props.identity<5&&this.props.data.shixun.status==0?true:false;
|
|
|
|
console.log(operateauthority)
|
|
|
|
console.log(operateauthority)
|
|
|
|
const {getFieldDecorator} = this.props.form;
|
|
|
|
const {getFieldDecorator} = this.props.form;
|
|
|
|
const {newshixunlist, languagewrite, systemenvironment, testcoderunmode, fileList, postapplytitle, postapplyvisible, shixunmemoMDvalue} = this.state;
|
|
|
|
const {newshixunlist, languagewrite, systemenvironment, testcoderunmode, fileList, choice_standard_scripts, postapplyvisible, shixunmemoMDvalue} = this.state;
|
|
|
|
const {shixun_service_configs}=this.props;
|
|
|
|
const {shixun_service_configs}=this.props;
|
|
|
|
const uploadProps = {
|
|
|
|
const uploadProps = {
|
|
|
|
width: 600,
|
|
|
|
width: 600,
|
|
|
@ -366,6 +367,7 @@ class Shixuninformation extends Component {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<div className="educontent mb50 edu-back-white padding10-20">
|
|
|
|
<Form>
|
|
|
|
<Form>
|
|
|
|
<Form.Item
|
|
|
|
<Form.Item
|
|
|
|
label="名称"
|
|
|
|
label="名称"
|
|
|
@ -527,16 +529,21 @@ class Shixuninformation extends Component {
|
|
|
|
rules: [{required: true, message: '请选择评测脚本'}],
|
|
|
|
rules: [{required: true, message: '请选择评测脚本'}],
|
|
|
|
})(
|
|
|
|
})(
|
|
|
|
<div className="with15 fl pr">
|
|
|
|
<div className="with15 fl pr">
|
|
|
|
<Select placeholder="请选择评测脚本"
|
|
|
|
<Select placeholder="请选择选择脚本"
|
|
|
|
style={{width: 180}}
|
|
|
|
style={{width: 180}}
|
|
|
|
onChange={this.Selectthestudent}
|
|
|
|
className="fl"
|
|
|
|
>
|
|
|
|
disabled={operateauthority?false:true}
|
|
|
|
<Option value={1}>初级</Option>
|
|
|
|
value={choice_standard_scripts === undefined||choice_standard_scripts === null ? undefined :choice_standard_scripts.id===undefined?choice_standard_scripts:choice_standard_scripts.id}
|
|
|
|
<Option value={2}>中级</Option>
|
|
|
|
onChange={operateauthority?this.SelectScput:""}>
|
|
|
|
<Option value={3}>中高级</Option>
|
|
|
|
{
|
|
|
|
<Option value={4}>高级</Option>
|
|
|
|
this.props.data === undefined ? "" : this.props.data.shixun.standard_scripts.map((item, key) => {
|
|
|
|
</Select>
|
|
|
|
return (
|
|
|
|
|
|
|
|
<Option value={parseInt(item.id)} name={item.scptname} key={key}>{item.scptname}</Option>
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</Select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
)}
|
|
|
|
)}
|
|
|
|
<span className="fl ml20 color-blue">
|
|
|
|
<span className="fl ml20 color-blue">
|
|
|
@ -752,30 +759,10 @@ class Shixuninformation extends Component {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{/*</Form>*/}
|
|
|
|
{/*</Form>*/}
|
|
|
|
</Modal>
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
|
|
|
|
<Bottomsubmit url={`/shixuns/${this.props.match.params.shixunId}/challenges`} onSubmits={ this.sendsure_apply}/>
|
|
|
|
|
|
|
|
<Modal
|
|
|
|
|
|
|
|
keyboard={false}
|
|
|
|
|
|
|
|
title="提示"
|
|
|
|
|
|
|
|
visible={postapplytitle}
|
|
|
|
|
|
|
|
closable={false}
|
|
|
|
|
|
|
|
footer={null}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
<div className="task-popup-content"><p
|
|
|
|
|
|
|
|
className="task-popup-text-center font-16"><span
|
|
|
|
|
|
|
|
className="font-17 mt10">新建申请已提交,请等待管理员的审核</span></p>
|
|
|
|
|
|
|
|
<li className="font-14 mt15 color-grey-6 edu-txt-center">我们将在1-2个工作日内与您联系
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="task-popup-OK clearfix">
|
|
|
|
|
|
|
|
<a className="task-btn task-btn-orange"
|
|
|
|
|
|
|
|
onClick={this.yeshidemodel}>知道啦</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<Bottomsubmit url={`/shixuns/${this.props.match.params.shixunId}/challenges`} onSubmits={ this.sendsure_apply}/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</Modal>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|