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__Classrooms__Lists__Stati...

1 line
6.3 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[69922],{1526:function(t,e,n){n.r(e);var i=n(7557),r=n.n(i),a=n(41498),o=n.n(a),l=n(79800),d=n.n(l),s=n(59301),c=n(28103),u=n(1710),h=n(58421),g=n(58181),f=n(72226),p=n(31215),b=n(20731),m=n(13032),x=n(33853),v=n(37712);e.default=(0,m.connect)((function(t){return{user:t.user}}))((function(t){t.user,t.dispatch;var e=(0,m.useParams)(),n=(0,s.useState)(),i=d()(n,2),a=i[0],l=i[1],$=(0,s.useState)(),w=d()($,2),y=w[0],k=w[1];function S(t){return j.apply(this,arguments)}function j(){return(j=o()(r()().mark((function t(n){var i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return k(n),t.next=3,(0,g.ZP)("/api/courses/".concat(null==e?void 0:e.coursesId,"/video_study_detail.json"),{method:"get",params:{page:n,per_page:10,course_id:null==e?void 0:e.coursesId,uid:null==e?void 0:e.studentid}});case 3:(i=t.sent)&&l(i);case 5:case"end":return t.stop()}}),t)})))).apply(this,arguments)}(0,s.useEffect)((function(){S(1)}),[]);var z=[{title:"视频名称",dataIndex:"title",width:80,align:"center",render:function(t,e,n){return(0,v.jsx)("span",{children:t})}},{title:"观看时长",width:120,align:"center",dataIndex:"total_duration",render:function(t){return(0,v.jsx)("span",{className:"c-black",children:(0,b.li)(parseInt(t))||"--"})}},{title:"学习进度",width:130,align:"center",dataIndex:"rate",render:function(t){return(0,v.jsx)("span",{className:"c-black",children:t?t+"%":"0%"})}},{title:"开始学习时间",width:140,align:"center",dataIndex:"start_at",render:function(t,e){return(0,v.jsx)("span",{className:"c-black",children:t||"--"})}},{title:"最后学习时间",width:150,align:"center",dataIndex:"end_at",render:function(t,e){return(0,v.jsx)("span",{className:"c-black",children:t||"--"})}}].filter((function(t){return!!t}));return(0,v.jsxs)("div",{className:p.Z.divback,children:[(0,v.jsxs)("div",{className:p.Z.title,children:[(0,v.jsx)(x.Z,{style:{cursor:"pointer"},onClick:function(){history.back()}})," ",null==a?void 0:a.user_name,"的视频学习情况"]}),(0,v.jsx)(c.Z,{className:p.Z.divstyle}),0===(null==a?void 0:a.count)&&(0,v.jsx)(f.Z,{}),(null==a?void 0:a.count)>0&&(0,v.jsx)(u.Z,{dataSource:null==a?void 0:a.student,pagination:!1,columns:z}),(0,v.jsx)("aside",{className:"tc mb50 mt30 mb20",children:(0,v.jsx)(h.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(t,e){S(t)},current:y||1,defaultPageSize:10,total:null==a?void 0:a.count})})]})}))},31215:function(t,e){e.Z={divback:"divback___ntOaK",title:"title___YscwY",divstyle:"divstyle___ZqCpS",studentListTable:"studentListTable___Ft0kg"}},28103:function(t,e,n){n.d(e,{Z:function(){return g}});var i=n(92310),r=n.n(i),a=n(59301),o=n(36355),l=n(17313),d=n(83116),s=n(37613);const c=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:a,orientationMargin:o,verticalMarginInline:d}=t;return{[e]:Object.assign(Object.assign({},(0,l.Wf)(t)),{borderBlockStart:`${r}px solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:d,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${r}px solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${t.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${t.dividerHorizontalWithTextGutterMargin}px 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${r}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-left`]:{"&::before":{width:100*o+"%"},"&::after":{width:100-100*o+"%"}},[`&-horizontal${e}-with-text-right`]:{"&::before":{width:100-100*o+"%"},"&::after":{width:100*o+"%"}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:a},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${r}px 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-left${e}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${e}-with-text-right${e}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,d.Z)("Divider",(t=>{const e=(0,s.TS)(t,{dividerHorizontalWithTextGutterMargin:t.margin,dividerHorizontalGutterMargin:t.marginLG,sizePaddingEdgeHorizontal:0});return[c(e)]}),(t=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:t.marginXS}))),h=function(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n};var g=t=>{const{getPrefixCls:e,direction:n,divider:i}=a.useContext(o.E_),{prefixCls:l,type:d="horizontal",orientation:s="center",orientationMargin:c,className:g,rootClassName:f,children:p,dashed:b,plain:m,style:x}=t,v=h(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),$=e("divider",l),[w,y]=u($),k=s.length>0?`-${s}`:s,S=!!p,j="left"===s&&null!=c,z="right"===s&&null!=c,I=r()($,null==i?void 0:i.className,y,`${$}-${d}`,{[`${$}-with-text`]:S,[`${$}-with-text${k}`]:S,[`${$}-dashed`]:!!b,[`${$}-plain`]:!!m,[`${$}-rtl`]:"rtl"===n,[`${$}-no-default-orientation-margin-left`]:j,[`${$}-no-default-orientation-margin-right`]:z},g,f),_=a.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),O=Object.assign(Object.assign({},j&&{marginLeft:_}),z&&{marginRight:_});return w(a.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},null==i?void 0:i.style),x)},v,{role:"separator"}),p&&"vertical"!==d&&a.createElement("span",{className:`${$}-inner-text`,style:O},p)))}}}]);