dev_hss
杨树明 5 years ago
parent cc874ca56b
commit d0d0cb066c

@ -76,7 +76,7 @@ class AppraiseModal extends Component{
<Modal
keyboard={false}
className={"HomeworkModal"}
title={"评阅"}
title={"编辑评阅"}
visible={this.props.visible}
closable={false}
footer={null}

@ -213,8 +213,8 @@ class ShixunWorkReport extends Component {
let homeworkid=this.props.match.params.homeworkid;
const antIcon = <Icon type="loading" style={{ fontSize: 24 }} spin />;
let showAppraiseModals=this.props&&this.props.isAdminOrTeacher()===true?work_comment_hidden===false?true:false:work_comment===null?false:true;
let showAppraiseModals=this.props&&this.props.isAdminOrTeacher()===true?work_comment===null||work_comment===undefined?false:true:work_comment===null||work_comment===undefined?false:true;
console.log(showAppraiseModals)
return (
data===undefined?"":<Spin indicator={antIcon} spinning={this.state.spinning}>
@ -259,10 +259,14 @@ class ShixunWorkReport extends Component {
className=" color-blue font-14 fr ml20 mt15"
onClick={()=>this.confirmysl(`/student_works/${homeworkid}/export_shixun_work_report.pdf`)}
> <Spin size="small" spinning={this.state.isspinning}>导出实训报告数据</Spin></a> : ""}
{this.props.isAdmin() ?work_comment_hidden===true? "":<a
{/*{this.props.isAdmin() ?work_comment_hidden===true? "":<a*/}
{/*className=" color-blue font-14 fr ml20 mt15"*/}
{/*onClick={()=>this.showAppraiseModal(1)}*/}
{/*>评阅</a> : ""}*/}
{this.props.isAdmin() ?<a
className=" color-blue font-14 fr ml20 mt15"
onClick={()=>this.showAppraiseModal(1)}
>评阅</a> : ""}
>评阅</a>:""}
</div>
<style>{
`

Loading…
Cancel
Save