(window.webpackJsonp=window.webpackJsonp||[]).push([[113],{"/Fp4":function(U,O,t){U.exports={flex_box_center:"flex_box_center___HN6MI",flex_space_between:"flex_space_between___3r4Gb",flex_box_vertical_center:"flex_box_vertical_center____a0pw",flex_box_center_end:"flex_box_center_end___q--gl",flex_box_column:"flex_box_column___28zUL",title:"title___2xhIc",statisticsWrp:"statisticsWrp___1thFu",statistics:"statistics___yQFce",infoWrp:"infoWrp___1I5LI",divwidth:"divwidth___1T67H"}},"5vIh":function(U,O,t){"use strict";t.r(O);var z=t("DjyN"),C=t("NUBc"),H=t("g9YV"),I=t("wCAj"),J=t("14J3"),R=t("BMrR"),G=t("jCWc"),c=t("kPKH"),r=t("k1fw"),v=t("tJVT"),m=t("q1tI"),e=t.n(m),g=t("1vsH"),D=t("Ty5D"),S=t("55Ip"),b=t("9kvl"),x=t("5bA4"),L=t("/Fp4"),l=t.n(L),j=function(d){var P=d.video,h=d.globalSetting,A=d.loading,f=d.dispatch,F=Object(m.useState)(Object(r.a)({},Object(D.m)())),y=Object(v.a)(F,2),_=y[0],Q=y[1],T=Object(D.l)(),W=Object(m.useState)({}),M=Object(v.a)(W,2),u=M[0],K=M[1],N=Object(m.useState)(""),B=Object(v.a)(N,2),Y=B[0],V=B[1],p=P.videoStatisticsList,o=P.videoStatistics;_.category=T.query.category_id,Object(m.useEffect)(function(){f({type:"video/getVideoStatisticsList",payload:Object(r.a)({},_)}),f({type:"video/getVideoStatistics",payload:Object(r.a)(Object(r.a)({},_),{},{all:!0})})},[_.coursesId]);var w=[{title:"\u5E8F\u53F7",dataIndex:"name",render:function(a,i,n){return n+1}},{title:"\u89C6\u9891\u540D\u79F0",dataIndex:"title"},{title:"\u89C2\u770B\u4EBA\u6570",dataIndex:"people_num",sortOrder:u.people_num,sortDirections:["descend","ascend"],sorter:function(a,i){return a.people_num-i.people_num},render:function(a){return a||"--"}},{title:"\u89C2\u770B\u65F6\u957F",dataIndex:"total_time",sortOrder:u.total_time,sortDirections:["descend","ascend"],sorter:function(a,i){return a.total_time-i.total_time},render:function(a){return e.a.createElement("span",null,a?Object(g.M)(a):"--")}},{title:"\u53D1\u5E03\u4EBA",dataIndex:"user_name"},{title:"\u64CD\u4F5C",dataInex:"action",render:function(a,i){return e.a.createElement("div",null,e.a.createElement(S.Link,{to:"/classrooms/".concat(_.coursesId,"/video/").concat(_.categoryId,"/statistics/").concat(i.id),className:"c-blue"},"\u8BE6\u60C5"))}}];return e.a.createElement("section",{className:l.a.bg},e.a.createElement("aside",{className:l.a.statisticsWrp},e.a.createElement(R.a,{justify:"space-between",className:"mt10 mb20"},e.a.createElement(c.a,{span:"16"},e.a.createElement(x.a,{className:"current mr10 font16",onClick:function(){return b.c.goBack()}}),e.a.createElement("strong",{className:"font16"},"\u89C6\u9891\u7EDF\u8BA1\u603B\u89C8")),e.a.createElement(c.a,{span:"8",className:"c-light-black tr"},"\u64AD\u653E\u6570\u636E\u4ECE ",o.begin_at," \u5F00\u59CB\u7EDF\u8BA1")),e.a.createElement(R.a,{justify:"space-between",className:l.a.statistics},e.a.createElement(c.a,{span:"7"},e.a.createElement("span",null,"\u89C2\u770B\u4EBA\u6570 \uFF08\u4EBA\uFF09"),e.a.createElement("br",null),e.a.createElement("strong",{title:o.num,className:l.a.divwidth},o.num)),e.a.createElement(c.a,{span:"7"},e.a.createElement("span",null,"\u89C2\u770B\u603B\u4EBA\u6B21 \uFF08\u6B21\uFF09"),e.a.createElement("br",null),e.a.createElement("strong",{title:o.freq,className:l.a.divwidth},o.freq)),e.a.createElement(c.a,{span:"7"},e.a.createElement("span",null,"\u603B\u89C2\u770B\u65F6\u957F \uFF08\u65F6\uFF09"),e.a.createElement("br",null),e.a.createElement("strong",{title:o.total_duration?Object(g.M)(o.total_duration):"--",className:l.a.divwidth},o.total_duration?Object(g.M)(o.total_duration):"--")))),e.a.createElement("aside",{className:l.a.infoWrp},e.a.createElement("div",null,e.a.createElement("strong",{className:"font16"},"\u7EDF\u8BA1\u5217\u8868")),e.a.createElement(I.a,{className:"mt20",loading:A["video/getVideoStatisticsList"],hideOnSinglePage:!0,pagination:!1,dataSource:p.videos,columns:w,onChange:function(a,i,n){if(u={},n.order===void 0){u[n.field]="descend";switch(n.field){case"student_id":V("descend"),_.order=n.field+"-desc";break}}else _.order=n.field+"-"+n.order.replace("end",""),u[n.field]=n.order;K(Object(r.a)({},u)),f({type:"video/getVideoStatisticsList",payload:Object(r.a)({},_)})}})),e.a.createElement("aside",{className:"tc mb50 mt30"},e.a.createElement(C.a,{showSizeChanger:!1,onChange:function(a){_.page=a,f({type:"video/getVideoStatisticsList",payload:Object(r.a)({},_)})},defaultCurrent:1,current:_.page||1,pageSize:20,hideOnSinglePage:!0,total:p==null?void 0:p.count})))};O.default=Object(b.a)(function(E){var d=E.video,P=E.loading,h=E.globalSetting;return{video:d,globalSetting:h,loading:P.effects}})(j)}}]);
