You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
30 KiB
1 line
30 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[27395],{88537:function(e,n,t){t.r(n),t.d(n,{default:function(){return Y}});var l=t(7557),s=t.n(l),r=t(41498),i=t.n(r),o=t(82242),a=t.n(o),c=t(79800),d=t.n(c),u=t(59301),m=t(61186),v=t.n(m),h=t(33936),x=t(99313),p=t(66104),g=t(38854),j=t(20834),f=t(81327),_=t(67444),y="bg____UUAK",b="title___dswVh",N="img___GOFvI",k="right___T8moz",S="top___HMulK",w="spanfont___Xd5h3",O="bottom___fIm8n",I="rightdiv___dgVbw",C="fonttitle___WMXHQ",A="ling___p5e5D",D="content___FMX97",L="bgs___YrOYH",E="contenttitle___ygEAp",P="titlecoent___I48Sy",Z="es___ECmKO",M=t(46952),z=t(51945),T=t(86859),F=t(37712);v().locale("zh-cn");x.Z.TabPane;var $=[{text:"未开启",color:"#272A3A"},{text:"未通关",color:"#E30000"},{text:"按时通关",color:"#038D00"},{text:"迟交通关",color:"#0152D9"}],R=(0,h.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){e.classroomList,e.globalSetting,e.loading;var n,t=e.activitykey,l=(e.dispatch,(0,u.useState)(a()(a()({},(0,h.useParams)()),{},{page:1,type:4,limit:10}))),r=d()(l,2),o=r[0],c=r[1],m=(0,u.useState)([]),v=d()(m,2),x=v[0],p=v[1];function g(e){return j.apply(this,arguments)}function j(){return j=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,c(a()({},n)),t&&p(t);case 5:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}(0,u.useEffect)((function(){"1"===t&&g(a()({},o))}),[t]);var f=[{title:(0,F.jsx)("div",{style:{marginLeft:12},children:"实验名称"}),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(e,n){return(0,F.jsx)("a",{href:"/classrooms/".concat(null==o?void 0:o.coursesId,"/shixun_homework/").concat(null==n?void 0:n.id,"/").concat(null==n?void 0:n.student_work_id,"/comment"),target:"_blank",style:{marginLeft:12},children:e})}},{title:"作业状态",dataIndex:"work_status",key:"work_status",render:function(e){var n,t;return-1===e?(0,F.jsx)("span",{style:{color:"#FF9D18"},children:"重做中"}):(0,F.jsx)("span",{style:{color:null===(n=$[e])||void 0===n?void 0:n.color},children:null===(t=$[e])||void 0===t?void 0:t.text})}},{title:"评测次数",dataIndex:"sum_evaluate_count",align:"center",key:"sum_evaluate_count"},{title:"通关情况",dataIndex:"current_complete_count",align:"center",key:"current_complete_count",render:function(e,n){return(0,F.jsx)("span",{children:e+"/"+(null==n?void 0:n.complete_count)})}},{title:"最终成绩",dataIndex:"work_score",align:"center",key:"address",render:function(e){return(0,F.jsx)("span",{style:{color:100===parseInt(e)?"#FF6800":"#E30000"},children:e})}},{title:"评阅状态",dataIndex:"has_comment",align:"center",key:"address",render:function(e){return(0,F.jsx)("span",{children:e?"已评阅":"未评阅"})}}],y=x.table_data;return(0,F.jsxs)("section",{className:L,children:[(0,F.jsxs)("div",{className:E,children:[(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#0152D9"},children:(null==y||null===(n=y.total_score)||void 0===n?void 0:n.toFixed(2))||0}),(0,F.jsx)("div",{children:"总分"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#272A3A"},children:(null==y?void 0:y.total_count)||0}),(0,F.jsx)("div",{children:"全部实验"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#9A9DAD"},children:null==y?void 0:y.unstart_count}),(0,F.jsx)("div",{children:"未开启"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#E30000"},children:null==y?void 0:y.uncompelete_count}),(0,F.jsx)("div",{children:"未通关"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#038D00"},children:null==y?void 0:y.opportune_compelete_count}),(0,F.jsx)("div",{children:"按时通关"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#0152D9"},children:null==y?void 0:y.late_compelete_count}),(0,F.jsx)("div",{children:"迟交通关"})]}),(0,F.jsx)("div",{className:A}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#0152D9"},children:null==y?void 0:y.total_challenges_count}),(0,F.jsx)("div",{children:"全部关卡"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#038D00"},children:null==y?void 0:y.compelete_count}),(0,F.jsx)("div",{children:"已过关"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#272A3A"},children:(null==y?void 0:y.total_evaluate_count)||0}),(0,F.jsx)("div",{children:"评测次数"})]})]}),(0,F.jsx)(z.Z,{columns:f,dataSource:null==y?void 0:y.list,pagination:!1}),(0,F.jsx)(T.Z,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(e){o.page=e,g(o)},current:null==o?void 0:o.page,total:null==y?void 0:y.total_count})]})}));v().locale("zh-cn");x.Z.TabPane;var X=[{text:"未开始",color:"#272A3A"},{text:"考试中",color:"#0152D9"},{text:"已交卷",color:"#038D00"},{text:"已交卷/未答",color:"#038D00"}],H=(0,h.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){e.classroomList,e.globalSetting,e.loading;var n,t=e.activitykey,l=(e.dispatch,(0,u.useState)(a()(a()({},(0,h.useParams)()),{},{page:1,type:5,limit:10}))),r=d()(l,2),o=r[0],c=r[1],m=(0,u.useState)([]),v=d()(m,2),x=v[0],p=v[1];function g(e){return j.apply(this,arguments)}function j(){return j=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,c(a()({},n)),t&&p(t);case 5:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}(0,u.useEffect)((function(){"4"===t&&g(a()({},o))}),[t]);var f=[{title:(0,F.jsx)("div",{style:{marginLeft:12},children:"考试名称"}),dataIndex:"name",key:"name",ellipsis:!0,width:"36%",render:function(e,n){return(0,F.jsx)("a",{href:"/classrooms/".concat(null==o?void 0:o.coursesId,"/exercise/").concat(null==n?void 0:n.id,"/review/").concat(o.login),target:"_blank",style:{marginLeft:12},children:e})}},{title:"提交状态",dataIndex:"commit_status",key:"commit_status",width:"11%",render:function(e){var n,t;return(0,F.jsx)("span",{style:{color:null===(n=X[e])||void 0===n?void 0:n.color},children:null===(t=X[e])||void 0===t?void 0:t.text})}},{title:"提交时间",dataIndex:"end_at",key:"end_at",width:"27%",render:function(e){return(0,F.jsx)("span",{children:e})}},{title:"最终成绩",dataIndex:"score",key:"score",width:"11%"},{title:"评阅状态",dataIndex:"has_comment",align:"center",key:"address",width:"15%",render:function(e){return(0,F.jsx)("span",{children:e?"已评阅":"未评阅"})}}],y=x.table_data;return(0,F.jsxs)("section",{className:L,children:[(0,F.jsxs)("div",{className:E,children:[(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#0152D9"},children:null===(n=parseFloat(null==y?void 0:y.total_score))||void 0===n?void 0:n.toFixed(2)}),(0,F.jsx)("div",{children:"总分"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#272A3A"},children:null==y?void 0:y.total_count}),(0,F.jsx)("div",{children:"全部考试"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#9A9DAD"},children:null==y?void 0:y.total_unstart_count}),(0,F.jsx)("div",{children:"未开始"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#0152D9"},children:null==y?void 0:y.total_examing_count}),(0,F.jsx)("div",{children:"考试中"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsxs)("div",{className:C,style:{color:"#038D00"},children:[null==y?void 0:y.total_commit_count,(0,F.jsxs)("span",{style:{color:"#272A3A"},children:["/",null==y?void 0:y.total_uncommit_count]})]}),(0,F.jsx)("div",{children:"已交卷/未答"})]})]}),(0,F.jsx)(z.Z,{columns:f,dataSource:null==y?void 0:y.list,pagination:!1}),(0,F.jsx)(T.Z,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(e){o.page=e,g(o)},current:null==o?void 0:o.page,total:null==y?void 0:y.total_count})]})}));v().locale("zh-cn");x.Z.TabPane;var B=[{text:"未提交",color:"#272A3A"},{text:"按时提交",color:"#038D00"},{text:"延时提交",color:"#0152D9"}],K=(0,h.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){e.classroomList,e.globalSetting,e.loading;var n,t=e.activitykey,l=(e.dispatch,(0,u.useState)(a()(a()({},(0,h.useParams)()),{},{page:1,type:1,limit:10}))),r=d()(l,2),o=r[0],c=r[1],m=(0,u.useState)([]),v=d()(m,2),x=v[0],p=v[1];function g(e){return j.apply(this,arguments)}function j(){return j=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,c(a()({},n)),t&&p(t);case 5:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}(0,u.useEffect)((function(){"2"===t&&g(a()({},o))}),[t]);var f=[{title:(0,F.jsx)("div",{style:{marginLeft:12},children:"作业名称"}),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(e,n){return(0,F.jsx)("a",{href:"/classrooms/".concat(null==o?void 0:o.coursesId,"/common_homework/").concat(null==n?void 0:n.id,"/review/").concat(null==n?void 0:n.student_work_id),target:"_blank",style:{marginLeft:12},children:e})}},{title:"作业状态",dataIndex:"work_status",key:"work_status",render:function(e){var n,t;return-1===e?(0,F.jsx)("span",{style:{color:"#FF9D18"},children:"重做中"}):(0,F.jsx)("span",{style:{color:null===(n=B[e])||void 0===n?void 0:n.color},children:null===(t=B[e])||void 0===t?void 0:t.text})}},{title:"打回次数",dataIndex:"redo_count",key:"redo_count"},{title:"更新时间",dataIndex:"update_time",key:"update_time",render:function(e){return(0,F.jsx)("span",{children:e||"- -"})}},{title:"教师评分",dataIndex:"teacher_score",key:"teacher_score"},{title:"助教评分",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"当前成绩",dataIndex:"work_score",key:"address"},{title:"评阅状态",dataIndex:"has_comment",align:"center",key:"address",render:function(e){return(0,F.jsx)("span",{children:e?"已评阅":"未评阅"})}}],y=x.table_data;return(0,F.jsxs)("section",{className:L,children:[(0,F.jsxs)("div",{className:E,children:[(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#0152D9"},children:(null==y||null===(n=y.total_score)||void 0===n?void 0:n.toFixed(2))||0}),(0,F.jsx)("div",{children:"总分"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#272A3A"},children:(null==y?void 0:y.total_count)||0}),(0,F.jsx)("div",{children:"全部作业"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#9A9DAD"},children:(null==y?void 0:y.total_uncommit_count)||0}),(0,F.jsx)("div",{children:"未提交"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#038D00"},children:(null==y?void 0:y.total_commit_count)||0}),(0,F.jsx)("div",{children:"按时提交"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#0152D9"},children:(null==y?void 0:y.total_late_commit_count)||0}),(0,F.jsx)("div",{children:"延时提交"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#FF9D18"},children:(null==y?void 0:y.total_redos_count)||0}),(0,F.jsx)("div",{children:"重做中"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#272A3A"},children:(null==y?void 0:y.total_returns_count)||0}),(0,F.jsx)("div",{children:"打回总次数"})]})]}),(0,F.jsx)(z.Z,{columns:f,dataSource:null==y?void 0:y.list,pagination:!1}),(0,F.jsx)(T.Z,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(e){o.page=e,g(o)},current:null==o?void 0:o.page,total:null==y?void 0:y.total_count})]})}));v().locale("zh-cn");x.Z.TabPane;var U=[{text:"未提交",color:"#272A3A"},{text:"按时提交",color:"#038D00"},{text:"延时提交",color:"#0152D9"}],V=(0,h.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){e.classroomList,e.globalSetting,e.loading;var n,t=e.activitykey,l=(e.dispatch,(0,u.useState)(a()(a()({},(0,h.useParams)()),{},{page:1,type:3,limit:10}))),r=d()(l,2),o=r[0],c=r[1],m=(0,u.useState)([]),v=d()(m,2),x=v[0],p=v[1];function g(e){return j.apply(this,arguments)}function j(){return j=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,c(a()({},n)),t&&p(t);case 5:case"end":return e.stop()}}),e)}))),j.apply(this,arguments)}(0,u.useEffect)((function(){"3"===t&&g(a()({},o))}),[t]);var f=[{title:(0,F.jsx)("div",{style:{marginLeft:12},children:"作业名称"}),dataIndex:"name",key:"name",ellipsis:!0,width:"30%",render:function(e,n){return(0,F.jsx)("a",{href:"/classrooms/".concat(null==o?void 0:o.coursesId,"/group_homework/").concat(null==n?void 0:n.id,"/review/").concat(null==n?void 0:n.student_work_id),target:"_blank",style:{marginLeft:12},children:e})}},{title:"分组",dataIndex:"work_group",key:"work_group",render:function(e){return(0,F.jsx)("span",{children:e})}},{title:"作业状态",dataIndex:"work_status",key:"work_status",render:function(e){var n,t;return-1===e?(0,F.jsx)("span",{style:{color:"#FF9D18"},children:"重做中"}):(0,F.jsx)("span",{style:{color:null===(n=U[e])||void 0===n?void 0:n.color},children:null===(t=U[e])||void 0===t?void 0:t.text})}},{title:"打回次数",dataIndex:"redo_count",key:"redo_count"},{title:"更新时间",dataIndex:"update_time",key:"update_time",render:function(e){return(0,F.jsx)("span",{children:e||"- -"})}},{title:"教师评分",dataIndex:"teacher_score",key:"teacher_score"},{title:"助教评分",dataIndex:"teaching_asistant_score",key:"teaching_asistant_score"},{title:"当前成绩",dataIndex:"work_score",key:"address"},{title:"评阅状态",dataIndex:"has_comment",align:"center",key:"address",render:function(e){return(0,F.jsx)("span",{children:e?"已评阅":"未评阅"})}}],y=x.table_data;return(0,F.jsxs)("section",{className:L,children:[(0,F.jsxs)("div",{className:E,children:[(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#0152D9"},children:(null==y||null===(n=y.total_score)||void 0===n?void 0:n.toFixed(2))||0}),(0,F.jsx)("div",{children:"总分"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#272A3A"},children:(null==y?void 0:y.total_count)||0}),(0,F.jsx)("div",{children:"全部作业"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#9A9DAD"},children:(null==y?void 0:y.total_uncommit_count)||0}),(0,F.jsx)("div",{children:"未提交"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#038D00"},children:(null==y?void 0:y.total_commit_count)||0}),(0,F.jsx)("div",{children:"按时提交"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#0152D9"},children:(null==y?void 0:y.total_late_commit_count)||0}),(0,F.jsx)("div",{children:"延时提交"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#FF9D18"},children:(null==y?void 0:y.total_redos_count)||0}),(0,F.jsx)("div",{children:"重做中"})]}),(0,F.jsxs)("div",{className:P,children:[(0,F.jsx)("div",{className:C,style:{color:"#272A3A"},children:(null==y?void 0:y.total_returns_count)||0}),(0,F.jsx)("div",{children:"打回总次数"})]})]}),(0,F.jsx)(z.Z,{columns:f,dataSource:null==y?void 0:y.list,pagination:!1}),(0,F.jsx)(T.Z,{style:{marginTop:20,textAlign:"center"},hideOnSinglePage:!0,showSizeChanger:!1,pageSize:10,onChange:function(e){o.page=e,g(o)},current:null==o?void 0:o.page,total:null==y?void 0:y.total_count})]})})),W=t(84666),G=t(30584);v().locale("zh-cn");var Q=x.Z.TabPane,Y=(0,h.connect)((function(e){var n=e.classroomList,t=e.loading;return{classroomList:n,globalSetting:e.globalSetting,loading:t}}))((function(e){var n,t,l,r,o,c,m,v,L,E,P,z,T=e.classroomList,$=(e.globalSetting,e.loading,e.dispatch),X=(0,u.useState)(a()(a()({},(0,h.useParams)()),{},{page:1,type:4})),B=d()(X,2),U=B[0],Y=B[1],q=(0,u.useState)(),J=d()(q,2),ee=J[0],ne=J[1],te=(0,u.useState)(),le=d()(te,2),se=le[0],re=le[1],ie=(0,u.useState)("1"),oe=d()(ie,2),ae=oe[0],ce=oe[1];(0,h.useLocation)();function de(){return de=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/course_members/").concat(n.login,"/learning_statistics"),{method:"get",params:n});case 2:t=e.sent,Y(a()({},n)),t&&ne(t);case 5:case"end":return e.stop()}}),e)}))),de.apply(this,arguments)}function ue(){return ue=i()(s()().mark((function e(n){var t;return s()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,_.ZP)("/api/courses/".concat(null==n?void 0:n.coursesId,"/students.json"),{method:"get",params:a()({limit:2e3},n)});case 2:(t=e.sent)&&re(t);case 4:case"end":return e.stop()}}),e)}))),ue.apply(this,arguments)}(0,u.useEffect)((function(){!function(e){de.apply(this,arguments)}(a()({},U)),function(e){ue.apply(this,arguments)}(a()({},U)),$({type:"classroomList/getClassroomLeftMenus",payload:a()({},U)})}),[]),(0,u.useEffect)((function(){var e,n,t,l;null!=T&&null!==(e=T.detailLeftMenus)&&void 0!==e&&null!==(e=e.course_modules)&&void 0!==e&&e.map((function(e){return e.type})).find((function(e){return"shixun_homework"===e}))?ce("1"):null!=T&&null!==(n=T.detailLeftMenus)&&void 0!==n&&null!==(n=n.course_modules)&&void 0!==n&&n.map((function(e){return e.type})).find((function(e){return"common_homework"===e}))?ce("2"):null!=T&&null!==(t=T.detailLeftMenus)&&void 0!==t&&null!==(t=t.course_modules)&&void 0!==t&&t.map((function(e){return e.type})).find((function(e){return"group_homework"===e}))?ce("3"):null!=T&&null!==(l=T.detailLeftMenus)&&void 0!==l&&null!==(l=l.course_modules)&&void 0!==l&&l.map((function(e){return e.type})).find((function(e){return"exercise"===e}))&&ce("4")}),[null==T||null===(n=T.detailLeftMenus)||void 0===n?void 0:n.course_modules]);var me=null==T||null===(t=T.detailLeftMenus)||void 0===t||null===(t=t.course_modules)||void 0===t?void 0:t.map((function(e){return e.type}));return(0,F.jsxs)("section",{className:y,children:[(0,F.jsxs)(p.Z,{separator:">",style:{marginTop:20},children:[(0,F.jsx)(p.Z.Item,{children:"教学课堂"}),(0,F.jsx)(p.Z.Item,{children:(0,F.jsx)(h.Link,{to:"/classrooms/".concat(null==U?void 0:U.coursesId),children:null==ee?void 0:ee.course_name})}),(0,F.jsx)(p.Z.Item,{children:(0,F.jsx)(h.Link,{to:null==T||null===(l=T.detailLeftMenus)||void 0===l||null===(l=l.course_modules)||void 0===l||null===(l=l.filter((function(e){return"statistics"===e.type})))||void 0===l||null===(l=l[0])||void 0===l?void 0:l.category_url,children:"学生分析"})}),(0,F.jsx)(p.Z.Item,{children:"学生学习详情"})]}),(0,F.jsxs)("div",{className:b,children:[(0,F.jsx)("div",{className:N,children:(0,F.jsx)("img",{src:W.Z.IMG_SERVER+"/images/"+(null==ee?void 0:ee.image_url)})}),(0,F.jsxs)("div",{className:k,children:[(0,F.jsxs)("div",{className:S,children:[(0,F.jsxs)("div",{children:[(0,F.jsxs)("span",{className:w,children:["姓名:",(0,F.jsx)("span",{children:null==ee?void 0:ee.username})]}),(0,F.jsxs)("span",{className:w,children:["学号:",(0,F.jsx)("span",{children:(null==ee?void 0:ee.student_id)||"- -"})]}),(0,F.jsxs)("span",{className:w,children:["分班:",(0,F.jsx)("span",{children:(null==ee?void 0:ee.course_group)||"- -"})]})]}),!(0,G.dE)()&&(0,F.jsx)(g.Z,{dropdownRender:function(){var e;return(0,F.jsx)(j.Z,{selectedKeys:[null==U?void 0:U.login],style:{maxHeight:"380px",overflow:"auto"},children:null==se||null===(e=se.students)||void 0===e?void 0:e.map((function(e,n){return(0,F.jsx)(j.Z.Item,{onClick:function(){h.history.push("/classrooms/".concat(null==U?void 0:U.coursesId,"/Studentdetail/").concat(null==e?void 0:e.login)),window.location.reload()},children:e.name},null==e?void 0:e.login)}))})},children:(0,F.jsxs)(f.Z,{style:{fontSize:14},children:[null==ee?void 0:ee.username,(0,F.jsx)(M.Z,{style:{color:"#0152D9"}})]})})]}),(0,F.jsxs)("div",{className:O,children:[(0,F.jsxs)("div",{className:I,children:[(0,F.jsx)("div",{className:C,style:{color:"#0152D9"},children:null==ee||null===(r=ee.total_score)||void 0===r?void 0:r.toFixed(2)}),(0,F.jsx)("div",{children:"总成绩"})]}),(0,F.jsx)("div",{className:A}),(0,F.jsxs)("div",{className:I,children:[(0,F.jsxs)("div",{className:C,style:{color:"#272A3A"},children:[null==ee?void 0:ee.course_group_user_ranking,"/",(0,F.jsx)("span",{style:{color:"#99A2B4"},children:null==ee?void 0:ee.course_group_user_ranking_count})]}),(0,F.jsx)("div",{children:"分班排名(排名 / 分班人数)"})]}),(0,F.jsx)("div",{className:A}),(0,F.jsxs)("div",{className:I,children:[(0,F.jsx)("div",{className:C,style:{color:"#272A3A"},children:null==ee?void 0:ee.overall_rating}),(0,F.jsx)("div",{children:"综合评分"})]}),(0,F.jsx)("div",{className:A}),(0,F.jsxs)("div",{className:I,children:[(0,F.jsxs)("div",{className:C,style:{color:"#272A3A"},children:[null==ee?void 0:ee.total_user_ranking,"/",(0,F.jsx)("span",{style:{color:"#99A2B4"},children:null==ee?void 0:ee.total_user_ranking_count})]}),(0,F.jsx)("div",{children:"综合总排名(排名 / 总人数)"})]})]})]})]}),(0,F.jsx)("div",{className:D,children:(0,F.jsxs)(x.Z,{accessKey:ae,onChange:function(e){ce(e)},tabBarStyle:{padding:"0px 40px",height:55},children:[(null==me?void 0:me.find((function(e){return"shixun_homework"===e})))&&(0,F.jsx)(Q,{tab:(0,F.jsx)("span",{className:Z,title:null==T||null===(o=T.detailLeftMenusNames)||void 0===o?void 0:o.shixun_homework,children:null==T||null===(c=T.detailLeftMenusNames)||void 0===c?void 0:c.shixun_homework}),children:(0,F.jsx)(R,{activitykey:ae})},"1"),(null==me?void 0:me.find((function(e){return"common_homework"===e})))&&(0,F.jsx)(Q,{tab:(0,F.jsx)("span",{className:Z,title:null==T||null===(m=T.detailLeftMenusNames)||void 0===m?void 0:m.common_homework,children:null==T||null===(v=T.detailLeftMenusNames)||void 0===v?void 0:v.common_homework}),children:(0,F.jsx)(K,{activitykey:ae})},"2"),(null==me?void 0:me.find((function(e){return"group_homework"===e})))&&(0,F.jsx)(Q,{tab:(0,F.jsx)("span",{className:Z,title:null==T||null===(L=T.detailLeftMenusNames)||void 0===L?void 0:L.group_homework,children:null==T||null===(E=T.detailLeftMenusNames)||void 0===E?void 0:E.group_homework}),children:(0,F.jsx)(V,{activitykey:ae})},"3"),(null==me?void 0:me.find((function(e){return"exercise"===e})))&&(0,F.jsx)(Q,{tab:(0,F.jsx)("span",{className:Z,title:null==T||null===(P=T.detailLeftMenusNames)||void 0===P?void 0:P.exercise,children:null==T||null===(z=T.detailLeftMenusNames)||void 0===z?void 0:z.exercise}),children:(0,F.jsx)(H,{activitykey:ae})},"4")]})})]})}))},66104:function(e,n,t){t.d(n,{Z:function(){return A}});var l=t(92310),s=t.n(l),r=t(75440),i=t(47413),o=t(59301),a=t(92343),c=t(36355),d=t(46952),u=t(91857);const m=e=>{let{children:n}=e;const{getPrefixCls:t}=o.useContext(c.E_),l=t("breadcrumb");return o.createElement("li",{className:`${l}-separator`,"aria-hidden":"true"},""===n?n:n||"/")};m.__ANT_BREADCRUMB_SEPARATOR=!0;var v=m,h=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(t[l[s]]=e[l[s]])}return t};function x(e,n,t,l){if(null==t)return null;const{className:r,onClick:a}=n,c=h(n,["className","onClick"]),d=Object.assign(Object.assign({},(0,i.Z)(c,{data:!0,aria:!0})),{onClick:a});return void 0!==l?o.createElement("a",Object.assign({},d,{className:s()(`${e}-link`,r),href:l}),t):o.createElement("span",Object.assign({},d,{className:s()(`${e}-link`,r)}),t)}function p(e,n){return(t,l,s,r,i)=>{if(n)return n(t,l,s,r);const o=function(e,n){if(void 0===e.title||null===e.title)return null;const t=Object.keys(n).join("|");return"object"==typeof e.title?e.title:String(e.title).replace(new RegExp(`:(${t})`,"g"),((e,t)=>n[t]||e))}(t,l);return x(e,t,o,i)}}var g=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(t[l[s]]=e[l[s]])}return t};const j=e=>{const{prefixCls:n,separator:t="/",children:l,menu:s,overlay:r,dropdownProps:i,href:a}=e;const c=(e=>{if(s||r){const t=Object.assign({},i);if(s){const e=s||{},{items:n}=e,l=g(e,["items"]);t.menu=Object.assign(Object.assign({},l),{items:null==n?void 0:n.map(((e,n)=>{var{key:t,title:l,label:s,path:r}=e,i=g(e,["key","title","label","path"]);let c=null!=s?s:l;return r&&(c=o.createElement("a",{href:`${a}${r}`},c)),Object.assign(Object.assign({},i),{key:null!=t?t:n,label:c})}))})}else r&&(t.overlay=r);return o.createElement(u.Z,Object.assign({placement:"bottom"},t),o.createElement("span",{className:`${n}-overlay-link`},e,o.createElement(d.Z,null)))}return e})(l);return null!=c?o.createElement(o.Fragment,null,o.createElement("li",null,c),t&&o.createElement(v,null,t)):null},f=e=>{const{prefixCls:n,children:t,href:l}=e,s=g(e,["prefixCls","children","href"]),{getPrefixCls:r}=o.useContext(c.E_),i=r("breadcrumb",n);return o.createElement(j,Object.assign({},s,{prefixCls:i}),x(i,s,t,l))};f.__ANT_BREADCRUMB_ITEM=!0;var _=f,y=t(17313),b=t(83116),N=t(37613);const k=e=>{const{componentCls:n,iconCls:t}=e;return{[n]:Object.assign(Object.assign({},(0,y.Wf)(e)),{color:e.itemColor,fontSize:e.fontSize,[t]:{fontSize:e.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:e.linkColor,transition:`color ${e.motionDurationMid}`,padding:`0 ${e.paddingXXS}px`,borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",marginInline:-e.marginXXS,"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,y.Qy)(e)),"li:last-child":{color:e.lastItemColor},[`${n}-separator`]:{marginInline:e.separatorMargin,color:e.separatorColor},[`${n}-link`]:{[`\n > ${t} + span,\n > ${t} + a\n `]:{marginInlineStart:e.marginXXS}},[`${n}-overlay-link`]:{borderRadius:e.borderRadiusSM,height:e.lineHeight*e.fontSize,display:"inline-block",padding:`0 ${e.paddingXXS}px`,marginInline:-e.marginXXS,[`> ${t}`]:{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon},"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${e.componentCls}-rtl`]:{direction:"rtl"}})}};var S=(0,b.Z)("Breadcrumb",(e=>{const n=(0,N.TS)(e,{});return[k(n)]}),(e=>({itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}))),w=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(t[l[s]]=e[l[s]])}return t};function O(e){const{breadcrumbName:n,children:t}=e,l=w(e,["breadcrumbName","children"]),s=Object.assign({title:n},l);return t&&(s.menu={items:t.map((e=>{var{breadcrumbName:n}=e,t=w(e,["breadcrumbName"]);return Object.assign(Object.assign({},t),{title:n})}))}),s}var I=function(e,n){var t={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&n.indexOf(l)<0&&(t[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(t[l[s]]=e[l[s]])}return t};const C=e=>{const{prefixCls:n,separator:t="/",style:l,className:d,rootClassName:u,routes:m,items:h,children:x,itemRender:g,params:f={}}=e,_=I(e,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:y,direction:b,breadcrumb:N}=o.useContext(c.E_);let k;const w=y("breadcrumb",n),[C,A]=S(w),D=function(e,n){return(0,o.useMemo)((()=>e||(n?n.map(O):null)),[e,n])}(h,m);const L=p(w,g);if(D&&D.length>0){const e=[],n=h||m;k=D.map(((l,s)=>{const{path:r,key:a,type:c,menu:d,overlay:u,onClick:m,className:h,separator:x,dropdownProps:p}=l,g=((e,n)=>{if(void 0===n)return n;let t=(n||"").replace(/^\//,"");return Object.keys(e).forEach((n=>{t=t.replace(`:${n}`,e[n])})),t})(f,r);void 0!==g&&e.push(g);const _=null!=a?a:s;if("separator"===c)return o.createElement(v,{key:_},x);const y={},b=s===D.length-1;d?y.menu=d:u&&(y.overlay=u);let{href:N}=l;return e.length&&void 0!==g&&(N=`#/${e.join("/")}`),o.createElement(j,Object.assign({key:_},y,(0,i.Z)(l,{data:!0,aria:!0}),{className:h,dropdownProps:p,href:N,separator:b?"":t,onClick:m,prefixCls:w}),L(l,f,n,e,N))}))}else if(x){const e=(0,r.Z)(x).length;k=(0,r.Z)(x).map(((n,l)=>{if(!n)return n;const s=l===e-1;return(0,a.Tm)(n,{separator:s?"":t,key:l})}))}const E=s()(w,null==N?void 0:N.className,{[`${w}-rtl`]:"rtl"===b},d,u,A),P=Object.assign(Object.assign({},null==N?void 0:N.style),l);return C(o.createElement("nav",Object.assign({className:E,style:P},_),o.createElement("ol",null,k)))};C.Item=_,C.Separator=v;var A=C}}]); |