|
|
@ -26,7 +26,7 @@ class GraduationTasksappraiseMainEditor extends Component{
|
|
|
|
onSubmit = () => {
|
|
|
|
onSubmit = () => {
|
|
|
|
const { score, same_score } = this.state
|
|
|
|
const { score, same_score } = this.state
|
|
|
|
let category_id= this.props.match.params.category_id;
|
|
|
|
let category_id= this.props.match.params.category_id;
|
|
|
|
const url = this.props.replyUrl || `/graduation_works/${category_id}/add_score.json`
|
|
|
|
const url = `/graduation_works/${category_id}/add_score.json`
|
|
|
|
const attachment_ids = this.state.fileList.map(item => {
|
|
|
|
const attachment_ids = this.state.fileList.map(item => {
|
|
|
|
return item.response ? item.response.id : item.id
|
|
|
|
return item.response ? item.response.id : item.id
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -153,7 +153,7 @@ class GraduationTasksappraiseMainEditor extends Component{
|
|
|
|
}
|
|
|
|
}
|
|
|
|
render(){
|
|
|
|
render(){
|
|
|
|
let { total_count, comments, pageCount, fileList, score, same_score, errorMessage, numberErrorMessage } = this.state
|
|
|
|
let { total_count, comments, pageCount, fileList, score, same_score, errorMessage, numberErrorMessage } = this.state
|
|
|
|
const { current_user, memo, task_type, placeholder } = this.props
|
|
|
|
const { current_user, memo, showSameScore, placeholder } = this.props
|
|
|
|
const isAdmin = this.props.isAdmin()
|
|
|
|
const isAdmin = this.props.isAdmin()
|
|
|
|
const commentUploadProp = {
|
|
|
|
const commentUploadProp = {
|
|
|
|
width: 600,
|
|
|
|
width: 600,
|
|
|
@ -205,7 +205,7 @@ class GraduationTasksappraiseMainEditor extends Component{
|
|
|
|
{this.props.title && <span className="mainEditorTitle color-grey-6">{this.props.title}</span>}
|
|
|
|
{this.props.title && <span className="mainEditorTitle color-grey-6">{this.props.title}</span>}
|
|
|
|
<TPMMDEditor ref={this.mdRef} mdID={'appraiseEditor'} placeholder={placeholder || "请在此输入对本作品的评语,最大限制2000个字符"}
|
|
|
|
<TPMMDEditor ref={this.mdRef} mdID={'appraiseEditor'} placeholder={placeholder || "请在此输入对本作品的评语,最大限制2000个字符"}
|
|
|
|
watch={false} height={160} className={errorMessage ? 'editorInputError' : ''}></TPMMDEditor>
|
|
|
|
watch={false} height={160} className={errorMessage ? 'editorInputError' : ''}></TPMMDEditor>
|
|
|
|
{ task_type == 2 && <div>
|
|
|
|
{ showSameScore == true && <div>
|
|
|
|
<Checkbox value={same_score} onChange={this.same_score_change}>整组同评</Checkbox>
|
|
|
|
<Checkbox value={same_score} onChange={this.same_score_change}>整组同评</Checkbox>
|
|
|
|
<span className={"font-14 color-grey-9"}>(选中,则本次评阅对象指小组全部成员,否则仅评阅此成员1人 )</span>
|
|
|
|
<span className={"font-14 color-grey-9"}>(选中,则本次评阅对象指小组全部成员,否则仅评阅此成员1人 )</span>
|
|
|
|
</div> }
|
|
|
|
</div> }
|
|
|
|