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.
1 line
24 KiB
1 line
24 KiB
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[48689],{80045:function(e,t,n){n.d(t,{Z:function(){return o}});var a=n(38329),i=n(59301),l={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},r=n(91851),s=function(e,t){return i.createElement(r.Z,(0,a.Z)({},e,{ref:t,icon:l}))};var o=i.forwardRef(s)},57732:function(e,t,n){var a=n(26801),i=n.n(a),l=(n(59301),n(93314)),r=n(3113),s=n(37712);t.Z=function(e){var t=e.img,n=e.buttonProps,a=void 0===n?{}:n,o=e.styles,d=void 0===o?{}:o,c=e.customText,u=e.ButtonText,p=e.ButtonClick,f=e.Buttonclass,h=e.ButtonTwo,g=e.imgStyles,m=e.loading,v=void 0!==m&&m;return(0,s.jsxs)("section",{className:"tc animated fadeIn",style:i()(i()({},{color:"#999",margin:"100px auto",visibility:v?"hidden":"visible"}),d),children:[(0,s.jsx)("img",{src:t||l,style:i()({},g)}),(0,s.jsx)("p",{className:"mt20 font14",children:c||"暂时还没有相关数据哦!"}),u&&(0,s.jsx)(r.ZP,i()(i()({className:f,onClick:p},a),{},{children:u})),h&&h]})}},9699:function(e,t,n){n.r(t),n.d(t,{default:function(){return K}});var a=n(26801),i=n.n(a),l=n(11006),r=n.n(l),s=n(59301),o=n(9498),d=n.n(o),c=n(22211),u=n(52409),p=n(95237),f=n(43604),h=n(20834),g=n(71418),m=n(42441),v="bg___MufvV",x="containerTitle___WTmxf",_="menus___OTYkk",b=n(57732),j=n(10574),y=n.n(j),k=n(39343),w=n.n(k),S=n(93923),I=n.n(S),N=n(57809),Z=n(3113),P=n(28103),z=n(72315),C=n(41867),$=n(15830),T=n(86379),L=n(85578),O=n(214),F=n(37712);var E=(0,c.connect)((function(e){return{user:e.user,teachers:e.teachers}}))((function(e){e.user;var t=e.dispatch,n=e.teachers,a=(0,c.useParams)(),i=(0,s.useState)(),l=r()(i,2),o=l[0],d=l[1],u=(0,s.useState)(),p=r()(u,2),f=p[0],h=p[1],g=(0,s.useState)(-1),m=r()(g,2),v=m[0],x=m[1];(0,s.useEffect)((function(){j(1,-1),t({type:"teachers/getAllCourseGroups",payload:{coursesId:null==a?void 0:a.coursesId,id:null==a?void 0:a.coursesId,page:1,limit:2e3}})}),[]);var _=(0,s.useMemo)((function(){var e,t=(n||{}).allCourseGroups,a=(null==t||null===(e=t.course_groups)||void 0===e?void 0:e.map((function(e){return{label:null==e?void 0:e.name,value:null==e?void 0:e.id}})))||[];return[{label:"全部",value:-1},{label:"未分班",value:0}].concat(I()(a))}),[n]);function j(e){return k.apply(this,arguments)}function k(){return k=w()(y()().mark((function e(t){var n,i,l=arguments;return y()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>1&&void 0!==l[1]?l[1]:-1,h(t),e.next=4,(0,$.ZP)("/api/courses/".concat(null==a?void 0:a.coursesId,"/video_study_statics.json"),{method:"get",params:{page:t,per_page:10,course_id:null==a?void 0:a.coursesId,course_group_id:n}});case 4:(i=e.sent)&&d(i);case 6:case"end":return e.stop()}}),e)}))),k.apply(this,arguments)}var S=[{title:"姓名",dataIndex:"user_name",align:"center",fixed:"left",render:function(e,t,n){return(0,F.jsx)("span",{children:e})}},{title:"学号",dataIndex:"student_id",align:"center"},{title:"学习视频数",align:"center",dataIndex:"num",render:function(e){return(0,F.jsx)("span",{className:"c-black",children:e})}},{title:"班级",align:"center",dataIndex:"course_group_name"},{title:"累计学习时长",align:"center",dataIndex:"total_duration",render:function(e){return(0,F.jsx)("span",{className:"c-black",children:(0,L.li)(parseInt(e))||"--"})}},{title:"平均学习完成度",align:"center",dataIndex:"rate",render:function(e,t){return(0,F.jsx)("span",{className:"c-black",children:e?e+"%":"0%"})}},{title:"开始学习时间",align:"center",dataIndex:"start_at",render:function(e,t){return(0,F.jsx)("span",{className:"c-black",children:e||"--"})}},{title:"最后学习时间",align:"center",dataIndex:"end_at",render:function(e,t){return(0,F.jsx)("span",{className:"c-black",children:e||"--"})}},{title:"操作",align:"center",fixed:"right",dataIndex:"course_group_name",render:function(e,t){return(0,F.jsx)(c.Link,{to:"/classrooms/".concat(null==a?void 0:a.coursesId,"/video_statistics/").concat(null==a?void 0:a.categoryId,"/Student/").concat(null==t?void 0:t.user_id),children:"详情"})}}].filter((function(e){return!!e}));return(0,F.jsxs)("div",{className:T.Z.divback,children:[(0,F.jsxs)("div",{className:T.Z.title,children:[(0,F.jsx)("span",{children:"学生视频学习情况"}),(0,F.jsxs)("div",{children:[(0,F.jsx)(N.default,{options:_,style:{width:120},value:v,onChange:function(e){j(1,e),x(e)}}),(0,F.jsx)(Z.ZP,{onClick:function(){(0,O.o6)({coursesId:null==a?void 0:a.coursesId,course_group_id:v})},children:"导出"})]})]}),(0,F.jsx)(P.Z,{className:T.Z.divstyle}),0===(null==o?void 0:o.count)&&(0,F.jsx)(b.Z,{}),(null==o?void 0:o.count)>0&&(0,F.jsxs)("aside",{className:"pl20 pr20",children:[(0,F.jsx)(z.Z,{dataSource:null==o?void 0:o.student,pagination:!1,columns:S,className:T.Z.studentListTable,scroll:{x:"max-content"}}),(0,F.jsx)("aside",{className:"tc mb50 mt30 mb20",children:(0,F.jsx)(C.Z,{hideOnSinglePage:!0,showSizeChanger:!1,onChange:function(e,t){j(e,v)},current:f||1,defaultPageSize:10,total:null==o?void 0:o.count})})]})]})})),M=n(6848),B=n(80045),D="titlespan____R13n",W="overcount___lL5cq",A="porgress___gDrMg",G="span1___f69rM",H="span2___iQmg1",R="color_20___EpSKJ",V="color_10___nmu4d";d().locale("zh-cn");var Y=(0,c.connect)((function(e){var t=e.classroomList,n=e.loading;return{classroomList:t,globalSetting:e.globalSetting,loading:n,video:e.video}}))((function(e){var t=e.sendToData,n=(e.classroomList,e.globalSetting,e.video,e.loading,e.dispatch,(0,s.useState)(i()(i()({},(0,c.useParams)()),{},{page:1}))),a=r()(n,2),l=a[0],o=(a[1],(0,s.useState)([{name:"未开启",count:"学生未开启率(取教学课堂内所有已截止的课程实验的平均值)",isred:!0,passed:0},{name:"未通关",count:"学生未通关率(取教学课堂内所有已截止的课程实验的平均值)",isred:!0,passed:0},{name:"按时通关",count:"学生按时通关率(取教学课堂内所有已截止的课程实验的平均值)",isred:!0,passed:0},{name:"迟交通关",count:"学生迟交通关率(取教学课堂内所有已截止的课程实验的平均值)",isred:!0,passed:0}])),d=r()(o,2),u=d[0],p=d[1],f=(0,s.useState)({legendData:["优秀","良好","及格","不及格","未开启"],selected:[{"优秀":!1,"良好":!1,"及格":!1,"不及格":!1,"未开启":!1}],seriesData:[{name:"优秀",value:0},{name:"良好",value:0},{name:"及格",value:0},{name:"不及格",value:0},{name:"未开启",value:0}]}),h=r()(f,2),g=h[0],v=h[1],x=(0,s.useState)(),_=r()(x,2),j=_[0],k=_[1],S=(0,s.useState)(),Z=r()(S,2),C=Z[0],T=Z[1],L=(0,s.useRef)();function O(){return(O=w()(y()().mark((function e(){var n,a,r,s;return y()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,$.ZP)("/api/courses/".concat(l.coursesId,"/shixun_homework_statics.json"),{method:"get"});case 2:n=e.sent,t(n),0===(null==n?void 0:n.status)&&(null==u||u.map((function(e){var t,a,i,l,r,s,o,d;switch(null==e?void 0:e.name){case"未开启":e.passed=parseFloat((100*(null==n||null===(t=n.data.overall_info)||void 0===t?void 0:t.unopen)).toPrecision(12)),e.isred=parseFloat((100*(null==n||null===(a=n.data.overall_info)||void 0===a?void 0:a.unopen)).toPrecision(12))>20;break;case"未通关":e.passed=parseFloat((100*(null==n||null===(i=n.data.overall_info)||void 0===i?void 0:i.failed)).toPrecision(12)),e.isred=parseFloat((100*(null==n||null===(l=n.data.overall_info)||void 0===l?void 0:l.failed)).toPrecision(12))>20;break;case"按时通关":e.passed=parseFloat((100*(null==n||null===(r=n.data.overall_info)||void 0===r?void 0:r.passed)).toPrecision(12)),e.isred=parseFloat((100*(null==n||null===(s=n.data.overall_info)||void 0===s?void 0:s.passed)).toPrecision(12))<20;break;case"迟交通关":e.passed=parseFloat((100*(null==n||null===(o=n.data.overall_info)||void 0===o?void 0:o.late)).toPrecision(12)),e.isred=parseFloat((100*(null==n||null===(d=n.data.overall_info)||void 0===d?void 0:d.late)).toPrecision(12))>20}})),p(I()(u)),console.log("titletag",u),k(null==n||null===(a=n.data)||void 0===a?void 0:a.homework_info),T(null==n||null===(r=n.data)||void 0===r?void 0:r.homework_score_info),null==g||null===(s=g.seriesData)||void 0===s||s.map((function(e){var t,a,i,l,r;switch(null==e?void 0:e.name){case"优秀":e.value=parseFloat((100*(null==n||null===(t=n.data.score_info)||void 0===t?void 0:t.excellent_rate)).toPrecision(12)),E("优秀",e.value);break;case"良好":e.value=parseFloat((100*(null==n||null===(a=n.data.score_info)||void 0===a?void 0:a.good_rate)).toPrecision(12)),E("良好",e.value);break;case"及格":e.value=parseFloat((100*(null==n||null===(i=n.data.score_info)||void 0===i?void 0:i.pass_rate)).toPrecision(12)),E("及格",e.value);break;case"不及格":e.value=parseFloat((100*(null==n||null===(l=n.data.score_info)||void 0===l?void 0:l.failed_rate)).toPrecision(12)),E("不及格",e.value);break;case"未开启":e.value=parseFloat((100*(null==n||null===(r=n.data.score_info)||void 0===r?void 0:r.not_submitted_rate)).toPrecision(12)),E("未开启",e.value)}})),v(i()({},g)));case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e,t){var n;null==g||null===(n=g.selected)||void 0===n||n.map((function(n,a){switch(e){case"优秀":n.优秀=t>0;break;case"良好":n.良好=t>0;break;case"及格":n.及格=t>0;break;case"不及格":n.不及格=t>0;break;case"未开启":n.未开启=t>0}}))}(0,s.useEffect)((function(){!function(){O.apply(this,arguments)}()}),[l.categoryId]),console.log("params",l),(0,s.useEffect)((function(){L.current&&L.current.getEchartsInstance().setOption(Y())}),[g]);var Y=function(){return g?{title:{left:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},legend:{type:"scroll",orient:"vertical",right:10,top:20,bottom:20,data:g.legendData,selected:g.selected[0]},color:["#1989FA","#36CBCB","#975FE5","#FCD84A","#FE7777"],series:[{name:"",type:"pie",radius:"55%",center:["40%","50%"],data:g.seriesData,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}:{}},K=[{title:"课程实验名称",dataIndex:"homework_name",align:"center",width:180,render:function(e,t,n){return(0,F.jsx)("span",{style:{color:"#666666"},children:e})}},{title:"关卡数",align:"center",dataIndex:"challenge_count",sorter:function(e,t){return e.challenge_count-t.challenge_count},render:function(e){return(0,F.jsx)("span",{className:"c-black",children:e||0})}},{title:"通关人数",align:"center",dataIndex:"passed_count",sorter:function(e,t){return e.passed_count-t.passed_count},render:function(e){return(0,F.jsx)("span",{className:"c-black",children:e||0})}},{title:"优秀",align:"center",dataIndex:"excellent",sorter:function(e,t){return e.excellent-t.excellent},render:function(e,t){return(0,F.jsx)("span",{className:"c-black",children:e||0})}},{title:"良好",align:"center",dataIndex:"good",sorter:function(e,t){return e.good-t.good},render:function(e,t){return(0,F.jsx)("span",{className:"c-black",children:e||0})}},{title:"及格",align:"center",dataIndex:"pass",sorter:function(e,t){return e.pass-t.pass},render:function(e,t){return(0,F.jsx)("span",{className:"c-black",children:e||0})}},{title:"不及格",align:"center",dataIndex:"failed",sorter:function(e,t){return e.failed-t.failed},render:function(e,t){return(0,F.jsx)("span",{className:"c-black",children:e||0})}},{title:"未开始",align:"center",dataIndex:"not_submitted",sorter:function(e,t){return e.not_submitted-t.not_submitted},render:function(e,t){return(0,F.jsx)("span",{className:"c-black",children:e||0})}}].filter((function(e){return!!e}));return(0,F.jsxs)("div",{children:[(0,F.jsx)("div",{style:{display:"flex",height:"180px",marginTop:"10px",background:"#ffffff"},children:null==u?void 0:u.map((function(e,t){return(0,F.jsxs)("div",{className:D,children:[(0,F.jsxs)("span",{style:{color:e.isred?"red":"#1989FA",fontSize:"34px"},children:[e.passed||0," %"]}),(0,F.jsxs)("p",{style:{marginTop:"30px"},children:[e.name," ",(0,F.jsx)(M.Z,{placement:"bottom",title:e.count,children:(0,F.jsx)(B.Z,{})})]})]})}))}),(0,F.jsxs)("div",{style:{marginTop:"20px",background:"#ffffff",padding:"10px 20px"},children:[(0,F.jsxs)("div",{style:{fontSize:"16px",display:"flex",marginTop:"14px"},children:[(0,F.jsx)("span",{style:{flex:"1"},children:"实训通关率排行"}),"排序:",(0,F.jsxs)(N.default,{style:{width:"100px"},defaultValue:"jack",onChange:function(e){"jack"===e?j.sort((function(e,t){return t.passed-e.passed})):j.sort((function(e,t){return e.passed-t.passed})),k(I()(j))},children:[(0,F.jsx)(N.default.Option,{value:"jack",children:"从高到低"}),(0,F.jsx)(N.default.Option,{value:"lucy",children:"从低到高"})]})]}),(0,F.jsx)(P.Z,{}),(0,F.jsxs)("div",{className:(null==j?void 0:j.length)>10?W:"",children:[(null==j?void 0:j.length)<=0&&(0,F.jsx)(b.Z,{}),null==j?void 0:j.map((function(e,t){return(0,F.jsxs)("div",{className:A,children:[(0,F.jsxs)("span",{className:G,children:[t+1," ",(0,F.jsxs)(c.Link,{to:"/classrooms/".concat(null==l?void 0:l.coursesId,"/shixun_homework/").concat(null==e?void 0:e.homework_id,"/detail?tabs=0"),children:[" ",(0,F.jsx)(M.Z,{title:null==e?void 0:e.homework_name,children:null==e?void 0:e.homework_name})," "]})]}),(0,F.jsxs)("div",{style:{display:"flex"},children:[(0,F.jsx)("span",{className:100*(null==e?void 0:e.passed)>20?R:V,style:{width:"".concat(100*(null==e?void 0:e.passed),"%"),display:"flex",height:"40px"}}),(0,F.jsxs)("span",{className:H,style:{color:100*(null==e?void 0:e.passed)>20?"#1989FA":"#E92216"},children:[parseFloat((100*(null==e?void 0:e.passed)).toPrecision(12))," %"]})]})]})}))]}),(0,F.jsxs)("div",{style:{marginTop:"40px",marginBottom:"20px"},children:[null==j?void 0:j.filter((function(e){return(null==e?void 0:e.passed)<.21})).map((function(e,t){var n;if(!(t>4))return(0,F.jsxs)(c.Link,{to:"/classrooms/".concat(null==l?void 0:l.coursesId,"/shixun_homework/").concat(null==e?void 0:e.homework_id,"/detail?tabs=0"),children:[null==e?void 0:e.homework_name,(null==j||null===(n=j.filter((function(e){return(null==e?void 0:e.passed)<.21})))||void 0===n?void 0:n.length)===t+1?"":t+1===5?"...":"、"]})})),(null==j?void 0:j.filter((function(e){return(null==e?void 0:e.passed)<.21})).length)>0&&"共".concat(null==j?void 0:j.filter((function(e){return(null==e?void 0:e.passed)<.21})).length,"个课程实验学生的通关率低于20%,说明学生对相关知识点掌握比较薄弱。建议要求学生加强相关知识点的练习。")]})]}),(0,F.jsxs)("div",{style:{marginTop:"20px",background:"#ffffff",padding:"10px 20px"},children:[(0,F.jsxs)("span",{style:{fontSize:"16px",marginRight:"20px",display:"flex",marginTop:"14px"},children:["实训成绩分布 ",(0,F.jsx)(M.Z,{placement:"bottom",title:"实训成绩分布(取教学课堂内所有已截止的课程实验的平均值)",children:(0,F.jsx)(B.Z,{style:{marginLeft:"5px",marginTop:"4px"}})})]}),(0,F.jsx)(P.Z,{}),(0,F.jsx)(m.Z,{option:Y(),ref:L,lazyUpdate:!0,notMerge:!0,style:{height:470,width:876},opts:{renderer:"svg"}})]}),(0,F.jsxs)("div",{style:{marginTop:"20px",background:"#ffffff",padding:"10px 20px"},children:[(0,F.jsx)("span",{style:{fontSize:"16px",display:"flex",marginTop:"14px"},children:"实训成绩分布详情 "}),(0,F.jsx)(P.Z,{}),(0,F.jsx)(z.Z,{columns:K,dataSource:C,pagination:{size:"default",hideOnSinglePage:!1,showSizeChanger:!0}})]})]})}));d().locale("zh-cn");var K=(0,c.connect)((function(e){var t=e.classroomList,n=e.loading;return{classroomList:t,globalSetting:e.globalSetting,loading:n,video:e.video}}))((function(e){var t,n,a,l,o=e.classroomList,d=(e.globalSetting,e.video),j=(e.loading,e.dispatch),y=(0,s.useState)(i()(i()({},(0,c.useParams)()),{},{page:1})),k=r()(y,2),w=k[0],S=(k[1],o.detailCourseStatisticsList),I=(o.detailCourseGroupsList,o.detailCourseWorkscore,o.detailCourseActscore,o.detailLeftMenus),N=d.videoPeopleStatics,Z=d.videoDurationStatics,P=u.default.RangePicker,z=(0,s.useState)([]),C=r()(z,2),$=C[0],T=C[1],L=(S.top_scores,(0,s.useState)([])),O=r()(L,2),M=(O[0],O[1],(0,s.useState)("1")),B=r()(M,2),D=(B[0],B[1],(0,s.useState)(!1)),W=r()(D,2),A=(W[0],W[1],(0,s.useState)()),G=r()(A,2),H=(G[0],G[1],(0,s.useState)(!1)),R=r()(H,2),V=(R[0],R[1],(0,s.useState)([])),K=r()(V,2),q=K[0],X=K[1],J=(0,s.useState)(!0),Q=r()(J,2),U=Q[0],ee=Q[1],te=(0,s.useState)("1"),ne=r()(te,2),ae=ne[0],ie=ne[1],le=(0,s.useState)({course_id:w.coursesId}),re=r()(le,2),se=re[0],oe=re[1];w.id=w.coursesId,w.course_group_id=0,w.sort="desc",w.limit=20,I.course_modules&&o.detailLeftMenus.course_modules.filter((function(e){return"board"===e.type}))[0],(0,s.useEffect)((function(){j({type:"video/getVideoDurationStatics",payload:{course_id:w.coursesId}})}),[w.categoryId]),(0,s.useEffect)((function(){ce()}),[se]);var de,ce=function(){j({type:"video/getVideoPeopleStatics",payload:i()({},se)})},ue=function(e){0===(null==e?void 0:e.status)&&0===q.length&&(ee(!1),X([null==e?void 0:e.shixuns_count,null==e?void 0:e.video_count]),null!=e&&e.shixuns_count||null==e||!e.video_count||ie("0"))};return console.log(q,!!q.length,!q.every((function(e){return!e})),444),(0,F.jsxs)("section",{children:[(0,F.jsxs)("aside",{className:v,children:[(0,F.jsx)("div",{className:x,children:(0,F.jsx)("div",{className:"font16",children:"学情分析"})}),!!q.length&&q.some((function(e){return!!e}))&&(0,F.jsxs)(p.Z,{className:_,align:"middle",children:[(0,F.jsx)(f.Z,{flex:"1",children:(0,F.jsx)(h.Z,{className:"blod font16",mode:"horizontal",onClick:function(e){ie(e.key)},style:{margin:"0 18px"},defaultSelectedKeys:["1"],children:[{name:"课程实验",id:"1"},{name:"视频",id:"0"}].map((function(e,t){return q[t]?(0,F.jsx)(h.Z.Item,{className:"font16",style:{padding:"0 0 12px 0 ",margin:"0 15px"},children:e.name},e.id):null}))})}),(0,F.jsx)(f.Z,{flex:"220px"})]})]}),0===q.length||q.every((function(e){return!e}))?(0,F.jsxs)(F.Fragment,{children:[U?(0,F.jsx)(g.Z,{style:{width:"100%",marginTop:150}}):(0,F.jsx)(b.Z,{}),(0,F.jsx)("div",{style:{display:"none"},children:(0,F.jsx)(Y,{sendToData:ue})})]}):(0,F.jsx)(F.Fragment,{children:0===parseInt(ae)?(0,F.jsxs)("div",{children:[(0,F.jsxs)("aside",{className:"c-grey-999 mt20 mb20",children:[(0,F.jsx)("i",{className:"iconfont icon-tishi3 mr3 font20",style:{color:"#0152d9"}}),"视频学习情况仅针对教师上传到本平台的视频,外链视频不在统计范围内。"]}),(0,F.jsxs)("aside",{className:"mt20 bg-white inline-block w100",children:[(0,F.jsxs)(p.Z,{className:"pt30 pl40 pr40",children:[(0,F.jsx)(f.Z,{flex:"1",children:(0,F.jsx)("span",{className:"font18",children:"视频学习人数变化"})}),(0,F.jsx)(f.Z,{children:(0,F.jsx)(P,{allowClear:!0,disabledDate:function(e){if(!$||0===$.length)return!1;var t=$[0]&&e.diff($[0],"days")>30;return $[1]&&$[1].diff(e,"days")>30||t},onCalendarChange:function(e){T(e)},onChange:function(e,t){t[0]?(se.start_at=t[0],se.end_at=t[1]):(delete se.start_at,delete se.end_at),oe(i()({},se))}})})]}),!(null==N||null===(t=N.data)||void 0===t||!t.length)&&(0,F.jsx)(m.Z,{option:null!=N&&N.data?{tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c}人"},xAxis:{type:"category",name:"日期",splitLine:{show:!0},data:null==N?void 0:N.data.map((function(e){return e[0]}))},grid:{left:"3%",right:"8%",bottom:"13%",containLabel:!0},yAxis:{name:"人数",minorTick:{show:!0},minorSplitLine:{show:!0}},series:[{name:"日期",type:"line",smooth:!0,data:null==N?void 0:N.data.map((function(e){return e[1]}))}]}:{},style:{height:470,width:966},opts:{renderer:"svg"}}),!(null!=N&&null!==(n=N.data)&&void 0!==n&&n.length)&&(0,F.jsx)(b.Z,{})]}),(0,F.jsxs)("aside",{className:"mt20 bg-white pr30 inline-block w100",children:[(0,F.jsxs)(p.Z,{className:"pt30 pl40 pr40",children:[(0,F.jsx)(f.Z,{children:(0,F.jsx)("span",{className:"font18",children:"视频学习时长情况"})}),(0,F.jsx)(f.Z,{})]}),!(null!=Z&&null!==(a=Z.data)&&void 0!==a&&a.every((function(e){return 0===e[1]})))&&(0,F.jsx)(m.Z,{option:null!=N&&N.data?{color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"8%",bottom:"3%",containLabel:!0},xAxis:[{name:"学习时长",type:"category",data:["10分钟内","10-30分钟","30分钟-1小时","1小时-2小时","2小时以上"],axisTick:{alignWithLabel:!0}}],yAxis:[{name:"人数",type:"value"}],series:[{name:"人数",type:"bar",barWidth:"60%",data:null==Z||null===(de=Z.data)||void 0===de?void 0:de.map((function(e){return e[1]}))}]}:{},style:{height:470,width:936},opts:{renderer:"svg"}}),(null==Z||null===(l=Z.data)||void 0===l?void 0:l.every((function(e){return 0===e[1]})))&&(0,F.jsx)(b.Z,{})]}),(0,F.jsx)("aside",{className:"mt20",children:(0,F.jsx)(E,{})})]}):(0,F.jsx)(Y,{sendToData:ue})})]})}))},86379:function(e,t){t.Z={divback:"divback___ntOaK",title:"title___YscwY",divstyle:"divstyle___ZqCpS",studentListTable:"studentListTable___Ft0kg"}},28103:function(e,t,n){n.d(t,{Z:function(){return f}});var a=n(73287),i=n.n(a),l=n(59301),r=n(36355),s=n(17313),o=n(83116),d=n(37613);const c=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:a,lineWidth:i,textPaddingInline:l,orientationMargin:r,verticalMarginInline:o}=e;return{[t]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${i}px solid ${a}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:o,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${i}px solid ${a}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${e.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${e.dividerHorizontalWithTextGutterMargin}px 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${a}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${i}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-left`]:{"&::before":{width:100*r+"%"},"&::after":{width:100-100*r+"%"}},[`&-horizontal${t}-with-text-right`]:{"&::before":{width:100-100*r+"%"},"&::after":{width:100*r+"%"}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:a,borderStyle:"dashed",borderWidth:`${i}px 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:i,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}};var u=(0,o.Z)("Divider",(e=>{const t=(0,d.TS)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[c(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}))),p=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(e);i<a.length;i++)t.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(e,a[i])&&(n[a[i]]=e[a[i]])}return n};var f=e=>{const{getPrefixCls:t,direction:n,divider:a}=l.useContext(r.E_),{prefixCls:s,type:o="horizontal",orientation:d="center",orientationMargin:c,className:f,rootClassName:h,children:g,dashed:m,plain:v,style:x}=e,_=p(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),b=t("divider",s),[j,y]=u(b),k=d.length>0?`-${d}`:d,w=!!g,S="left"===d&&null!=c,I="right"===d&&null!=c,N=i()(b,null==a?void 0:a.className,y,`${b}-${o}`,{[`${b}-with-text`]:w,[`${b}-with-text${k}`]:w,[`${b}-dashed`]:!!m,[`${b}-plain`]:!!v,[`${b}-rtl`]:"rtl"===n,[`${b}-no-default-orientation-margin-left`]:S,[`${b}-no-default-orientation-margin-right`]:I},f,h),Z=l.useMemo((()=>"number"==typeof c?c:/^\d+$/.test(c)?Number(c):c),[c]),P=Object.assign(Object.assign({},S&&{marginLeft:Z}),I&&{marginRight:Z});return j(l.createElement("div",Object.assign({className:N,style:Object.assign(Object.assign({},null==a?void 0:a.style),x)},_,{role:"separator"}),g&&"vertical"!==o&&l.createElement("span",{className:`${b}-inner-text`,style:P},g)))}}}]); |