|
|
@ -15,7 +15,7 @@ import WorkDetailPageHeader from './common/WorkDetailPageHeader'
|
|
|
|
import CommonWorkAppraiseReply from './reply/CommonWorkAppraiseReply'
|
|
|
|
import CommonWorkAppraiseReply from './reply/CommonWorkAppraiseReply'
|
|
|
|
import Example from './TestHooks'
|
|
|
|
import Example from './TestHooks'
|
|
|
|
import CommonWorkAppraiseReviseAttachments from './CommonWorkAppraiseReviseAttachments'
|
|
|
|
import CommonWorkAppraiseReviseAttachments from './CommonWorkAppraiseReviseAttachments'
|
|
|
|
|
|
|
|
import LeaderIcon from './common/LeaderIcon'
|
|
|
|
const { Option} = Select;
|
|
|
|
const { Option} = Select;
|
|
|
|
const CheckboxGroup = Checkbox.Group;
|
|
|
|
const CheckboxGroup = Checkbox.Group;
|
|
|
|
const confirm = Modal.confirm;
|
|
|
|
const confirm = Modal.confirm;
|
|
|
@ -88,6 +88,14 @@ class CommonWorkAppraise extends Component{
|
|
|
|
console.log(error)
|
|
|
|
console.log(error)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
componentDidUpdate(prevProps, prevState) {
|
|
|
|
|
|
|
|
if (this.props.match.params.studentWorkId != prevProps.match.params.studentWorkId) {
|
|
|
|
|
|
|
|
this.getWork();
|
|
|
|
|
|
|
|
this.getReviseAttachments()
|
|
|
|
|
|
|
|
this.commonWorkAppraiseReply && this.commonWorkAppraiseReply.fetchAllComments()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
componentDidMount() {
|
|
|
|
componentDidMount() {
|
|
|
|
this.getWork();
|
|
|
|
this.getWork();
|
|
|
|
this.getReviseAttachments()
|
|
|
|
this.getReviseAttachments()
|
|
|
@ -156,12 +164,13 @@ class CommonWorkAppraise extends Component{
|
|
|
|
attachments, homework_id, project_info, work_members, is_evaluation,
|
|
|
|
attachments, homework_id, project_info, work_members, is_evaluation,
|
|
|
|
description, update_user_name, update_time, commit_time, author_name,
|
|
|
|
description, update_user_name, update_time, commit_time, author_name,
|
|
|
|
revise_attachments, revise_reason, atta_update_user, atta_update_time, atta_update_user_login,
|
|
|
|
revise_attachments, revise_reason, atta_update_user, atta_update_time, atta_update_user_login,
|
|
|
|
Modalstype,Modalstopval,ModalCancel,ModalSave,loadtype
|
|
|
|
Modalstype,Modalstopval,ModalCancel,ModalSave,loadtype, is_leader_work
|
|
|
|
} =this.state;
|
|
|
|
} =this.state;
|
|
|
|
|
|
|
|
|
|
|
|
let courseId=this.props.match.params.coursesId;
|
|
|
|
let courseId=this.props.match.params.coursesId;
|
|
|
|
let category_id=this.props.match.params.category_id;
|
|
|
|
let category_id=this.props.match.params.category_id;
|
|
|
|
let studentWorkId=this.props.match.params.studentWorkId;
|
|
|
|
let studentWorkId=this.props.match.params.studentWorkId;
|
|
|
|
|
|
|
|
const isAdmin = this.props.isAdmin()
|
|
|
|
return(
|
|
|
|
return(
|
|
|
|
<WorkDetailPageHeader
|
|
|
|
<WorkDetailPageHeader
|
|
|
|
{...this.props} {...this.state}
|
|
|
|
{...this.props} {...this.state}
|
|
|
@ -251,12 +260,27 @@ class CommonWorkAppraise extends Component{
|
|
|
|
|
|
|
|
|
|
|
|
{is_evaluation != true && work_members && !!work_members.length && <div className={"stud-class-set bor-top-greyE edu-back-white padding20-30"}>
|
|
|
|
{is_evaluation != true && work_members && !!work_members.length && <div className={"stud-class-set bor-top-greyE edu-back-white padding20-30"}>
|
|
|
|
<div className={"color-grey-6 mb10"}>
|
|
|
|
<div className={"color-grey-6 mb10"}>
|
|
|
|
其他组员
|
|
|
|
全部组员
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className={"ml20"}>
|
|
|
|
<div className={"ml20 color-grey-6"}>
|
|
|
|
{work_members.map((item, index) => {
|
|
|
|
<div className="">
|
|
|
|
return item.user_name + ' '
|
|
|
|
当前组员:{author_name} {is_leader_work && <LeaderIcon small={true} ></LeaderIcon>}
|
|
|
|
})}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
其他组员:
|
|
|
|
|
|
|
|
{work_members.map((item, index) => {
|
|
|
|
|
|
|
|
return <React.Fragment>
|
|
|
|
|
|
|
|
isAdmin ?
|
|
|
|
|
|
|
|
<a className={`color-blue ${index == 0 ? '' : 'ml10'}`} href="javascript:void(0)"
|
|
|
|
|
|
|
|
onClick={() => this.props.toWorkDetailPage(this.props.match.params, null, item.work_id)}
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{item.user_name}
|
|
|
|
|
|
|
|
</a> : <span className={`${index == 0 ? '' : 'ml10'}`} >{item.user_name}</span>
|
|
|
|
|
|
|
|
{item.is_leader && <LeaderIcon small={true} ></LeaderIcon>}
|
|
|
|
|
|
|
|
</React.Fragment>
|
|
|
|
|
|
|
|
})}
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -266,6 +290,7 @@ class CommonWorkAppraise extends Component{
|
|
|
|
{/* task_type={datalist&&datalist.task_type} */}
|
|
|
|
{/* task_type={datalist&&datalist.task_type} */}
|
|
|
|
<CommonWorkAppraiseReply {...this.props} task_id={studentWorkId}
|
|
|
|
<CommonWorkAppraiseReply {...this.props} task_id={studentWorkId}
|
|
|
|
onReplySuccess={this.onReplySuccess} {...this.state}
|
|
|
|
onReplySuccess={this.onReplySuccess} {...this.state}
|
|
|
|
|
|
|
|
wrappedComponentRef={(ref) => {this.commonWorkAppraiseReply = ref}}
|
|
|
|
></CommonWorkAppraiseReply>
|
|
|
|
></CommonWorkAppraiseReply>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|