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.9 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[69922],{13261:function(t,e,n){var i=n(82242),r=n.n(i),a=(n(59301),n(19779)),o=n(3113),l=n(37712);e.Z=function(t){var e=t.img,n=t.buttonProps,i=void 0===n?{}:n,s=t.styles,d=void 0===s?{}:s,c=t.customText,u=t.ButtonText,h=t.ButtonClick,g=t.Buttonclass,f=t.ButtonTwo,p=t.imgStyles,m=t.loading,x=void 0!==m&&m;return(0,l.jsxs)("section",{className:"tc animated fadeIn",style:r()(r()({},{color:"#999",margin:"100px auto",visibility:x?"hidden":"visible"}),d),children:[(0,l.jsx)("img",{src:e||a,style:r()({width:288,height:200},p)}),(0,l.jsx)("p",{className:"mt20 font14",children:c||"暂时还没有相关数据哦!"}),u&&(0,l.jsx)(o.ZP,r()(r()({className:g,onClick:h},i),{},{children:u})),f&&f]})}},77624: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),s=n.n(l),d=n(59301),c=n(28103),u=n(61998),h=n(27092),g=n(79311),f=n(13261),p=n(51869),m=n(27627),x=n(65363),b=n(53084),v=n(37712);e.default=(0,x.connect)((function(t){return{user:t.user}}))((function(t){t.user,t.dispatch;var e=(0,x.useParams)(),n=(0,d.useState)(),i=s()(n,2),a=i[0],l=i[1],w=(0,d.useState)(),y=s()(w,2),$=y[0],j=y[1];function k(t){return S.apply(this,arguments)}function S(){return(S=o()(r()().mark((function t(n){var i;return r()().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return j(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,d.useEffect)((function(){k(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,m.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)(b.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){k(t)},current:$||1,defaultPageSize:10,total:null==a?void 0:a.count})})]})}))},51869: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),s=n(83116),d=n(37613);const c=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:n,colorSplit:i,lineWidth:r,textPaddingInline:a,orientationMargin:o,verticalMarginInline:s}=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:s,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,s.Z)("Divider",(t=>{const e=(0,d.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:s="horizontal",orientation:d="center",orientationMargin:c,className:g,rootClassName:f,children:p,dashed:m,plain:x,style:b}=t,v=h(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),w=e("divider",l),[y,$]=u(w),j=d.length>0?`-${d}`:d,k=!!p,S="left"===d&&null!=c,z="right"===d&&null!=c,I=r()(w,null==i?void 0:i.className,$,`${w}-${s}`,{[`${w}-with-text`]:k,[`${w}-with-text${j}`]:k,[`${w}-dashed`]:!!m,[`${w}-plain`]:!!x,[`${w}-rtl`]:"rtl"===n,[`${w}-no-default-orientation-margin-left`]:S,[`${w}-no-default-orientation-margin-right`]:z},g,f),_=a.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),N=Object.assign(Object.assign({},S&&{marginLeft:_}),z&&{marginRight:_});return y(a.createElement("div",Object.assign({className:I,style:Object.assign(Object.assign({},null==i?void 0:i.style),b)},v,{role:"separator"}),p&&"vertical"!==s&&a.createElement("span",{className:`${w}-inner-text`,style:N},p)))}}}]);