courseware
杨树明 5 years ago
parent 9addf02df2
commit 462bd093ee

@ -38,7 +38,8 @@ class ShixunWorkReport extends Component {
work_comment_hidden:undefined, work_comment_hidden:undefined,
work_comment:undefined, work_comment:undefined,
has_commit: false, has_commit: false,
shixun_detail:[] shixun_detail:[],
view_tpi:false
} }
} }
@ -115,7 +116,8 @@ class ShixunWorkReport extends Component {
work_comment:result.data.work_comment, work_comment:result.data.work_comment,
spinning: false, spinning: false,
has_commit: result.data.has_commit, has_commit: result.data.has_commit,
shixun_detail:result.data.shixun_detail shixun_detail:result.data.shixun_detail,
view_tpi:result.data.view_tpi
}) })
} }
@ -307,7 +309,7 @@ class ShixunWorkReport extends Component {
} }
render() { render() {
let {data, showAppraiseModaltype, work_comment_hidden, work_comment, has_commit,shixun_detail} = this.state; let {data, showAppraiseModaltype, work_comment_hidden, work_comment, has_commit,shixun_detail,view_tpi} = this.state;
let category_id=data===undefined?"":data.category===null?"":data.category.category_id; let category_id=data===undefined?"":data.category===null?"":data.category.category_id;
let homework_common_id=data===undefined?"":data.homework_common_id; let homework_common_id=data===undefined?"":data.homework_common_id;
@ -461,7 +463,7 @@ class ShixunWorkReport extends Component {
<div className={"fl"}>总体评价</div> <div className={"fl"}>总体评价</div>
<div className={"fr"}> <div className={"fr"}>
{ {
this.props&&this.props.isAdmin()===true?shixun_detail&&shixun_detail.map((item,key)=>{ view_tpi&&view_tpi===true?shixun_detail&&shixun_detail.map((item,key)=>{
if(key===0){ if(key===0){
return( return(
<a className={"color-blue font-16"} href={/tasks/+item.game_identifier} target="_blank" >查看学员实训</a> <a className={"color-blue font-16"} href={/tasks/+item.game_identifier} target="_blank" >查看学员实训</a>

@ -139,8 +139,8 @@ class Teacherentry extends Component {
//是否有编辑权限 //是否有编辑权限
item.edit_auth === true ? item.edit_auth === true ?
<div className="ws100s xaxisreverseorder"> <div className="ws100s xaxisreverseorder">
<div className="jiezhis h40s xiaoshou" onClick={(e)=>{e.stopPropagation();this.getdatalist(item.id,true,item.name)}}>编辑</div>
<div className="shanchu h40s xiaoshou" onClick={(e)=>{e.stopPropagation();this.props.thisdelete(item.id)}}>删除</div> <div className="shanchu h40s xiaoshou" onClick={(e)=>{e.stopPropagation();this.props.thisdelete(item.id)}}>删除</div>
<div className="shanchu h40s color-blue" onClick={(e)=>{e.stopPropagation();this.getdatalist(item.id,true,item.name)}}>编辑</div>
</div> </div>
: :
<div className="ws100s xaxisreverseorder"> <div className="ws100s xaxisreverseorder">

Loading…
Cancel
Save