|
|
|
@ -168,27 +168,29 @@ class ShixunWorkReport extends Component {
|
|
|
|
|
// })
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
let{work_comment,work_comment_hidden}=this.state;
|
|
|
|
|
this.setState({
|
|
|
|
|
showAppraiseModaltype:true,
|
|
|
|
|
work_comment_hidden:work_comment===null||work_comment===undefined?this.state.work_type?true:false:work_comment_hidden,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
hideAppraiseModal=()=>{
|
|
|
|
|
let{data,work_comment}=this.state;
|
|
|
|
|
let{work_comment,work_comment_hidden}=this.state;
|
|
|
|
|
this.setState({
|
|
|
|
|
showAppraiseModaltype:false,
|
|
|
|
|
work_comment_hidden:data&&data.work_comment_hidden===true?true:work_comment!=null?true:false,
|
|
|
|
|
work_comment_hidden:work_comment===null||work_comment===undefined?this.state.work_type===1?true:false:work_comment_hidden,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
showAppraiseModals=(list,type)=>{
|
|
|
|
|
let{data,work_comment}=this.state;
|
|
|
|
|
|
|
|
|
|
this.setState({
|
|
|
|
|
showAppraiseModaltype:false,
|
|
|
|
|
work_comment_hidden:data&&data.work_comment_hidden===true?true:work_comment!=null?true:false,
|
|
|
|
|
work_comment_hidden:type===0?false:true,
|
|
|
|
|
work_comment:list,
|
|
|
|
|
work_type:type,
|
|
|
|
|
showAppraiseModals:true,
|
|
|
|
|
showAppraiseModalsshow:true
|
|
|
|
|
showAppraiseModalsshow:true,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
isdeleteModal=()=>{
|
|
|
|
@ -258,7 +260,7 @@ class ShixunWorkReport extends Component {
|
|
|
|
|
Cancel={()=>this.hideAppraiseModal()}
|
|
|
|
|
showCancel={(list,type)=>this.showAppraiseModals(list,type)}
|
|
|
|
|
work_comment={this.state.work_comment}
|
|
|
|
|
work_type={this.state.work_type}
|
|
|
|
|
work_type={work_comment===null||work_comment===undefined?this.state.work_type:work_comment_hidden===true?1:0}
|
|
|
|
|
/>:""}
|
|
|
|
|
<div className="newMain clearfix ">
|
|
|
|
|
<div className={"educontent mb20" }>
|
|
|
|
|