|
|
|
@ -2,7 +2,7 @@ import React, {Component} from 'react';
|
|
|
|
|
|
|
|
|
|
import {TPMIndexHOC} from '../TPMIndexHOC';
|
|
|
|
|
|
|
|
|
|
import {SnackbarHOC} from 'educoder';
|
|
|
|
|
import {SnackbarHOC,handleDateString} from 'educoder';
|
|
|
|
|
|
|
|
|
|
import {Input, Select, Radio, Checkbox, Modal, Icon, DatePicker,Upload,Button,message,Form,notification} from 'antd';
|
|
|
|
|
|
|
|
|
@ -146,7 +146,20 @@ function create_editorMD(id, width, high, placeholder, imageUrl, callback) {
|
|
|
|
|
return editorName;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function range(start, end) {
|
|
|
|
|
const result = [];
|
|
|
|
|
for (let i = start; i < end; i++) {
|
|
|
|
|
result.push(i);
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
function disabledDateTime() {
|
|
|
|
|
return {
|
|
|
|
|
// disabledHours: () => range(0, 24).splice(4, 20),
|
|
|
|
|
disabledMinutes: () => range(1, 30).concat(range(31, 60)),
|
|
|
|
|
// disabledSeconds: () => [0, 60],
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
class Newshixuns extends Component {
|
|
|
|
|
constructor(props) {
|
|
|
|
|
super(props)
|
|
|
|
@ -669,7 +682,7 @@ class Newshixuns extends Component {
|
|
|
|
|
|
|
|
|
|
onChangeTimePicker = (value, dateString) => {
|
|
|
|
|
this.setState({
|
|
|
|
|
TimePickervalue: dateString
|
|
|
|
|
TimePickervalue: handleDateString(dateString)
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
// 附件相关 START
|
|
|
|
@ -892,7 +905,7 @@ class Newshixuns extends Component {
|
|
|
|
|
<div className="width15 fl mr20"
|
|
|
|
|
// onMouseLeave={this.bigopens}
|
|
|
|
|
>
|
|
|
|
|
<Select placeholder="请更新主类别"
|
|
|
|
|
<Select placeholder="请选择主类别"
|
|
|
|
|
style={{width: 180}}
|
|
|
|
|
onChange={this.bigClass}
|
|
|
|
|
// onMouseEnter={this.bigopen}
|
|
|
|
@ -930,7 +943,7 @@ class Newshixuns extends Component {
|
|
|
|
|
<label className="fl mt10 "><span
|
|
|
|
|
className="color-red fl mt3">*</span>语言: </label>
|
|
|
|
|
<textarea className="fl task-form-80 task-height-150"
|
|
|
|
|
style={{width:'89%'}}
|
|
|
|
|
style={{width:'89%',height:'100px'}}
|
|
|
|
|
onInput={this.setlanguagewrite}
|
|
|
|
|
value={languagewrite}
|
|
|
|
|
placeholder="请填写该镜像是基于什么语言:示例:Python"
|
|
|
|
@ -941,6 +954,7 @@ class Newshixuns extends Component {
|
|
|
|
|
className="color-red fl mt3">*</span>系统环境: </label>
|
|
|
|
|
<textarea className="fl task-form-80 task-height-150 "
|
|
|
|
|
onInput={this.setsystemenvironment}
|
|
|
|
|
style={{height:'100px'}}
|
|
|
|
|
value={systemenvironment}
|
|
|
|
|
placeholder="请填写该镜像是基于什么linux系统环境,代码运行环境"
|
|
|
|
|
id="demand_info"></textarea>
|
|
|
|
@ -953,6 +967,7 @@ class Newshixuns extends Component {
|
|
|
|
|
<textarea className="fl task-form-80 task-height-150 "
|
|
|
|
|
onInput={this.settestcoderunmode}
|
|
|
|
|
value={testcoderunmode}
|
|
|
|
|
style={{height:'100px'}}
|
|
|
|
|
placeholder="请填写该镜像中测试代码运行方式"
|
|
|
|
|
id="demand_info"></textarea>
|
|
|
|
|
</li>
|
|
|
|
@ -993,14 +1008,11 @@ class Newshixuns extends Component {
|
|
|
|
|
|
|
|
|
|
</li>
|
|
|
|
|
<li className="edu-txt-center clearfix ">
|
|
|
|
|
|
|
|
|
|
<Form.Item>
|
|
|
|
|
<a className="pop_close task-btn mr30 mb30 mt35"
|
|
|
|
|
<a className="pop_close task-btn mr30"
|
|
|
|
|
onClick={() => this.sendhideModaly()}
|
|
|
|
|
>取消</a>
|
|
|
|
|
<Button type="primary" onClick={()=>this.sendsure_apply()}
|
|
|
|
|
className="task-btn task-btn-orange mb30 mt35">确定</Button>
|
|
|
|
|
</Form.Item>
|
|
|
|
|
className="task-btn task-btn-orange">确定</Button>
|
|
|
|
|
</li>
|
|
|
|
|
<div className="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
@ -1203,10 +1215,12 @@ class Newshixuns extends Component {
|
|
|
|
|
showToday={false}
|
|
|
|
|
showTime
|
|
|
|
|
locale={locale}
|
|
|
|
|
showTime={{ format: 'HH:mm' }}
|
|
|
|
|
style={{"width": "184px"}}
|
|
|
|
|
format="YYYY-MM-DD HH:mm:ss"
|
|
|
|
|
format="YYYY-MM-DD HH:mm"
|
|
|
|
|
placeholder="请选择开启时间"
|
|
|
|
|
onChange={this.onChangeTimePicker}
|
|
|
|
|
disabledTime={disabledDateTime}
|
|
|
|
|
/>
|
|
|
|
|
<label style={{top: '6px'}} className="color-grey-6 ml10">
|
|
|
|
|
(为空,则学员在实训发布后,能随时开启实训挑战;否则,学员在开启时间后,才能开启实训挑战)
|
|
|
|
|