import React, {Component} from 'react'; import MonacoEditor from 'react-monaco-editor'; import { Input, Select, Radio, Checkbox, Popconfirm, message, Modal, Icon, DatePicker, Breadcrumb, Upload, Button, notification, Tooltip, Tabs, Form } from 'antd'; import axios from 'axios'; import TPMMDEditor from "../challengesnew/TPMMDEditor"; import {getImageUrl, toPath, getUrl, appendFileSizeToUploadFileAll, getUploadActionUrl} from 'educoder'; import {TPMIndexHOC} from "../TPMIndexHOC"; import './css/TPMsettings.css'; import '../newshixuns/css/Newshixuns.css'; class Shixuninformation extends Component { constructor(props) { super(props) this.contentMdRef = React.createRef(); this.state = { NAME_COUNT: 60, shixunmemoMDvalue: "", language: "java", } } getshixunmemoMDvalue = (value, e) => { this.setState({ shixunmemoMDvalue: value }) } render() { console.log(this.props.data) const {getFieldDecorator} = this.props.form; const {newshixunlist, languagewrite, systemenvironment, testcoderunmode, fileList, postapplytitle, postapplyvisible, shixunmemoMDvalue} = this.state; const {shixun_service_configs}=this.props; let operateauthority = this.props.identity === 1 ? true : this.props.identity < 5 && this.state.status == 0 ? true : false; const uploadProps = { width: 600, fileList, multiple: true, // https://github.com/ant-design/ant-design/issues/15505 // showUploadList={false},然后外部拿到 fileList 数组自行渲染列表。 // showUploadList: false, action: `${getUploadActionUrl()}`, onChange: this.handleChange, onRemove: this.onAttachmentRemove, beforeUpload: (file, fileList) => { if (this.state.fileList.length >= 1) { return false } // console.log('beforeUpload', file.name); const isLt150M = file.size / 1024 / 1024 < 50; if (!isLt150M) { // this.props.showNotification(`文件大小必须小于50MB`); notification.open( { message: '提示', description: '文件大小必须小于50MB', } ) } if (this.state.file !== undefined) { console.log("763") this.setState({ file: file }) } else { this.setState({ file: file }) } console.log("handleChange2"); return isLt150M; }, } return (
{getFieldDecorator('name', { rules: [{ required: true, message: '请输入选题名称', }, { max: 60, message: '请输入名称,最大限制60个字符', }, { whitespace: true, message: '请勿输入空格' }], })( )} {getFieldDecorator('select', { rules: [{required: true, message: '请选择难易度'}], })(
)} (实训的难易程度)
{getFieldDecorator('selectleft', { rules: [{required: true, message: '请选择主类别'}], })(
)}
{getFieldDecorator('selectright', { rules: [{required: true, message: '请选择小类别'}], })(
)}
已安装软件:hadoop3.1.0、jdk1.8;
说明:添加了hadoop3.1.0、jdk1.8的源码包,添加了hadoop3.1.0、jdk1.8的源码包
没有实验环境? 申请新建
{getFieldDecorator('select', { rules: [{required: true, message: '请选择评测脚本'}], })(
)} 使用自定义脚本
(若需要对学员隐藏部分版本库内容时,请选中;选中即启用私密版本库,请将需要对学员隐藏的文件存储在私密版本库)
{this.props.identity<3?

服务配置

{ shixun_service_configs&&shixun_service_configs.map((item,key)=>{ return(
{item.name} {/*this.Deselectlittle(item.mirror_repository_id)}>*/}
this.setConfigsInputs(e,key,1)} className="panel-box-sizing task-form-100 task-height-40" placeholder="请输入类别名称" />
this.setConfigsInputs(e,key,2)} className="panel-box-sizing task-form-100 task-height-40" placeholder="请输入类别名称" />
this.setConfigsInputs(e,key,3)} className="panel-box-sizing task-form-100 task-height-40" placeholder="请输入类别名称" />
this.setConfigsInputs(e,key,4)} className="panel-box-sizing task-form-100 task-height-40" placeholder="请输入类别名称" />
) })}
:""} {postapplyvisible === true ? : ""}
  • {this.state.languagewritetype === true ? "请填写该镜像语言" : ""}
  • {this.state.systemenvironmenttype === true ? "请填写该镜像语言系统环境" : ""}
  • {this.state.testcoderunmodetype === true ? "请填写该镜像测试代码运行方式" : ""}
  • 上传附件 (单个文件50M以内)
  • {this.state.attachmentidstype === true ? "请上传附件" : ""}
  • this.sendhideModaly()} >取消
  • {/**/}

    新建申请已提交,请等待管理员的审核

  • 我们将在1-2个工作日内与您联系
  • 知道啦
    ); } } const TopShixuninformation = Form.create({name: 'newshixun'})(Shixuninformation); export default TopShixuninformation;