|
|
|
@ -2,6 +2,7 @@ import React,{ Component } from "react";
|
|
|
|
|
import { Modal,Checkbox,Upload,Button,Icon,message,Input,Radio} from "antd";
|
|
|
|
|
import { WordNumberTextarea,markdownToHTML } from 'educoder';
|
|
|
|
|
import axios from 'axios';
|
|
|
|
|
import './style.css';
|
|
|
|
|
|
|
|
|
|
class ShowAppraiseList extends Component{
|
|
|
|
|
constructor(props){
|
|
|
|
@ -34,14 +35,15 @@ class ShowAppraiseList extends Component{
|
|
|
|
|
text-align: center;
|
|
|
|
|
line-height: 22px;
|
|
|
|
|
}
|
|
|
|
|
.666w{
|
|
|
|
|
color: #666;
|
|
|
|
|
font-size:14px;
|
|
|
|
|
|
|
|
|
|
.markdown-body{
|
|
|
|
|
padding-bottom: 10px;
|
|
|
|
|
}
|
|
|
|
|
.000w{
|
|
|
|
|
color: #000;
|
|
|
|
|
font-size:15px;
|
|
|
|
|
.borderbom{
|
|
|
|
|
margin-bottom: 15px;
|
|
|
|
|
border-bottom: 2px solid #fafafa;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
`
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
@ -52,39 +54,41 @@ class ShowAppraiseList extends Component{
|
|
|
|
|
<div className="font-16 color-dark-21 shixunreporttitleboxtop pd20 color333">
|
|
|
|
|
<span className={"appraisebox"}>总体评阅</span>评阅内容
|
|
|
|
|
|
|
|
|
|
{this.props&&this.props.isAdminOrTeacher()===true?<a className="color-blue font-14 fr ml20"
|
|
|
|
|
{this.props&&this.props.isAdmin()===true?<a className="color-blue font-14 fr ml20"
|
|
|
|
|
onClick={()=>this.props.isdeleteModal(data.comment_id,true,"main")}
|
|
|
|
|
>删除</a>:""}
|
|
|
|
|
|
|
|
|
|
{this.props&&this.props.isAdminOrTeacher()===true?<a className="color-blue font-14 fr"
|
|
|
|
|
{this.props&&this.props.isAdmin()===true?<a className="color-blue font-14 fr"
|
|
|
|
|
onClick={()=>this.props.showAppraiseModal("main",undefined,work_comment,work_comment_hidden)}
|
|
|
|
|
>编辑</a>:""}
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{this.props&&this.props.isAdminOrTeacher()===true?
|
|
|
|
|
<div className="font-16 color-dark-21 shixunreporttitleboxbom pd30">
|
|
|
|
|
{this.props&&this.props.isAdmin()===true?
|
|
|
|
|
<div className="font-16 color-dark-21 shixunreporttitleboxbom pd30bt">
|
|
|
|
|
<div>
|
|
|
|
|
<span className={"z000"}>学生可见<span className={"z666"}>(学生可查看老师的评阅内容)</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div className={"borderbom"} style={{minHeight:'40px'}}>
|
|
|
|
|
{work_comment===true?"":<div className={"personalsummary"}>
|
|
|
|
|
<div className={"markdown-body"}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(work_comment).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
</div>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<span className={"000w"}>学生不可见<span className={"666w"}>(仅对课堂老师可见)</span></span>
|
|
|
|
|
<span className={"z000"}>学生不可见<span className={"z666"}>(仅对课堂老师可见)</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{minHeight:'50px'}}>
|
|
|
|
|
<div style={{minHeight:'40px'}}>
|
|
|
|
|
{work_comment_hidden===true?"":<div className={"personalsummary"}>
|
|
|
|
|
<div className={"markdown-body"}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(work_comment_hidden).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
</div>}
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<span className={"000w"}>学生可见<span className={"666w"}>(学生可查看老师的评阅内容)</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{minHeight:'50px'}}>
|
|
|
|
|
{work_comment===true?"":<div className={"personalsummary"}>
|
|
|
|
|
<div className={"markdown-body"}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(work_comment).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
</div>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>:<div className="font-16 color-dark-21 shixunreporttitleboxbom pd30">
|
|
|
|
|
<div style={{minHeight:'50px'}}>
|
|
|
|
|
<div style={{minHeight:'40px'}}>
|
|
|
|
|
<div className={"personalsummary"}>
|
|
|
|
|
<div className={"markdown-body"}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(work_comment).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
@ -110,38 +114,39 @@ class ShowAppraiseList extends Component{
|
|
|
|
|
|
|
|
|
|
<div className="font-16 color-dark-21 shixunreporttitleboxtop pd20 color333">
|
|
|
|
|
<span className={"appraisebox"}>第{key+1}关</span>{item.name}
|
|
|
|
|
{this.props&&this.props.isAdminOrTeacher()===true?<a className="color-blue font-14 fr ml20"
|
|
|
|
|
{this.props&&this.props.isAdmin()===true?<a className="color-blue font-14 fr ml20"
|
|
|
|
|
onClick={()=>this.props.isdeleteModal(item.comment_id,true,"child")}
|
|
|
|
|
>删除</a>:""}
|
|
|
|
|
|
|
|
|
|
{this.props&&this.props.isAdminOrTeacher()===true?<a className="color-blue font-14 fr"
|
|
|
|
|
{this.props&&this.props.isAdmin()===true?<a className="color-blue font-14 fr"
|
|
|
|
|
onClick={()=>this.props.showAppraiseModal("child",item.challenge_id,item.challenge_comment,item.challenge_comment_hidden)}
|
|
|
|
|
>编辑</a>:""}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
{this.props&&this.props.isAdminOrTeacher()===true?
|
|
|
|
|
<div className="font-16 color-dark-21 shixunreporttitleboxbom pd30">
|
|
|
|
|
{this.props&&this.props.isAdmin()===true?
|
|
|
|
|
<div className="font-16 color-dark-21 shixunreporttitleboxbom pd30bt">
|
|
|
|
|
<div>
|
|
|
|
|
<span className={"000w"}>学生不可见<span className={"666w"}>(仅对课堂老师可见)</span></span>
|
|
|
|
|
<span className={"z000"}>学生可见<span className={"z666"}>(学生可查看老师的评阅内容)</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{minHeight:'50px'}}>
|
|
|
|
|
{challenge_comment_hidden===true?"":<div className={"personalsummary"}>
|
|
|
|
|
<div className={"borderbom"} style={{minHeight:'40px'}}>
|
|
|
|
|
{challenge_comment===true?"":<div className={"personalsummary"}>
|
|
|
|
|
<div className={"markdown-body"}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.challenge_comment_hidden).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.challenge_comment).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
</div>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<span className={"000w"}>学生可见<span className={"666w"}>(学生可查看老师的评阅内容)</span></span>
|
|
|
|
|
<span className={"z000"}>学生不可见<span className={"z666"}>(仅对课堂老师可见)</span></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div style={{minHeight:'50px'}}>
|
|
|
|
|
{challenge_comment===true?"":<div className={"personalsummary"}>
|
|
|
|
|
<div style={{minHeight:'40px'}}>
|
|
|
|
|
{challenge_comment_hidden===true?"":<div className={"personalsummary"}>
|
|
|
|
|
<div className={"markdown-body"}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.challenge_comment).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.challenge_comment_hidden).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|
</div>}
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
</div>: <div className="font-16 color-dark-21 shixunreporttitleboxbom pd30">
|
|
|
|
|
<div style={{minHeight:'50px'}}>
|
|
|
|
|
<div style={{minHeight:'40px'}}>
|
|
|
|
|
<div className={"personalsummary"}>
|
|
|
|
|
<div className={"markdown-body"}
|
|
|
|
|
dangerouslySetInnerHTML={{__html: markdownToHTML(item.challenge_comment).replace(/▁/g, "▁▁▁")}}></div>
|
|
|
|
|