diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js index d1ffa48b6..9610a9a10 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js @@ -332,9 +332,9 @@ class ShixunWorkReport extends Component { render() { let {data, showAppraiseModaltype, work_comment_hidden, work_comment, has_commit,shixun_detail,view_tpi,myshixun_id,myshixun_identifier,homework_end} = this.state; - let category_id = data === undefined ? "" : data.category === null ? "" : data.category.category_id; - let homework_common_id = data === undefined ? "" : data.homework_common_id; - let homeworkid = this.props.match.params.homeworkid; + let category_id=data===undefined?"":data.category===null?"":data.category.category_id; + let homework_common_id=data===undefined?"":data.homework_common_id; + let homeworkid=this.props.match.params.homeworkid; const antIcon = ; // let showAppraiseModals=this.props&&this.props.isAdminOrTeacher()===true?work_comment===null||work_comment===undefined?false:true:work_comment===null||work_comment===undefined?false:true; @@ -362,15 +362,15 @@ class ShixunWorkReport extends Component { - {showAppraiseModaltype === true ? this.hideAppraiseModal()} - showCancel={(show, hidden, id, comment_id) => this.showAppraiseModals(show, hidden, id, comment_id)} + Cancel={()=>this.hideAppraiseModal()} + showCancel={(show,hidden,id,comment_id)=>this.showAppraiseModals(show,hidden,id,comment_id)} work_comment={this.state.work_comment} - work_type={work_comment === null || work_comment === undefined ? this.state.work_type : work_comment_hidden === true ? 1 : 0} - /> : ""} + work_type={work_comment===null||work_comment===undefined?this.state.work_type:work_comment_hidden===true?1:0} + />:""}
@@ -406,14 +406,10 @@ class ShixunWorkReport extends Component { > 导出实训报告: parseInt(this.props&&this.props.user.user_id)===parseInt(data&&data.user_id)? this.confirmysl(`/student_works/${homeworkid}/export_shixun_work_report.pdf`)} - > 导出实训报告 : - parseInt(this.props && this.props.user.user_id) === parseInt(data && data.user_id) ? this.confirmysl(`/student_works/${homeworkid}/export_shixun_work_report.pdf`)} - > 导出实训报告 : "" - } - {/*{this.props.isAdmin() ?work_comment_hidden===true? "":this.confirmysl(`/student_works/${homeworkid}/export_shixun_work_report.pdf`)} + > 导出实训报告:"" + } + {/*{this.props.isAdmin() ?work_comment_hidden===true? "":this.showAppraiseModal(1)}*/} {/*>评阅 : ""}*/} @@ -430,9 +426,9 @@ class ShixunWorkReport extends Component {
- {/*{work_comment===null||work_comment===undefined?"评阅":"编辑评阅"}*/} - - -
-
-
- 个人总结 + + +
+
+
+ 个人总结
-
-
-
-
-
+
+
+
+
+
- this.isdeleteModal(comment_id, visible_comment, type)} - showAppraiseModal={(type, id, show, hidden) => this.showAppraiseModal(type, id, show, hidden)} - /> - - { - has_commit === false ? "" : -
-
-
-
图形统计
- -
+ this.isdeleteModal(comment_id,visible_comment,type)} + showAppraiseModal={(type,id,show,hidden)=>this.showAppraiseModal(type,id,show,hidden)} + /> + + { + has_commit === false ? "" : +
+
+
+
图形统计
+
+
-
+
-
-
实训详情
- - { - data && data.shixun_detail === undefined ? "" : data.shixun_detail.map((item, key) => { - return ( -
+ + { + data && data.shixun_detail === undefined ? "" : data.shixun_detail.map((item, key) => { + return ( +
+
+

+ + + + + 第{item.position}关 + + {item.subject} + + +

+ +
+ + {item.st === 0 ? item.passed_code === null ? "" :
-

- - - - - 第{item.position}关 - - {item.subject} - - -

- -
- - {item.st === 0 ? item.passed_code === null ? "" : -
-
-

- 最近通过的代码 - {item.path} -

- -
-
  • - -
  • -
    +
    +

    + 最近通过的代码 + {item.path} +

    + +
    +
  • + +
  • -
    : ""} -
    - ) - }) - } -
    +
    +
    : ""} +
    + ) + }) + }
    - } +
    + } -
    - +
    + ) } @@ -716,4 +714,3 @@ class ShixunWorkReport extends Component { export default ShixunWorkReport; - diff --git a/public/react/src/modules/courses/statistics/Statistics.js b/public/react/src/modules/courses/statistics/Statistics.js index 14c022998..8d0d0984e 100644 --- a/public/react/src/modules/courses/statistics/Statistics.js +++ b/public/react/src/modules/courses/statistics/Statistics.js @@ -422,11 +422,7 @@ class Statistics extends Component{ { this.props.isAdmin()===true? // 这里是文件下载 不能替换路由 -<<<<<<< HEAD - this.derivefun(this.state.activeKey==="1"?`/classrooms/${this.props.match.params.coursesId}/export_member_scores_excel.xlsx`:`/courses/${this.props.match.params.coursesId}/export_member_act_score.xlsx`)}>导出 -======= this.derivefun(this.state.activeKey==="1"?`/courses/${this.props.match.params.coursesId}/export_member_scores_excel.xlsx`:`/courses/${this.props.match.params.coursesId}/export_member_act_score.xlsx`)}>导出 ->>>>>>> 65f1f7ca73d06c88eeec624eaa865b259c525706 :"" } ; diff --git a/public/react/src/modules/ecs/subroute/ecStudentList/EcStudentList.js b/public/react/src/modules/ecs/subroute/ecStudentList/EcStudentList.js index ccf7ab5c9..e8a57b3dc 100644 --- a/public/react/src/modules/ecs/subroute/ecStudentList/EcStudentList.js +++ b/public/react/src/modules/ecs/subroute/ecStudentList/EcStudentList.js @@ -126,10 +126,6 @@ class EcStudentList extends Component { console.log(error); }); } -<<<<<<< HEAD -======= - ->>>>>>> 65f1f7ca73d06c88eeec624eaa865b259c525706 windowsgoblack = () => { diff --git a/public/react/src/modules/login/LoginDialog.js b/public/react/src/modules/login/LoginDialog.js index 07d80e704..8621f8225 100644 --- a/public/react/src/modules/login/LoginDialog.js +++ b/public/react/src/modules/login/LoginDialog.js @@ -430,7 +430,7 @@ class LoginDialog extends Component { console.log(error) }) - }; + })}; setNotcompleteds = () => { this.setState({ Notcompleteds: true, diff --git a/public/react/src/modules/modals/Modals.js b/public/react/src/modules/modals/Modals.js index dd6b79c8e..5faf4d084 100644 --- a/public/react/src/modules/modals/Modals.js +++ b/public/react/src/modules/modals/Modals.js @@ -59,7 +59,6 @@ class Modals extends Component { }
    } -
    )