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.
NewEduCoderBuild/p__Competitions__Entered__A...

1 line
5.0 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[81799],{90083:function(e,t,n){n.r(t);var r=n(7557),a=n.n(r),o=n(41498),s=n.n(o),c=n(79800),i=n.n(c),u=n(39647),d=n.n(u),l=n(59301),m=n(19677),x=n(49127),h=n(6848),_=n(66104),f=n(2595),y=n(37712),p=["globalSetting","loading","dispatch","user"];t.default=(0,m.connect)((function(e){var t=e.loading,n=e.globalSetting,r=e.user;return{globalSetting:n,loading:t.effects,user:r}}))((function(e){e.globalSetting,e.loading;var t=e.dispatch,n=(e.user,d()(e,p),(0,m.useParams)()),r=n.identifier,o=n.Teamid,c=(0,l.useState)(),u=i()(c,2),k=u[0],j=u[1],v=(0,l.useState)(),g=i()(v,2),L=g[0],N=g[1];function I(){return(I=s()(a()().mark((function e(){var n,s,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"competitions/getShixun",payload:{identifier:r,teamid:o}});case 2:(n=e.sent)&&(s=n.shixuns,c={creator:"合计:",shixun_name:n.shixun_count,myshixuns_count:n.total_myshixun_count,forked_myshixun_count:n.total_forked_myshixun_count,valid_count:n.total_valid_count,score:n.total_shixun_score},s.push(c),j(s));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function b(){return(b=s()(a()().mark((function e(){var n,s,c;return a()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"competitions/getCourse",payload:{identifier:r,teamid:o}});case 2:(n=e.sent)&&(s=n.courses,c={creator:"合计:",course_name:n.total_course_count,students_count:n.total_students_count,shixun_homework_count:n.total_shixun_homework_count,valid_count:n.total_valid_count,score:n.total_course_score},s.push(c),N(s));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,l.useEffect)((function(){r&&(function(){I.apply(this,arguments)}(),function(){b.apply(this,arguments)}())}),[r]),console.log("shixundata",k,"coursedata",L);var w=[{title:"创建者",dataIndex:"creator",key:"creator",render:function(e,t){return(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoutheji":"",children:e})}},{title:"名称",dataIndex:"shixun_name",key:"shixun_name",render:function(e,t){return(0,y.jsxs)("div",{className:"合计:"===t.creator?"teamsLayoucolor-orange":"",children:[e,!0===t.forked?(0,y.jsx)(x.Z,{count:"原创",style:{backgroundColor:"#459BE5"}}):""]})}},{title:"学习人数",dataIndex:"myshixuns_count",key:"myshixuns_count",render:function(e,t){return(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoucolor-orange":"",children:e})}},{title:"被fork发布的学习人数",dataIndex:"forked_myshixun_count",key:"forked_myshixun_count",render:function(e,t){return(0,y.jsx)(h.Z,{placement:"bottom",title:"fork该实训产生的新实训学习总人数",children:(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoucolor-orange":"",children:e})})}},{title:"有效作品数",dataIndex:"valid_count",key:"valid_count",render:function(e,t){return(0,y.jsx)(h.Z,{placement:"bottom",title:"至少完成了1个关卡",children:(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoucolor-orange":"",children:e})})}},{title:"应用值",dataIndex:"score",key:"score",render:function(e,t){return(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoucolor-orange":"",children:e})}}],Z=[{title:"创建者",dataIndex:"creator",key:"creator",render:function(e,t){return(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoutheji":"",children:e})}},{title:"名称",dataIndex:"course_name",key:"course_name",render:function(e,t){return(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoucolor-orange":"",children:e})}},{title:"学生数量",dataIndex:"students_count",key:"students_count",render:function(e,t){return(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoucolor-orange":"",children:e})}},{title:"发布的实训作业数量",dataIndex:"shixun_homework_count",key:"shixun_homework_count",render:function(e,t){return(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoucolor-orange":"",children:e})}},{title:"有效作品数",dataIndex:"valid_count",key:"valid_count",render:function(e,t){return(0,y.jsx)(h.Z,{placement:"bottom",title:"至少完成了1个关卡",children:(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoucolor-orange":"",children:e})})}},{title:"应用值",dataIndex:"score",key:"score",render:function(e,t){return(0,y.jsx)("div",{className:"合计:"===t.creator?"teamsLayoucolor-orange":"",children:e})}}];return(0,y.jsxs)("div",{className:"edu-container minH500",children:[(0,y.jsxs)(_.Z,{className:"mt10",separator:">",children:[(0,y.jsx)(_.Z.Item,{children:(0,y.jsx)(m.Link,{to:"/competitions/index",children:"在线竞赛"})}),(0,y.jsx)(_.Z.Item,{children:(0,y.jsx)(m.Link,{to:"/competitions/".concat(r,"/detail/enroll"),children:"报名"})}),(0,y.jsx)(_.Z.Item,{children:"战队详情"})]}),(0,y.jsx)("p",{children:"实践项目"}),(0,y.jsx)(f.Z,{className:"teamsLayoutTable",columns:w,dataSource:k,bordered:!0,pagination:!1}),(0,y.jsx)("p",{children:"教学课堂"}),(0,y.jsx)(f.Z,{className:"teamsLayoutTable",columns:Z,dataSource:L,bordered:!0,pagination:!1})]})}))}}]);