import React,{ Component } from "react"; import { Modal,Checkbox,Upload,Button,Icon,message,Input,Radio} from "antd"; import { WordNumberTextarea } from 'educoder'; class ApprausePublic extends Component{ constructor(props){ super(props); this.state={ group_ids:[], fileList:[], Inputsval:undefined, textareavaltype:false, comment:undefined, hidden_comment:undefined } } componentDidMount() { } comment=(e)=>{ this.setState({ comment:e.target.value }) this.hideentyps(e.target.value) } hideentyps=(value)=>{ if(value===undefined||value===null||value===""){ }else{ this.setState({ textareavaltype:false }) } } hidden_comment=(e)=>{ this.setState({ hidden_comment:e.target.value }) this.hideentyps(e.target.value) } Saves=()=>{ let{comment,hidden_comment}=this.state; let commenttype=comment===undefined||comment===null||comment===""; let hidden_commenttype=hidden_comment===undefined||hidden_comment===null||hidden_comment===""; if(commenttype===true&&hidden_commenttype===true){ this.setState({ textareavaltype:true }) return } this.props.SaveAppraiseModal(this.state.comment,this.state.hidden_comment); } render(){ let {textareavaltype,comment,hidden_comment}=this.state; return(
可见(学生可查看老师的评阅内容)
{/*不可见(仅对课堂老师可见)