diff --git a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js index 457e25114..53bbd5e18 100644 --- a/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js +++ b/public/react/src/modules/courses/busyWork/CommonWorkDetailIndex.js @@ -179,7 +179,7 @@ class CommonWorkDetailIndex extends Component { } let exportUrl = `/homework_commons/${workId}/works_list.zip?${queryString.stringify(params)}` let exportResultUrl = `/homework_commons/${workId}/works_list.xlsx?${queryString.stringify(params)}` - document.title=course_name === undefined ? "" : course_name; + document.title = course_name === undefined ? "" : course_name; console.log(category_id) return ( @@ -205,32 +205,32 @@ class CommonWorkDetailIndex extends Component { background: #fff; } `} - {current_user && } - -
- 36 ? homework_name : ''}`} - style={{height: 'auto'}} - > - {homework_name} - {/* {homework_name} */} - - - - - {category && 返回} - - {this.state.update_atta && + {current_user && } + +
+ 36 ? homework_name : ''}`} + style={{ height: 'auto' }} + > + {homework_name} + {/* {homework_name} */} + + + + + {category && 返回} + + {this.state.update_atta && {this.state.accessoryVisible === true ? - { noTab !== true &&
-
- this.setState({moduleName: '作品列表'})} - className={`${isListModule ? 'active' : '' } `} - to={`/classrooms/${courseId}/${moduleEngName}/${workId}/list`}>作品列表 - this.setState({moduleName: '作业描述'})} - className={`${childModuleName == '作业描述' ? 'active' : '' } `} - to={`/classrooms/${courseId}/${moduleEngName}/${workId}/question`}>作业描述 - {view_answer == true && this.setState({moduleName: '参考答案'})} - className={`${childModuleName == '参考答案' ? 'active' : '' } `} - to={`/classrooms/${courseId}/${moduleEngName}/${workId}/answer`}>参考答案} - this.setState({moduleName: '设置'})} - className={`${childModuleName == '设置' ? 'active' : '' } `} - style={{paddingLeft:this.props.isAdmin()?'38px':'20px'}} - to={`/classrooms/${courseId}/${moduleEngName}/${workId}/setting`}>{this.props.isAdmin()?"设置":"得分规则"} - - - {/* { this.props.tabRightComponents } */} - - - {/*

*/} - -
-

- {courseName} - > - {data && data.left_banner_name} - > - {data && data.left_banner_name}详情> - {exercise_answer_user&&exercise_answer_user.user_name}{data&&data.exercise.user_name} -

-

- {exercise && exercise.exercise_name} - - - - - { - (isAdmin || ( isStudent && exercise && user_exercise_status == 1)) ? - 返回 - : - time && time != 0 ? -

- -
- :"" - } - {/*
*/} - {/*
  • { hour >= 10 ? hour : '0'+hour}
  • */} - {/* :*/} - {/*
  • { minute >= 10 ? minute : '0'+minute}
  • */} - {/* :*/} - {/*
  • { second >= 10 ? second : '0'+second}
  • */} - {/*
    */} - { - isAdmin && 打回重做 - } -

    - { - exercise && exercise.exercise_description && -

    {exercise.exercise_description}

    - } -

    - { - exercise_types && exercise_types.q_singles > 0 && - 单选题 {exercise_types.q_singles} 题,共 {exercise_types && exercise_types.q_singles_scores} 分 - } - { - exercise_types && exercise_types.q_doubles > 0 && - 多选题 {exercise_types.q_doubles} 题,共 {exercise_types && exercise_types.q_doubles_scores} 分 - } - { - exercise_types && exercise_types.q_judges > 0 && - 判断题 {exercise_types.q_judges} 题,共 {exercise_types && exercise_types.q_judges_scores} 分 - } - { - exercise_types && exercise_types.q_nulls > 0 && - 填空题 {exercise_types.q_nulls} 题,共 {exercise_types && exercise_types.q_nulls_scores} 分 - } - { - exercise_types && exercise_types.q_mains > 0 && - 简答题 {exercise_types.q_mains} 题,共 {exercise_types && exercise_types.q_mains_scores} 分 - } - { - exercise && exercise.exercise_description && -

    {exercise.exercise_description}

    - } - {exercise_types &&exercise_types.q_scores} - 合计 {exercise_types &&exercise_types.q_counts} 题: -

    -
    - -
    - - { - exercise_start_at && 开始答题时间:{ exercise_start_at && moment(exercise_start_at).format(format) } - } - { - (isAdmin || (isStudent && exercise && exercise.exercise_status == 3)) && exerciseTotalScore && - 总分: { exerciseTotalScore } - } - - { - exercise_types && exercise_types.q_shixuns > 0 && - 实训题 {exercise_types.q_shixuns} 题,共 {exercise_types && exercise_types.q_shixuns_scores} 分 - } - {exercise_types && exercise_types.q_scores} - 合计 {exercise_types && exercise_types.q_counts} 题: -

    -
    - -
    - - { - exercise_start_at && 开始答题时间:{exercise_start_at && moment(exercise_start_at).format(format)} - } - { - exercise_scores && exercise_scores.subjective_scores.length > 0 && -
    -

    - 已答 - 未答 -

    - -
    - } -
    - } - - { - //学生身份 且试卷还未截止 - isStudent && exercise && exercise.exercise_status == 2 ? -
    -

    - 已答 - 未答 -

    - -
    :"" - } -
    - {/* 试卷题目 */} -
    - { - exercise_questions && exercise_questions.map((item,key)=>{ - let list = ajustSore && ajustSore.filter(obj => obj.id === item.question_id); - return( -
    -

    - {item.q_position}、{type[item.question_type]}({item.question_score}分) - - { - // 填空(一直都有调分),和简答题调分:老师身份 已经评分的才能出现调分按钮 - isAdmin && ((parseInt(item.answer_status) != 0 && item.question_type == 4) || item.question_type == 3 || item.question_type == 1) ? - this.showSetScore(key,item.setScore,item.q_position,item.question_type,item.question_id)}>调分:"" - } - { - // 简答题,未评分的显示未批 - isAdmin && parseInt(item.answer_status) == 0 && item.question_type == 4 ? - 未批:"" - } - { - // 客观题:老师||学生(试卷已截止且答案公开)显示正确答案 - item.question_type < 3 && item.standard_answer_show ? - - 正确答案:{ item.standard_answer_show } - :"" - } - { - //(老师身份且除实训题外) || (学生身份且试卷已经截止)就显示用户当前题目所得分数 - ( isAdmin || (isStudent && exercise.exercise_status == 3)) && item.question_type != 5 && item.user_score ? - - {item.user_score} - : "" - } - { - //实训题 ,答题 - item.question_type == 5 && - 实训详情 - } - -

    -
  • - {/*

    */} - -
  • - { - // 选择题和判断题共用 - (item.question_type == 0 || item.question_type == 2) && - this.changeOption(index,ids)} - changeQuestionStatus={(No,flag)=>this.changeQuestionStatus(No,flag)} - index={key} - > - } - { - // 多选题 - item.question_type == 1 && - this.changeOption(index,ids)} - changeQuestionStatus={(No,flag)=>this.changeQuestionStatus(No,flag)} - index={key} - - > - } - { - // 填空题 - item.question_type == 3 && - this.changeQuestionStatus(No,flag)} - index={key} - - > - } - { - // 简答题 - item.question_type == 4 && - this.changeQuestionStatus(No,flag)} - changeA_flag={(index,status)=>this.changeA_flag(index,status)} - index={key} - > - } - { - // 实训题 - item.question_type == 5 && - - } - - { - //调分理由部分 - item.question_comments && item.question_comments.comment && (item.question_type == 3 || item.question_type == 4 || item.question_type == 1) && -
    - -
    -
  • - {item.question_comments.user_name} - {moment(item.question_comments.updated_at).format(format)} -
  • -
  • {item.question_comments.comment}
  • -
    -
    - } - { - // 调分输入部分 - isAdmin && ((item.setScore && item.question_type == 3) || (item.setScore && item.question_type == 1) || ((item.setScore || parseInt(item.answer_status) == 0) && item.question_type == 4))? -
    -
    - *调分: -
  • -

    - 0 && list[0].inputSore} - step={0.1} - precision={1} - className={ list && list.length>0 && list[0].setTip !="" ? "edu-txt-center winput-115-40 fl mt3 noticeTip inputNumber30" : "edu-txt-center winput-115-40 fl mt3 inputNumber30"} - onChange={(value)=>this.inputScore(value,item.question_id)} - id={`${"input_"+item.q_position+"_"+item.question_type}`} - > - - { - parseInt(item.answer_status) == 0 && item.question_type == 4 ? 未评分 : '' - } - this.setAction(key,item.question_id,item.question_score,item.user_score)}>确认 -

    - { - list && list.length > 0 && list[0].setTip !="" ?

    { list[0].setTip }

    :"" - } -
  • -
    - } - { - // 调分输入部分 - isAdmin && ((item.setScore && item.question_type == 3) || (item.setScore && item.question_type == 1) || ((item.setScore || parseInt(item.answer_status) == 0) && item.question_type == 4)) ? -
    -
    - *调分: -
  • -

    - 0 && list[0].inputSore} - step={0.1} - precision={1} - className={list && list.length > 0 && list[0].setTip != "" ? "edu-txt-center winput-115-40 fl mt3 noticeTip inputNumber30" : "edu-txt-center winput-115-40 fl mt3 inputNumber30"} - onChange={(value) => this.inputScore(value, item.question_id)} - id={`${"input_" + item.q_position + "_" + item.question_type}`} - > - - { - parseInt(item.answer_status) == 0 && item.question_type == 4 ? 未评分 : '' - } - this.setAction(key, item.question_id, item.question_score, item.user_score)}>确认 -

    - { - list && list.length > 0 && list[0].setTip != "" ?

    {list[0].setTip}

    : "" - } -
  • -
    - -
    : "" - } -
    - ) - }) - } -
    -
    - { - isStudent && user_exercise_status == 0 ? -

    - 交卷 - 保存 - { - exercise && time != null ? - 保存或者离开页面后,系统将持续计时,到达时长系统将自动交卷 - : "" - } -

    : "" - } -
    - -
    ) } }