|
|
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[60533],{89136:function(e,t,n){n.d(t,{Z:function(){return a}});var i=n(1565),o=n(59301),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},r=n(68475),s=function(e,t){return o.createElement(r.Z,(0,i.Z)({},e,{ref:t,icon:l}))};var a=o.forwardRef(s)},58499:function(e,t,n){n.d(t,{Z:function(){return x}});var i=n(82242),o=n.n(i),l=n(7557),r=n.n(l),s=n(41498),a=n.n(s),c=n(79800),d=n.n(c),u=n(39647),p=n.n(u),f=n(3113),m=n(59301),v=n(37712),h=["children"],x=function(e){var t=e.children,n=p()(e,h),i=(0,m.useState)(!1),l=d()(i,2),s=l[0],c=l[1];return(0,v.jsx)(f.ZP,o()(o()({},n),{},{loading:s,onClick:function(){var e=a()(r()().mark((function e(t){return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,c(!0),e.next=4,n.onClick(t);case 4:c(!1),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),c(!1);case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(t){return e.apply(this,arguments)}}(),children:t}))}},82719:function(e,t,n){n.d(t,{ij:function(){return k},_s:function(){return C},Uf:function(){return w},ZP:function(){return N}});var i=n(82242),o=n.n(i),l=(n(59301),"analysis___xyV_c"),r="title___DQ3VK",s="itemWrap___vFE5r",a="item___NjeOt",c="list___BbMrm",d="wrap___UQTTb",u="img___tNvUo",p="tips___Eu4wH",f="footer___ZbR9W",m="noData___mLlw0",v=n(92310),h=n.n(v),x=n(42441),_=n(6848),g=n(56511),j=n(71418),y=n(7406),b=n(37712),w=function(){var e,t,n,i,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=null==l||null===(e=l.emotion)||void 0===e?void 0:e.map((function(e){return o()({value:null==e?void 0:e.rate},e)})),s=null==l||null===(t=l.focus)||void 0===t?void 0:t.map((function(e){return o()({value:null==e?void 0:e.rate},e)})),a=null==l||null===(n=l.action)||void 0===n?void 0:n.map((function(e){return o()({value:null==e?void 0:e.rate},e)})),c=null==l||null===(i=l.intention)||void 0===i?void 0:i.map((function(e){return o()({value:null==e?void 0:e.rate},e)}));return[{title:"表情占比",color:["#f7ca2e","#4ccf71","#3791ee","#f9ac95","#4f74ee","#f0e999"],data:r||[]},{title:"专注度占比",color:["#4f74ee","#f9ac95","#9cb5fe","#eaa170","#3791ee","#a39bed"],data:s||[]},{title:"行为占比情况",color:["#5eca9c","#a39bed","#f68238","#f0e999","#eaa170","#f9ac95"],data:a||[]},{title:"意图占比情况",color:["#eaa170","#739fcb","#f0e999","#f9ac95","#4f74ee","#5eca9c"],data:c||[]}]},C=function(e){var t=e.className,n=e.dataSource,i=void 0===n?[]:n,o=e.col,l=void 0===o?4:o,r=e.right,s=e.bottom,a=void 0===s?23:s,m=e.precision,v=void 0===m?0:m,x=e.wrapWidth,g=void 0===x?1200:x,j=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"--";return e?(null==e?void 0:e.length)>t?(null==e?void 0:e.slice(0,t-1))+"...":e:n},y=Math.floor((g-(l-1)*r)/l);return(0,b.jsx)("div",{className:h()(c,t),children:!(null==i||!i.length)&&(null==i?void 0:i.map((function(e,t){var n=e.cover_pic,i=e.created_at,o=e.emotion,s=e.action,c=e.intention,m=e.focus;return(0,b.jsxs)("div",{className:d,style:{width:y,marginRight:(1+t)%l==0?0:r+v,marginBottom:a},children:[(0,b.jsxs)("div",{className:u,children:[(0,b.jsx)("img",{src:"".concat(n)}),(0,b.jsxs)("div",{className:p,children:[(0,b.jsxs)("div",{children:[(0,b.jsx)("i",{className:"iconfont icon-paisheshijian mr5 font14"})," 拍摄时间"]}),(0,b.jsx)("span",{children:i})]})]}),(0,b.jsxs)("div",{className:f,children:[(0,b.jsxs)("ul",{children:[(0,b.jsxs)("li",{children:[(0,b.jsx)("i",{className:"iconfont icon-biaoqing"}),(0,b.jsxs)("span",{children:["表情:",(0,b.jsx)(_.Z,{title:o,children:(0,b.jsx)("span",{className:"c-grey-333",children:j(o,4)})})]})]}),(0,b.jsxs)("li",{children:[(0,b.jsx)("i",{className:"iconfont icon-hangwei"}),(0,b.jsxs)("span",{children:["行为:",(0,b.jsx)(_.Z,{title:s,children:(0,b.jsx)("span",{className:"c-grey-333",children:j(s,4)})})]})]})]}),(0,b.jsxs)("ul",{children:[(0,b.jsxs)("li",{children:[(0,b.jsx)("i",{className:"iconfont icon-yitu"}),(0,b.jsxs)("span",{children:["意图:",(0,b.jsx)(_.Z,{title:c,children:(0,b.jsx)("span",{className:"c-grey-333",children:j(c,4)})})]})]}),(0,b.jsxs)("li",{children:[(0,b.jsx)("i",{className:"iconfont icon-zhuangtai"}),(0,b.jsxs)("span",{children:["专注度:",(0,b.jsx)(_.Z,{title:m,children:(0,b.jsx)("span",{className:"c-grey-333",children:j(m,3)})})]})]})]})]})]},t)})))})},k=function(e){var t,n,i=e.className,o=e.style,l=e.title,a=e.hideBar,c=void 0!==a&&a,d=e.children,u=e.customText,p=void 0===u?"":u,f=e.noDataText,v=void 0===f?"":f,x=e.emptyData,_=void 0===x?[]:x,j=e.loading,w=e.actionAnalysis,C=(null==_||null===(t=_[0])||void 0===t?void 0:t.every((function(e){var t;return!(null!=e&&null!==(t=e.data)&&void 0!==t&&t.length)})))&&!(null!=_&&null!==(n=_[1])&&void 0!==n&&n.length)||!w,k=w?v:p;return(0,b.jsxs)(g.Z,{loading:j,active:!0,children:[C&&(0,b.jsxs)("div",{className:h()(m,i),style:o,children:[!!l&&(0,b.jsxs)("div",{className:r,children:[!c&&(0,b.jsx)("b",{}),(0,b.jsx)("span",{children:l})]}),(0,b.jsx)("div",{className:s,children:(0,b.jsx)(y.Z,{customText:k})})]}),!C&&d]})},N=function(e){var t=e.className,n=e.style,i=e.data,o=void 0===i?[]:i,c=e.title,d=e.hideBar,u=void 0!==d&&d,p=e.loading,f=void 0!==p&&p;return(0,b.jsxs)("div",{className:h()(l,t),style:n,children:[!!c&&(0,b.jsxs)("div",{className:r,children:[!u&&(0,b.jsx)("b",{}),(0,b.jsx)("span",{children:c})]}),(0,b.jsx)(j.Z,{spinning:f,children:(0,b.jsx)("div",{className:s,children:null==o?void 0:o.map((function(e,t){return(0,b.jsx)("div",{className:a,children:(0,b.jsx)(x.Z,{option:{tooltip:{trigger:"item",formatter:"{a} <br/>{b}: {c}%"},title:{left:"center",bottom:15,text:null==e?void 0:e.title},legend:{top:10,right:10,orient:"vertical",show:!0,align:"left",icon:"circle",itemWidth:10,itemHeight:10,formatter:function(t){for(var n in null==e?void 0:e.data)if(t==(null==e?void 0:e.data[n].name))return t+" "+(null==e?void 0:e.data[n].value)+"%"},textStyle:{color:"#767676",fontSize:12}},color:null==e?void 0:e.color,series:[{type:"pie",radius:["20%","35%"],center:["20%","40%"],avoidLabelOverlap:!1,label:{show:!1},labelLine:{show:!1},data:null==e?void 0:e.data}]},style:{height:145}})},t)}))})})]})}},7406:function(e,t,n){var i=n(82242),o=n.n(i),l=(n(59301),n(93314)),r=n(3113),s=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,i=void 0===n?{}:n,a=e.styles,c=void 0===a?{}:a,d=e.customText,u=e.ButtonText,p=e.ButtonClick,f=e.Buttonclass,m=e.ButtonTwo,v=e.imgStyles,h=e.loading,x=void 0!==h&&h;return(0,s.jsxs)("section",{className:"tc animated fadeIn",style:o()(o()({},{color:"#999",margin:"100px auto",visibility:x?"hidden":"visible"}),c),children:[(0,s.jsx)("img",{src:t||l,style:o()(o()({},v),{},{pointerEvents:"none",userSelect:"none"})}),(0,s.jsx)("p",{className:"mt20 font14",children:d||"暂时还没有相关数据哦!"}),u&&(0,s.jsx)(r.ZP,o()(o()({className:f,onClick:p},i),{},{children:u})),m&&m]})}},92339:function(e,t,n){n.d(t,{mU:function(){return B},Q_:function(){return T},ZP:function(){return M}});var i=n(7557),o=n.n(i),l=n(41498),r=n.n(l),s=n(82242),a=n.n(s),c=n(79800),d=n.n(c),u=n(59301),p=n(93948),f=n(6848),m=n(95237),v=n(43604),h=n(14491),x="analysisWrapper___vy_V8",_="title___tQAzn",g="tableWrapper___ztB9P",j="firstCol___Itr68",y="itemWrapper___Jaw8O",b="itemTitle___gmKyn",w="count___MUY3o",C="tips___k4pHA",k=n(51136),N=n(7880),S=n(82719),Z=n(43418),I=n(57809),O=n(90963),E=n(6457),P=n(37712),z=(0,N.connect)((function(e){return{shixunHomeworks:e.shixunHomeworks}}))((function(e){e.shixunHomeworks,e.dispatch;var t=e.isShow,n=e.setIsShow,i=e.item,l=e.courseId,s=e.categoryId,c=(0,u.useState)({page:1,limit:10,keyword:"",type:null}),p=d()(c,2),m=p[0],v=p[1],x=(0,u.useState)([]),_=d()(x,2),g=_[0],j=_[1],y=(0,u.useState)(!1),b=d()(y,2),w=b[0],C=b[1],N=(0,u.useState)(1),S=d()(N,2);S[0],S[1];function z(){return L.apply(this,arguments)}function L(){return(L=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return C(!0),e.next=3,(0,k.ZP)("/api/homework_commons/".concat(s,"/shixun_game_statisic.json"),{method:"get",params:{challenge_id:i.id,id:s,type:m.type,page:m.page,limit:m.limit,keyword:m.keyword}});case 3:t=e.sent,C(!1),0===t.status&&j(null==t?void 0:t.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(0,u.useEffect)((function(){t&&z()}),[t,m.type]);var B=[{title:"序号",dataIndex:"number",width:50,fixed:"left",ellipsis:!0,render:function(e,t,n){return(0,P.jsx)("span",{style:{color:"#000"},children:m.limit*(m.page-1)+n+1})}},{title:"学生姓名",dataIndex:"name",key:"name",ellipsis:!0,render:function(e,t,n){return(0,P.jsx)("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:function(){(0,E.xg)("/classrooms/".concat(l,"/shixun_homework/").concat(s,"/").concat(t.student_work_id,"/comment"))},children:e})}},{title:"学号",dataIndex:"student_id",key:"student_id",ellipsis:!0,render:function(e,t,n){return(0,P.jsx)("span",{style:{color:"#333"},children:e})}},{title:"班级",dataIndex:"group_name",key:"group_name",ellipsis:!0,render:function(e,t,n){return(0,P.jsx)("span",{style:{color:"#333"},children:e})}},{title:"评测次数",dataIndex:"evaluate_count",key:"evaluate_count",ellipsis:!0,render:function(e,t,n){return(0,P.jsx)("span",{style:{color:"#333"},children:e})}},{title:"实训耗时",dataIndex:"time_consuming",key:"time_consuming",ellipsis:!0,render:function(e,t,n){return(0,P.jsx)("span",{style:{color:"#333"},children:e})}},{title:"通关情况",dataIndex:"complete_status",key:"complete_status",ellipsis:!0,render:function(e,t,n){return(0,P.jsx)("span",{children:2==e?"已通关":"未通关"})}}];return(0,P.jsx)(P.Fragment,{children:(0,P.jsxs)(Z.Z,{centered:!0,title:"关卡通关详情",open:t,width:900,footer:null,maskClosable:!1,onCancel:function(){m.keyword="",m.page=1,m.limit=10,m.type=null,v(a()({},m)),n(!1)},children:[(0,P.jsxs)("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"20px"},children:[(0,P.jsxs)("div",{style:{color:"#333",marginRight:"20px",wordBreak:"break-all",textOverflow:"ellipsis",overflow:"hidden",WebkitLineClamp:2,display:"-webkit-box",WebkitBoxOrient:"vertical"},children:["关卡",null==i?void 0:i.index," ",(0,P.jsx)(f.Z,{title:null==i?void 0:i.subject,children:(0,P.jsx)("span",{children:null==i?void 0:i.subject})})]}),(0,P.jsxs)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end"},children:[(0,P.jsx)("div",{children:(0,P.jsxs)(I.default,{size:"large",value:m.type,onChange:function(){var e=r()(o()().mark((function e(t){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:m.type=t,v(a()({},m)),z();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),style:{width:140,marginRight:20},children:[(0,P.jsx)(I.default.Option,{value:null,children:"全部"}),(0,P.jsx)(I.default.Option,{value:1,children:"未通关"}),(0,P.jsx)(I.default.Option,{value:2,children:"已通关"})]})}),(0,P.jsx)("div",{children:(0,P.jsx)(O.t7,{style:{width:220},placeholder:"请输入姓名/学号搜索",value:m.keyword,onChange:function(e){m.keyword=e,m.page=1,v(a()({},m)),z()}})})]})]}),(0,P.jsx)(h.Z,{scroll:{y:380},columns:B,loading:w,dataSource:g.users,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],pageSize:m.limit,current:m.page,position:["bottomRight"],onChange:function(e,t){m.page=e,m.limit=t,v(a()({},m)),z()},total:null==g?void 0:g.count,showTotal:function(e,t){return(0,P.jsxs)("span",{children:["共",(0,P.jsxs)("span",{style:{color:"#165DFF"},children:[" ",e," "]}),"条数据"]})}}})]})})})),L=n(58499),B=function(e){var t=e.title,n=e.strokeColor,i=e.trailColor,o=e.percent,l=e.count;return(0,P.jsxs)("div",{className:y,children:[(0,P.jsx)("div",{className:b,children:t}),(0,P.jsx)(p.Z,{percent:o,strokeColor:n,trailColor:i}),(0,P.jsxs)("div",{className:w,children:[l,"人"]})]})},T=function(e,t){var n="".concat((t/e*100).toFixed(1));return"0.0"===n?0:n},M=function(){var e=(0,u.useState)(),t=d()(e,2),n=t[0],i=t[1],l=(0,N.useParams)(),s=(0,u.useState)(!1),c=d()(s,2),p=c[0],y=c[1],b=(0,u.useState)(),w=d()(b,2),Z=w[0],I=w[1],O=(0,u.useState)(),M=d()(O,2),D=M[0],R=M[1],F=(0,u.useState)(!1),A=d()(F,2),Q=A[0],V=A[1],W=(0,u.useState)({page:1,limit:10}),$=d()(W,2),U=$[0],q=$[1];(0,u.useEffect)((function(){(0,k.ZP)("/api/homework_commons/".concat(l.categoryId,"/statistic.json"),{method:"GET"}).then((function(e){i(e)})),Y()}),[]);var G=[{title:"按时通关",color:"#00AE87",trailColor:"#e5f6f3",percent:T(null==n?void 0:n.total_count,null==n?void 0:n.finished_count),count:null==n?void 0:n.finished_count},{title:"补交通关",color:"#2271FF",trailColor:"#e7f0ff",percent:T(null==n?void 0:n.total_count,null==n?void 0:n.late_finished_count),count:null==n?void 0:n.late_finished_count},{title:"未通关",color:"#E53333",trailColor:"#fceaea",percent:T(null==n?void 0:n.total_count,null==n?void 0:n.unfinished_count),count:null==n?void 0:n.unfinished_count},{title:"未开启",color:"#C6CED6",trailColor:"#f6f7f8",percent:T(null==n?void 0:n.total_count,null==n?void 0:n.unstart_count),count:null==n?void 0:n.unstart_count}],H=[{title:"序号",dataIndex:"number",width:80,fixed:"left",ellipsis:!0,render:function(e,t,n){return(0,P.jsx)("span",{style:{color:"#333"},children:U.limit*(U.page-1)+n+1})}},{title:"任务名称",dataIndex:"subject",key:"subject",ellipsis:!0,render:function(e,t,n){return(0,P.jsx)("span",{style:{color:"#000"},children:e})}},{title:"已通关",width:120,dataIndex:"completed_sum",key:"completed_sum",ellipsis:!0,render:function(e,t,n){return(0,P.jsxs)("span",{style:{color:"#333"},children:[e," 人"]})}},{title:"未通关",width:120,dataIndex:"uncompleted_sum",key:"uncompleted_sum",ellipsis:!0,render:function(e,t,n){return(0,P.jsxs)("span",{style:{color:"#333"},children:[e," 人"]})}},{title:"总评测次数",width:120,dataIndex:"evaluation_total",key:"evaluation_total",ellipsis:!0,render:function(e,t,n){return(0,P.jsxs)("span",{style:{color:"#333"},children:[e," 次"]})}},{title:(0,P.jsxs)("span",{children:["通关率",(0,P.jsx)(f.Z,{title:"通关率=通过评测的人数/作业发布人数",children:(0,P.jsx)("span",{className:C,children:(0,P.jsx)("i",{className:"iconfont icon-a-wenhaobeifen2"})})})]}),dataIndex:"passed_rate",key:"passed_rate",width:120,ellipsis:!0,render:function(e,t,n){return(0,P.jsxs)("span",{style:{color:"#000"},children:[e,e?"%":""]})}},{title:"操作",dataIndex:"action",key:"action",align:"right",ellipsis:!0,width:100,render:function(e,t,n){return(0,P.jsx)("a",{style:{color:"#165DFF"},onClick:function(e){e.stopPropagation(),R(a()(a()({},t),{},{index:U.limit*(U.page-1)+n+1})),V(!0)},children:"查看"})}}];function Y(){return J.apply(this,arguments)}function J(){return(J=r()(o()().mark((function e(){var t;return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return y(!0),e.next=3,(0,k.ZP)("/api/homework_commons/".concat(l.categoryId,"/shixun_challenge_statisic.json"),{method:"get",params:{page:U.page,limit:U.limit}});case 3:t=e.sent,y(!1),0===t.status&&I(null==t?void 0:t.data);case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}return(0,P.jsxs)("div",{className:x,children:[(0,P.jsx)("div",{className:"".concat(_," mb20"),children:"作业完成情况"}),(0,P.jsxs)("div",{className:"mb20",children:["应提交",null==n?void 0:n.total_count,"人,按时通关",null==n?void 0:n.finished_count,"人,占比",T(null==n?void 0:n.total_count,null==n?void 0:n.finished_count),"; 补交通关",null==n?void 0:n.late_finished_count,"人,占比",T(null==n?void 0:n.total_count,null==n?void 0:n.late_finished_count),"; 未通关",null==n?void 0:n.unfinished_count,"人,占比",T(null==n?void 0:n.total_count,null==n?void 0:n.unfinished_count),"; 未开启",null==n?void 0:n.unstart_count,"人,占比",T(null==n?void 0:n.total_count,null==n?void 0:n.unstart_count)]}),(0,P.jsx)(m.Z,{justify:"space-between",className:"mb30",children:G.map((function(e){return(0,P.jsx)(v.Z,{flex:"212px",children:(0,P.jsx)(B,{title:e.title,strokeColor:e.color,trailColor:e.trailColor,percent:parseInt(e.percent),count:e.count})},e.title)}))}),(0,P.jsxs)("div",{className:"".concat(_," mb20"),children:[(0,P.jsx)("div",{children:"通关情况"}),(0,P.jsx)("div",{style:{flex:1,display:"flex",alignItems:"center",justifyContent:"flex-end"},children:(0,P.jsx)(L.Z,{type:"primary",onClick:r()(o()().mark((function e(){return o()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,k.ZP)("/api/homework_commons/".concat(null==l?void 0:l.categoryId,"/export_challenge_statistic.json"),{method:"get"});case 2:0==e.sent.status&&(0,E.xg)("/classrooms/".concat(null==l?void 0:l.coursesId,"/exportlist/shixun_work_list"));case 4:case"end":return e.stop()}}),e)}))),children:"导出通关情况"})})]}),(0,P.jsx)(h.Z,{scroll:{y:490},columns:H,loading:p,className:(null==Z?void 0:Z.count)<U.limit?"mb30":"mb15",dataSource:null==Z?void 0:Z.challenges,pagination:{size:"default",showQuickJumper:!0,showSizeChanger:!0,pageSizeOptions:["10","15","50","100","200"],hideOnSinglePage:!0,pageSize:U.limit,current:U.page,position:["bottomRight"],onChange:function(e,t){U.page=e,U.limit=t,q(a()({},U)),Y()},total:null==Z?void 0:Z.count,showTotal:function(e,t){return(0,P.jsxs)("span",{children:["共",(0,P.jsxs)("span",{style:{color:"#165DFF"},children:[" ",e," "]}),"条数据"]})}}}),(0,P.jsx)("div",{className:"".concat(_," mb20"),children:"代码查重情况"}),(0,P.jsxs)("div",{className:"mb20",children:["疑似抄袭人数",null==n?void 0:n.review_total_count,"人,代码重合100%人数",null==n?void 0:n.first_review_count,"人;代码重合90%~100%人数",null==n?void 0:n.second_review_count,"人;代码重合80%~90%人数",null==n?void 0:n.third_review_count,"人;代码重合70%~80%人数",null==n?void 0:n.fourth_review_count,"人。"]}),(0,P.jsx)(h.Z,{bordered:!0,className:"".concat(g," mb30"),columns:[{title:"代码重合率",align:"center",className:j,render:function(){return(0,P.jsx)("span",{children:"占比"})}},{title:"100%",align:"center",dataIndex:"a"},{title:"90%-100%",align:"center",dataIndex:"b"},{title:"80%-90%",align:"center",dataIndex:"c"},{title:"70%-80%",align:"center",dataIndex:"d"}],dataSource:[{a:"".concat(null==n?void 0:n.first_review_count,"人"),b:"".concat(null==n?void 0:n.second_review_count,"人"),c:"".concat(null==n?void 0:n.third_review_count,"人"),d:"".concat(null==n?void 0:n.fourth_review_count,"人"),index:0}],rowKey:"index",pagination:!1}),(0,P.jsx)(S.ZP,{title:"实训行为分析统计",data:(0,S.Uf)(n)}),(0,P.jsx)(z,{courseId:l.coursesId,item:D,isShow:Q,setIsShow:V,categoryId:l.categoryId})]})}},9781:function(e,t,n){n.r(t),n.d(t,{default:function(){return y}});var i=n(82242),o=n.n(i),l=n(79800),r=n.n(l),s=n(59301),a=n(6457),c=n(7880),d=n(38854),u=n(6848),p=n(99313),f=n(14491),m=n(95237),v=n(43604),h=n(11407),x=n(92339),_=n(82719),g={flex_box_center:"flex_box_center___Ox04Y",flex_space_between:"flex_space_between___C6xrA",flex_box_vertical_center:"flex_box_vertical_center___ND_1v",flex_box_center_end:"flex_box_center_end___YRYaf",flex_box_column:"flex_box_column___DUfSG",title:"title___kEuJZ",infoWrp:"infoWrp___y79ks",warp_task_hide:"warp_task_hide___MGcfK",task_hide:"task_hide___Qc3Yt",itemTitle:"itemTitle___LCCYr",linkBtn:"linkBtn___LrTBL"},j=n(37712),y=(0,c.connect)((function(e){var t=e.video,n=e.loading,i=e.globalSetting,o=e.classroomList;return{video:t,globalSetting:i,loading:n.effects,classroomList:o}}))((function(e){var t=e.video,n=(e.globalSetting,e.loading),i=e.classroomList,l=e.dispatch,y=(0,s.useState)(o()({},(0,c.useParams)())),b=r()(y,2),w=b[0],C=b[1],k=(0,c.useSearchParams)(),N=r()(k,1)[0],S=(0,s.useState)({}),Z=r()(S,2),I=Z[0],O=Z[1],E=i.allCourseGroups,P=t.newVideoStatisticsList,z=[{type:"",name:"全部"},{type:"finished",name:"已看完"},{type:"unfinished",name:"未看完"},{type:"unopened",name:"未观看"}],L=(0,s.useState)(""),B=r()(L,2),T=B[0],M=B[1],D=(0,s.useState)(""),R=r()(D,2),F=R[0],A=R[1];w.category=N.get("category_id"),(0,s.useEffect)((function(){l({type:"video/getNewVideoStatisticsList",payload:o()({},w)}),l({type:"classroomList/getAllCourseGroup",payload:o()({},w)})}),[w.coursesId]);var Q=[{title:"序号",dataIndex:"name",render:function(e,t,n){return 20*((w.page||1)-1)+n+1}},{title:"用户",dataIndex:"user_name"},{title:"是否看完",dataIndex:"is_finished",render:function(e){return e?(0,j.jsx)("span",{className:"c-green",children:"是"}):(0,j.jsx)("span",{className:"c-red",children:"否"})}},{title:"观看次数",dataIndex:"feq",sortOrder:I.feq,sortDirections:["descend","ascend"],sorter:function(e,t){return e.feq-t.feq},render:function(e){return e||"--"}},{title:"观看时长",dataIndex:"total_duration",sortOrder:I.total_duration,sortDirections:["descend","ascend"],sorter:function(e,t){return e.total_duration-t.total_duration},render:function(e){return(0,j.jsx)("span",{children:e?(0,a.li)(e):"--"})}},{title:"最早观看时间",dataIndex:"start_at",render:function(e,t){return(0,j.jsx)("span",{children:e||"--"})}},{title:"最晚观看时间",dataInex:"end_at",render:function(e,t){return(0,j.jsx)("span",{children:t.end_at||"--"})}},{title:"操作",align:"center",render:function(e,t){return(null==t?void 0:t.feq)>0?(0,j.jsx)("span",{className:g.linkBtn,onClick:function(){return c.history.push("/classrooms/".concat(w.coursesId,"/video/").concat(w.categoryId,"/statistics/").concat(w.videoId,"/").concat(t.user_id))},children:"查看"}):(0,j.jsx)("span",{children:"--"})}}];return(0,j.jsx)("section",{className:g.bg,children:(0,j.jsxs)("aside",{className:g.infoWrp,children:[(0,j.jsxs)("div",{style:{display:"flex"},children:[(0,j.jsxs)("div",{style:{flex:"1"},children:[(0,j.jsx)(h.Z,{className:"current mr10 font16",onClick:function(){return c.history.back()}}),(0,j.jsx)("strong",{className:"font16",children:N.get("title")})]}),(0,j.jsx)(d.Z,{placement:"bottomCenter",dropdownRender:function(){return(0,j.jsx)("div",{style:{background:"#fff",padding:"0px 10px",cursor:"pointer",width:"100px",textAlign:"center"},children:null==z?void 0:z.map((function(e){return(0,j.jsx)("p",{className:g.task_hide,style:{color:T===e.type?"#0152d9":"initial"},onClick:function(){M(e.type),w.page=1,C(o()({},w)),l({type:"video/getNewVideoStatisticsList",payload:o()(o()({},w),{},{status:e.type,group_id:F})})},children:e.name})}))})},arrow:!0,children:(0,j.jsx)("span",{style:{marginRight:"40px",cursor:"default"},children:"观看状态"})}),(0,j.jsx)(d.Z,{placement:"bottomCenter",dropdownRender:function(){var e;return(0,j.jsx)("div",{className:g.warp_task_hide,children:null===(e=[{id:"",name:"全部"},{id:0,name:"未分班"}].concat((null==E?void 0:E.course_groups)||[]))||void 0===e?void 0:e.map((function(e,t){return(0,j.jsx)(u.Z,{title:e.name,children:(0,j.jsx)("p",{className:g.task_hide,style:{color:F===e.id?"#0152d9":"initial"},onClick:function(){A(e.id),w.page=1,C(o()({},w)),l({type:"video/getNewVideoStatisticsList",payload:o()(o()({},w),{},{group_id:e.id,status:T})})},children:e.name})})}))})},arrow:!0,children:(0,j.jsx)("span",{style:{cursor:"default"},children:"分班"})})]}),(0,j.jsx)(p.Z,{items:[{label:"视频观看情况",key:"1",children:(0,j.jsx)(f.Z,{loading:n["video/getNewVideoStatisticsList"],hideOnSinglePage:!0,pagination:{showSizeChanger:!1,onChange:function(e){w.page=e,l({type:"video/getNewVideoStatisticsList",payload:o()(o()({},w),{},{status:T,group_id:F,page:e})})},current:w.page||1,defaultPageSize:20,hideOnSinglePage:!0,total:null==P?void 0:P.count},dataSource:(null==P?void 0:P.data)||[],columns:Q,onChange:function(e,t,n){I={},void 0===n.order?w.order="":(w.order=n.field+"-"+n.order.replace("end",""),I[n.field]=n.order),O(o()({},I)),l({type:"video/getNewVideoStatisticsList",payload:o()(o()({},w),{},{status:T,group_id:F})})}})},{label:"视频观看统计分析",key:"2",children:(0,j.jsxs)("div",{children:[(0,j.jsx)("div",{className:"".concat(g.itemTitle," mb20"),children:"观看状态统计"}),(0,j.jsx)(m.Z,{justify:"space-between",className:"mb30",children:[{title:"已看完",color:"#00AE87",trailColor:"#e5f6f3",percent:(0,x.Q_)(null==P?void 0:P.count,null==P?void 0:P.finished_count),count:null==P?void 0:P.finished_count},{title:"未看完",color:"#2271FF",trailColor:"#e7f0ff",percent:(0,x.Q_)(null==P?void 0:P.count,null==P?void 0:P.no_look_finished_count),count:null==P?void 0:P.no_look_finished_count},{title:"未观看",color:"#C6CED6",trailColor:"#f6f7f8",percent:(0,x.Q_)(null==P?void 0:P.count,null==P?void 0:P.no_look_count),count:null==P?void 0:P.no_look_count}].map((function(e){return(0,j.jsx)(v.Z,{flex:"280px",children:(0,j.jsx)(x.mU,{title:e.title,strokeColor:e.color,trailColor:e.trailColor,percent:e.percent,count:e.count})},e.title)}))}),(null==P?void 0:P.action_analysis)&&(0,j.jsx)(_.ZP,{title:"学习行为分析统计",data:(0,_.Uf)(P)})]})}]})]})})}))},98135:function(e,t,n){n.d(t,{Z:function(){return z}});var i=n(92310),o=n.n(i),l=n(59301),r=n(36355),s=n(32441),a=n(9937);var c=e=>{const{getPrefixCls:t,direction:n}=(0,l.useContext)(r.E_),{prefixCls:i,className:c}=e,d=t("input-group",i),u=t("input"),[p,f]=(0,a.ZP)(u),m=o()(d,{[`${d}-lg`]:"large"===e.size,[`${d}-sm`]:"small"===e.size,[`${d}-compact`]:e.compact,[`${d}-rtl`]:"rtl"===n},f,c),v=(0,l.useContext)(s.aM),h=(0,l.useMemo)((()=>Object.assign(Object.assign({},v),{isFormItemInput:!1})),[v]);return p(l.createElement("span",{className:m,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},l.createElement(s.aM.Provider,{value:h},e.children)))},d=n(9432),u=n(1565),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},f=n(68475),m=function(e,t){return l.createElement(f.Z,(0,u.Z)({},e,{ref:t,icon:p}))};var v=l.forwardRef(m),h=n(89136),x=n(70521),_=n(16863),g=n(59412),j=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};const y=e=>e?l.createElement(h.Z,null):l.createElement(v,null),b={click:"onClick",hover:"onMouseOver"};var w=l.forwardRef(((e,t)=>{const{visibilityToggle:n=!0}=e,i="object"==typeof n&&void 0!==n.visible,[s,a]=(0,l.useState)((()=>!!i&&n.visible)),c=(0,l.useRef)(null);l.useEffect((()=>{i&&a(n.visible)}),[i,n]);const u=(0,g.Z)(c),p=()=>{const{disabled:t}=e;t||(s&&u(),a((e=>{var t;const i=!e;return"object"==typeof n&&(null===(t=n.onVisibleChange)||void 0===t||t.call(n,i)),i})))},{className:f,prefixCls:m,inputPrefixCls:v,size:h}=e,w=j(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:C}=l.useContext(r.E_),k=C("input",v),N=C("input-password",m),S=n&&(t=>{const{action:n="click",iconRender:i=y}=e,o=b[n]||"",r=i(s),a={[o]:p,className:`${t}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return l.cloneElement(l.isValidElement(r)?r:l.createElement("span",null,r),a)})(N),Z=o()(N,f,{[`${N}-${h}`]:!!h}),I=Object.assign(Object.assign({},(0,x.Z)(w,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:Z,prefixCls:k,suffix:S});return h&&(I.size=h),l.createElement(d.Z,Object.assign({ref:(0,_.sQ)(t,c)},I))})),C=n(11013),k=n(92343),N=n(3113),S=n(19716),Z=n(33234),I=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n};var O=l.forwardRef(((e,t)=>{const{prefixCls:n,inputPrefixCls:i,className:s,size:a,suffix:c,enterButton:u=!1,addonAfter:p,loading:f,disabled:m,onSearch:v,onChange:h,onCompositionStart:x,onCompositionEnd:g}=e,j=I(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:y,direction:b}=l.useContext(r.E_),w=l.useRef(!1),O=y("input-search",n),E=y("input",i),{compactSize:P}=(0,Z.ri)(O,b),z=(0,S.Z)((e=>{var t;return null!==(t=null!=a?a:P)&&void 0!==t?t:e})),L=l.useRef(null),B=e=>{var t;document.activeElement===(null===(t=L.current)||void 0===t?void 0:t.input)&&e.preventDefault()},T=e=>{var t,n;v&&v(null===(n=null===(t=L.current)||void 0===t?void 0:t.input)||void 0===n?void 0:n.value,e,{source:"input"})},M="boolean"==typeof u?l.createElement(C.Z,null):null,D=`${O}-button`;let R;const F=u||{},A=F.type&&!0===F.type.__ANT_BUTTON;R=A||"button"===F.type?(0,k.Tm)(F,Object.assign({onMouseDown:B,onClick:e=>{var t,n;null===(n=null===(t=null==F?void 0:F.props)||void 0===t?void 0:t.onClick)||void 0===n||n.call(t,e),T(e)},key:"enterButton"},A?{className:D,size:z}:{})):l.createElement(N.ZP,{className:D,type:u?"primary":void 0,size:z,disabled:m,key:"enterButton",onMouseDown:B,onClick:T,loading:f,icon:M},u),p&&(R=[R,(0,k.Tm)(p,{key:"addonAfter"})]);const Q=o()(O,{[`${O}-rtl`]:"rtl"===b,[`${O}-${z}`]:!!z,[`${O}-with-button`]:!!u},s);return l.createElement(d.Z,Object.assign({ref:(0,_.sQ)(L,t),onPressEnter:e=>{w.current||f||T(e)}},j,{size:z,onCompositionStart:e=>{w.current=!0,null==x||x(e)},onCompositionEnd:e=>{w.current=!1,null==g||g(e)},prefixCls:E,addonAfter:R,suffix:c,onChange:e=>{e&&e.target&&"click"===e.type&&v&&v(e.target.value,e,{source:"clear"}),h&&h(e)},className:Q,disabled:m}))})),E=n(1643);const P=d.Z;P.Group=c,P.Search=O,P.TextArea=E.Z,P.Password=w;var z=P}}]); |