diff --git a/public/react/src/modules/courses/coursesPublic/ModulationModal.js b/public/react/src/modules/courses/coursesPublic/ModulationModal.js index 1c9a9a84d..46dc3becf 100644 --- a/public/react/src/modules/courses/coursesPublic/ModulationModal.js +++ b/public/react/src/modules/courses/coursesPublic/ModulationModal.js @@ -1,108 +1,108 @@ -import React,{ Component } from "react"; -import { Modal,Checkbox,Upload,Button,Icon,message,Input} from "antd"; - - -class ModulationModal extends Component{ - constructor(props){ - super(props); - this.state={ - group_ids:[], - fileList:[], - textareaval:undefined, - Inputsval:undefined - } - } - - - Saves=()=>{ - let {textareaval,Inputsval}=this.state; - if(textareaval===""||textareaval===undefined){ - this.setState({ - textareavaltype:true - }) - return - } - this.setState({ - textareavaltype: false - }) - - if(Inputsval===undefined||Inputsval===""){ - this.setState({ - Inputsvaltype:true - }) - return - } - this.props.Saves(textareaval,Inputsval) - - } - - settextarea=(e)=>{ - this.setState({ - textareaval:e.target.value - }) - } - - setInputs=(e)=>{ - var value=parseInt(e.target.value) - - if(isNaN(value)){ - value=0 - }else{ - if(value<0||value>100){ - value=0 - } - } - this.setState({ - Inputsval:value - }) - } - render(){ - let {textareaval,Inputsval,textareavaltype,Inputsvaltype}=this.state; - return( -
- -
-

- - 该学生的最终成绩将不会按照评分规则进行计算 - -

- - -
- -
  • 原因不能为空
  • -
    -
  • - -
  • -
  • 分数不能为空
  • -
    - {this.props.Cancelname || '取消'} - {this.props.Savesname || '保存'} -
    -
    -
    -
    - ) - } -} +import React,{ Component } from "react"; +import { Modal,Checkbox,Upload,Button,Icon,message,Input} from "antd"; + + +class ModulationModal extends Component{ + constructor(props){ + super(props); + this.state={ + group_ids:[], + fileList:[], + textareaval:undefined, + Inputsval:undefined + } + } + + + Saves=()=>{ + let {textareaval,Inputsval}=this.state; + if(textareaval===""||textareaval===undefined){ + this.setState({ + textareavaltype:true + }) + return + } + this.setState({ + textareavaltype: false + }) + + if(Inputsval===undefined||Inputsval===""){ + this.setState({ + Inputsvaltype:true + }) + return + } + this.props.Saves(textareaval,Inputsval) + + } + + settextarea=(e)=>{ + this.setState({ + textareaval:e.target.value + }) + } + + setInputs=(e)=>{ + var value=parseInt(e.target.value) + + if(isNaN(value)){ + value=0 + }else{ + if(value<0||value>100){ + value=0 + } + } + this.setState({ + Inputsval:value + }) + } + render(){ + let {textareaval,Inputsval,textareavaltype,Inputsvaltype}=this.state; + return( +
    + +
    +

    + + 该学生的最终成绩将不会按照评分规则进行计算 + +

    + + +
    + +
  • 原因不能为空
  • +
    +
  • + +
  • +
  • 分数不能为空
  • +
    + {this.props.Cancelname || '取消'} + {this.props.Savesname || '保存'} +
    +
    +
    +
    + ) + } +} export default ModulationModal; \ No newline at end of file diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js index c96a6c60f..559144ecf 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksedit.js @@ -2,7 +2,7 @@ import React,{Component} from "React"; import { Form, Select, Input, Button,Checkbox,Upload,Icon,message,Modal} from "antd"; import {Link} from 'react-router-dom'; import TPMMDEditor from '../../../tpm/challengesnew/TPMMDEditor'; -import { WordsBtn,getUrl ,bytesToSize,appendFileSizeToUploadFileAll} from 'educoder'; +import { WordsBtn,getUrl ,bytesToSize,appendFileSizeToUploadFileAll,AttachmentList} from 'educoder'; import axios from 'axios'; import Modals from '../../../modals/Modals'; import '../../css/Courses.css'; @@ -419,35 +419,35 @@ class GraduationTasksedit extends Component{ )} + + {/*{attachments&&attachments.map((item,key)=>{*/} - {attachments&&attachments.map((item,key)=>{ - - return( -
    - - - - - {item.title} - - - - {item.filesize} - - - {item.delete===true? - this.onAttachmentRemove(item.id)} - aria-hidden="true"> - :""} -
    - ) - })} + {/*return(*/} + {/*
    */} + {/**/} + {/**/} + {/**/} + {/**/} + {/*{item.title}*/} + + {/**/} + {/**/} + {/*{item.filesize}*/} + + {/**/} + {/*{item.delete===true?*/} + {/*this.onAttachmentRemove(item.id)}*/} + {/*aria-hidden="true">*/} + {/*:""}*/} + {/*
    */} + {/*)*/} + {/*})}*/}