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 (
服务配置
{ shixun_service_configs&&shixun_service_configs.map((item,key)=>{ return(新建申请已提交,请等待管理员的审核