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

1 line
33 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[34601],{41046:function(e,n,t){t.r(n),t.d(n,{PathStatisticsStatus:function(){return Fe},default:function(){return Te}});var s=t(17061),i=t.n(s),a=t(17156),l=t.n(a),r=t(27424),o=t.n(r),d=t(70215),c=t.n(d),u=t(67294),h=t(88275),x=t(36182),v=t(71230),p=t(83062),_="bg____jkAB",m="header___PPltR",j="titleWrap___pTIp8",f="title___qTNRH",g="info___qGW_V",y="boxWrap___n5Uc1",b="icon___BdgVN",w="bigTabs___wqKPl",N="active___rYKNJ",S="main___MUCpu",Z="titleItem___qDOI5",C="countcenter___rEj8o",k="tabdiv___ShIOl",I="radiusdiv___GU9SO",A=t(57953),D=t(50976),P=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return{title:{left:"center"},tooltip:{trigger:"item",formatter:"{a} <br/>{b} : {c} ({d}%)"},color:["#0152d9","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0"],series:[{name:"",type:"pie",radius:"55%",center:["40%","50%"],data:e,emphasis:{itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}},L=function(e){var n=e.names,t=void 0===n?[]:n,s=e.values;return{color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{name:"视频\n学习\n时长",type:"category",data:t,axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:"45"}}],yAxis:[{name:"人数",type:"value"}],series:[{name:"人数",type:"bar",barMaxWidth:"10%",barWidth:"20%",label:{show:!0,position:"top"},data:void 0===s?[]:s}]}},E=t(27484),O=t.n(E),F=t(38416),T=t.n(F),W=(t(29427),1),M=2,B=3,K=4,U="YYYY-MM-DD",V=function(e){var n;return(n={},T()(n,W,[O()().subtract(1,"w"),O()()]),T()(n,M,[O()().subtract(1,"M"),O()()]),T()(n,B,[O()().subtract(3,"M"),O()()]),T()(n,K,[O()().subtract(6,"M"),O()()]),n)[e]},R=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=e.map((function(e){return"".concat(e.begin_at,"-").concat(e.end_at,"分钟")})),t=e.map((function(e){return e.user_count}));return{names:n,values:t}},Q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=e.map((function(e){return e.name})),t=e.map((function(e){return e.value}));return{names:n,values:t}},X=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=e.map((function(e){return"".concat(e.num&&e.num[0],"-").concat(e.num&&e.num[1],"次")})),t=e.map((function(e){return e.count}));return{names:n,values:t}},z=t(29533),Y=t(82982),q=t(11475),J=t(85893),H=function(e){var n,t,s,a,r,d,c,x,v,_=e.selectKey,m=e.statisticsData,j=e.form,f=(0,h.useParams)().pathId,g=(0,u.useState)(!1),y=o()(g,2),b=y[0],w=y[1],N=(0,u.useState)({}),S=o()(N,2),E=S[0],F=S[1],T=(0,u.useState)([]),W=o()(T,2),B=W[0],K=W[1],Q=["100%","80%以上","60%以上","40%以上","20%以上","20%以下"],H=["100%","80%","60%","40%","20%","20%"],G=["#0152d9","#13C2C2","#2FC25B","#FACC14","#F04864","#8543E0"];(0,u.useEffect)((function(){_===Fe.Quality&&se()}),[_,j]);var $,ee,ne,te,se=function(){var e=l()(i()().mark((function e(){var n,t,s;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return w(!0),n=V(M),e.next=4,(0,z.ef)({id:f,type:"spoc"===j?"1":"2",start_at:n&&n[0]&&O()(n[0]).format(U),end_at:n&&n[1]&&O()(n[1]).format(U)});case 4:t=e.sent,w(!1),t&&(F(t||{}),s=[],null!=t&&t.passed_distribution_pie&&(null==Q||Q.map((function(e,n){var i={};i.name=(null==t?void 0:t.passed_distribution_pie[n+1])+"人:"+e,i.value=null==t?void 0:t.passed_distribution_pie[n+1],s.push(i)})),K([].concat(s))));case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsxs)(A.Z,{spinning:b,children:[B&&(0,J.jsxs)("div",{className:k,children:[(0,J.jsx)("span",{className:Z,children:"实训通关情况分布图"}),(0,J.jsxs)("div",{className:C,children:[(0,J.jsx)(D.Z,{option:P(B),style:{height:400,width:600},opts:{renderer:"svg"}}),(0,J.jsxs)("div",{children:[(0,J.jsx)("p",{children:"单位:人"}),null==G?void 0:G.map((function(e,n){return(0,J.jsxs)("p",{style:{display:"flex",alignItems:"center"},children:[(0,J.jsx)("div",{className:I,style:{background:e}},n)," ","通关"+H[n],n>0&&n<5?"以上 (含)":5===n?"以下":""]},n)}))]})]})]}),(0,J.jsxs)("div",{className:k,children:[(0,J.jsxs)("span",{className:Z,children:["实训关卡平均评测次数分布图 ",(0,J.jsx)(p.Z,{title:"至少进行一次评测的学生才纳入本图统计",children:(0,J.jsx)(q.Z,{style:{marginLeft:"5px"}})})]}),(0,J.jsx)("div",{className:C,children:null!=E&&null!==(n=E.average_pass_num_bar)&&void 0!==n&&n.columns?(0,J.jsx)(D.Z,{option:($=X(E.average_pass_num_bar&&E.average_pass_num_bar.columns),ee=$.names,ne=void 0===ee?[]:ee,te=$.values,{color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{name:"平均\n评测\n次数",type:"category",data:ne,axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:"45"}}],yAxis:[{name:"人数",type:"value"}],series:[{name:"人数",type:"bar",barWidth:"20%",label:{show:!0,position:"top"},data:void 0===te?[]:te}]}),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})}),(0,J.jsxs)("div",{children:[(0,J.jsx)("p",{style:{display:"flex",justifyContent:"center"},children:"单位:次/关卡"}),(0,J.jsx)("span",{style:{display:"flex",justifyContent:"center",color:"#999999"},children:"本图以学生在实训关卡中的评测次数平均值为统计维度,给出所有学生的平均评测次数分布状态。"}),(0,J.jsxs)("span",{style:{display:"flex",justifyContent:"center",color:"#999999"},children:["当前平均评测次数最小值:",(0,J.jsxs)("span",{style:{color:"#0DAE0A"},children:[E.average_pass_num_bar&&(null===(t=E.average_pass_num_bar)||void 0===t?void 0:t.min),"次"]}),",最大值:",(0,J.jsxs)("span",{style:{color:"#0DAE0A"},children:[E.average_pass_num_bar&&(null===(s=E.average_pass_num_bar)||void 0===s?void 0:s.max),"次"]}),",中位数:",(0,J.jsxs)("span",{style:{color:"#0DAE0A"},children:[E.average_pass_num_bar&&(null===(a=E.average_pass_num_bar)||void 0===a?void 0:a.mid),"次"]})]}),(0,J.jsx)("div",{style:{height:"45px"}})]})]}),null!=m&&m.video_count?(0,J.jsxs)("div",{className:k,children:[(0,J.jsxs)("span",{className:Z,children:["视频学习时长分布图",(0,J.jsx)(p.Z,{title:"至少学习一个视频学生的才纳入本图统计",children:(0,J.jsx)(q.Z,{style:{marginLeft:"5px"}})})]}),(0,J.jsx)("div",{className:C,children:null!=E&&null!==(r=E.study_video_time_bar)&&void 0!==r&&r.user_data?(0,J.jsx)(D.Z,{option:L(R(E.study_video_time_bar&&E.study_video_time_bar.user_data)),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})}),(0,J.jsxs)("div",{style:{display:null!=E&&null!==(d=E.study_video_time_bar)&&void 0!==d&&d.max?"":"none"},children:[(0,J.jsx)("p",{style:{display:"flex",justifyContent:"center"},children:"单位:分/关卡"}),(0,J.jsx)("span",{style:{display:"flex",justifyContent:"center",color:"#999999"},children:"本图以学生在实训关卡中的评测次数平均值为统计维度,给出所有学生的平均评测次数分布状态。"}),(0,J.jsxs)("span",{style:{display:"flex",justifyContent:"center",color:"#999999"},children:["当前平均评测次数最小值:",(0,J.jsxs)("span",{style:{color:"#0DAE0A"},children:[E.study_video_time_bar&&(null===(c=E.study_video_time_bar)||void 0===c?void 0:c.min),"分"]}),",最大值:",(0,J.jsxs)("span",{style:{color:"#0DAE0A"},children:[E.study_video_time_bar&&(null===(x=E.study_video_time_bar)||void 0===x?void 0:x.max),"分"]}),",中位数:",(0,J.jsxs)("span",{style:{color:"#0DAE0A"},children:[E.study_video_time_bar&&(null===(v=E.study_video_time_bar)||void 0===v?void 0:v.mid),"分"]})]}),(0,J.jsx)("div",{style:{height:"45px"}})]})]}):""]})},G=t(45741),$=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return{color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{name:"实训",type:"category",data:e,axisTick:{alignWithLabel:!0},axisLabel:{interval:0,rotate:"45",formatter:function(e){return(null==e?void 0:e.length)>8?e.substr(0,8)+"...":e}}}],yAxis:[{name:t,type:"value"}],series:[{name:t,type:"bar",barWidth:"20%",label:{show:!0,position:"top"},data:n}]}},ee=(G.Z.RangePicker,function(e){var n=e.selectKey,t=(0,u.useState)(!1),s=o()(t,2),a=s[0],r=s[1],d=(0,u.useState)(),c=o()(d,2),h=(c[0],c[1]),x=(0,u.useState)(M),v=o()(x,2),p=v[0],_=(v[1],(0,u.useState)({})),m=o()(_,2),j=m[0],f=m[1],g=(0,u.useState)({}),y=o()(g,2),b=y[0],w=y[1],N=(0,u.useRef)();(0,u.useEffect)((function(){N.current=window.location.pathname.split("/")[2],n===Fe.ShiXunUsetow&&(j.time=V(p),f(j),h(j.time),S(j))}),[n]);var S=function(){var e=l()(i()().mark((function e(n){var t;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r(!0),e.next=3,(0,z.F_)({id:N.current});case 3:t=e.sent,r(!1),t&&w(t||{});case 6:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();return(0,J.jsxs)(A.Z,{spinning:a,children:[(0,J.jsxs)("div",{className:k,children:[(0,J.jsxs)("span",{className:Z,children:["应用课堂数排行榜",(null==b?void 0:b.used_course_num_count)>=10&&"Top10"]}),(0,J.jsx)("div",{className:C,children:null!=b&&b.used_course_num&&(null==b?void 0:b.used_course_num_count)>0?(0,J.jsx)(D.Z,{option:$(Object.keys(null==b?void 0:b.used_course_num),Object.values(null==b?void 0:b.used_course_num),"被应用课堂数"),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})})]}),(0,J.jsxs)("div",{className:k,children:[(0,J.jsxs)("span",{className:Z,children:["被应用单位数排行榜",(null==b?void 0:b.used_school_num_count)>=10&&"Top10"]}),(0,J.jsx)("div",{className:C,children:null!=b&&b.used_school_num&&(null==b?void 0:b.used_school_num_count)>0?(0,J.jsx)(D.Z,{option:$(Object.keys(null==b?void 0:b.used_school_num),Object.values(null==b?void 0:b.used_school_num),"被应用单位数"),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})})]}),(0,J.jsxs)("div",{className:k,children:[(0,J.jsxs)("span",{className:Z,children:["学习人数排行榜",(null==b?void 0:b.used_study_num_count)>=10&&"Top10"]}),(0,J.jsx)("div",{className:C,children:null!=b&&b.used_study_num&&(null==b?void 0:b.used_study_num_count)>0?(0,J.jsx)(D.Z,{option:$(Object.keys(null==b?void 0:b.used_study_num),Object.values(null==b?void 0:b.used_study_num),"学习人数"),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})})]}),(0,J.jsxs)("div",{className:k,children:[(0,J.jsxs)("span",{className:Z,children:["全部关卡通关人数排行榜",(null==b?void 0:b.used_pass_num_count)>=10&&"Top10"]}),(0,J.jsx)("div",{className:C,children:null!=b&&b.used_pass_num&&(null==b?void 0:b.used_pass_num_count)>0?(0,J.jsx)(D.Z,{option:$(Object.keys(null==b?void 0:b.used_pass_num),Object.values(null==b?void 0:b.used_pass_num),"通关人数"),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})})]})]})}),ne=t(96101),te=t(70596),se=t.n(te),ie=t(60865),ae=function(e,n){var t=e.names,s=void 0===t?[]:t,i=e.values;return{color:["#3398DB"],tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:[{name:"时间",type:"category",data:s,axisTick:{alignWithLabel:!0,interval:0,rotate:"45"},axisLabel:{interval:0,rotate:"45"}}],yAxis:[{name:n,type:"value"}],series:[{name:n,type:"bar",barWidth:"20%",label:{show:!0,position:"top",formatter:function(e){return parseInt(null==e?void 0:e.data)>1e4?Math.round(parseInt(null==e?void 0:e.data)/100)/10+"k":null==e?void 0:e.data}},data:void 0===i?[]:i}]}},le=function(e){return{tooltip:{show:!0,formatter:function(e){return null!=e&&e.value?e.name+":"+e.value+"人":""}},visualMap:{type:"continuous",orient:"visualMap",itemWidth:20,itemHeight:120,text:["高","低"],showLabel:!0,seriesIndex:[0],inRange:{color:["#C4EAFF","#A1DBFF","#3AA0FF","#2F88DF","#2661A8"]},textStyle:{color:"#0152d9"},top:100,right:"right"},grid:{right:10,top:135,bottom:100,width:"20%"},xAxis:{show:!1},geo:{map:"china",left:"left",right:"300",label:{emphasis:{show:!1}},itemStyle:{emphasis:{areaColor:"#0152d9"}}},series:[{name:"mapSer",type:"map",roam:!1,geoIndex:0,label:{show:!1},data:e}]}},re=ne.Z.Option;se().registerMap("china",ie);var oe=function(e){var n=e.selectKey,t=e.form,s=e.statisticsData,a=(0,u.useState)(!1),r=o()(a,2),d=r[0],c=r[1],x=(0,u.useState)({}),v=o()(x,2),p=v[0],_=v[1],m=(0,u.useState)("all"),j=o()(m,2),f=j[0],g=j[1],y=(0,u.useState)(),b=o()(y,2),w=b[0],N=b[1],S=(0,u.useState)([]),I=o()(S,2),P=I[0],L=I[1],E=(0,u.useState)([]),O=o()(E,2),F=O[0],T=O[1],W=(0,u.useState)([]),M=o()(W,2),B=M[0],K=M[1],U=(0,u.useState)([]),V=o()(U,2),R=V[0],X=V[1],q=(0,u.useState)([]),H=o()(q,2),G=H[0],$=H[1],ee=(0,h.useParams)().pathId,te=[{key:7,value:"最近7天"},{key:30,value:"最近30天"},{key:180,value:"最近六个月"}];(0,u.useEffect)((function(){n===Fe.LearnIng&&se()}),[n,f,w,t]);var se=function(){var e=l()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return c(!0),e.next=3,(0,z.DU)({id:ee,type:f,day:w,form:t});case 3:if(n=e.sent,c(!1),!n){e.next=18;break}"all"===f&&(_(n||{}),L(null==n?void 0:n.study_count),T(null==n?void 0:n.passed_count),K(null==n?void 0:n.study_pdf_attachment_count),$(null==n?void 0:n.study_video_count),X(null==n?void 0:n.evaluate_count)),e.t0=f,e.next="study_count"===e.t0?10:"passed_count"===e.t0?12:"study_pdf_attachment_count"===e.t0?14:"study_video_count"===e.t0?16:18;break;case 10:return L(n),e.abrupt("break",18);case 12:return T(n),e.abrupt("break",18);case 14:return K(n),e.abrupt("break",18);case 16:return $(n),e.abrupt("break",18);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsxs)(A.Z,{spinning:d,children:[(0,J.jsxs)("div",{className:k,children:[(0,J.jsx)("span",{className:Z,children:"学员地域分布图"}),(0,J.jsx)("div",{className:C,children:(null==p?void 0:p.map)&&(0,J.jsx)(D.Z,{option:le(null==p?void 0:p.map),style:{height:400,width:800},opts:{renderer:"svg"}})})]}),(0,J.jsxs)("div",{className:k,children:[(0,J.jsxs)("span",{className:Z,style:{justifyContent:"space-between"},children:[(0,J.jsxs)("span",{children:["学员数量增长图",(0,J.jsx)("span",{className:"font12 c-grey-999 ml10",children:"参与课堂学习的累积人数"})]}),(0,J.jsx)(ne.Z,{defaultValue:7,style:{width:"120px"},onChange:function(e){g("study_count"),N(e)},children:null==te?void 0:te.map((function(e,n){return(0,J.jsx)(re,{value:e.key,children:null==e?void 0:e.value},n)}))})]}),(0,J.jsx)("div",{className:C,children:(null==P?void 0:P.length)>0?(0,J.jsx)(D.Z,{option:ae(Q(P),"学员数量"),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})})]}),(0,J.jsxs)("div",{className:k,children:[(0,J.jsxs)("span",{className:Z,style:{justifyContent:"space-between"},children:[(0,J.jsxs)("span",{children:["实践项目通过人数增长图",(0,J.jsx)("span",{className:"font12 c-grey-999 ml10",children:"学生通过实践项目的累积人数"})]}),(0,J.jsx)(ne.Z,{defaultValue:7,style:{width:"120px"},onChange:function(e){g("passed_count"),N(e)},children:null==te?void 0:te.map((function(e,n){return(0,J.jsx)(re,{value:e.key,children:null==e?void 0:e.value},n)}))})]}),(0,J.jsx)("div",{className:C,children:(null==F?void 0:F.length)>0?(0,J.jsx)(D.Z,{option:ae(Q(F),"通过人数"),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})})]}),null!=s&&s.video_count?(0,J.jsxs)("div",{className:k,children:[(0,J.jsxs)("span",{className:Z,style:{justifyContent:"space-between"},children:["视频学习次数增长图",(0,J.jsx)(ne.Z,{defaultValue:7,style:{width:"120px"},onChange:function(e){g("study_video_count"),N(e)},children:null==te?void 0:te.map((function(e,n){return(0,J.jsx)(re,{value:e.key,children:null==e?void 0:e.value},n)}))})]}),(0,J.jsx)("div",{className:C,children:(null==G?void 0:G.length)>0?(0,J.jsx)(D.Z,{option:ae(Q(G),"视频学习次数"),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})})]}):"",null!=s&&s.pdf_attachment_count?(0,J.jsxs)("div",{className:k,children:[(0,J.jsxs)("span",{className:Z,style:{justifyContent:"space-between"},children:["课件学习次数增长图",(0,J.jsx)(ne.Z,{defaultValue:7,style:{width:"120px"},onChange:function(e){g("study_pdf_attachment_count"),N(e)},children:null==te?void 0:te.map((function(e,n){return(0,J.jsx)(re,{value:e.key,children:null==e?void 0:e.value},n)}))})]}),(0,J.jsx)("div",{className:C,children:(null==B?void 0:B.length)>0?(0,J.jsx)(D.Z,{option:ae(Q(B),"课件学习次数"),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})})]}):"",(0,J.jsxs)("div",{className:k,children:[(0,J.jsx)("span",{className:Z,style:{justifyContent:"space-between"},children:(0,J.jsxs)("span",{children:["实训评测次数增长图",(0,J.jsx)("span",{className:"font12 c-grey-999 ml10",children:"学生评测点击的累积总次数"})]})}),(0,J.jsx)("div",{className:C,children:(null==R?void 0:R.length)>0?(0,J.jsx)(D.Z,{option:ae(Q(R),"实训评测次数"),style:{height:400,width:1200},opts:{renderer:"svg"}}):(0,J.jsx)(Y.Z,{})})]})]})},de=t(42122),ce=t.n(de),ue=t(11486),he=t(2453),xe=t(4310),ve=t(76661),pe="row3___CeXjd",_e="info___eN7xx",me="title___xxaug",je="row5___MDHEi",fe="rule___Fgl4o",ge="tabWrap___oSS3J",ye="tab___DEpgx",be="active___JpKfZ",we=t(84519),Ne=t(96486),Se=ue.Z.Search,Ze=function(e){var n,t,s,a,r,d,c,x,_=e.setStatisticsData,m=(0,h.useParams)().pathId,j=(0,u.useState)(!0),f=o()(j,2),g=f[0],y=f[1],b=(0,u.useState)(!0),w=o()(b,2),N=w[0],S=w[1],Z=(0,u.useState)(0),C=o()(Z,2),k=C[0],I=C[1],A=(0,u.useState)([]),D=o()(A,2),P=D[0],L=D[1],E=(0,u.useState)({page:1,limit:10,order:null,b_order:null,school_type:null,search_key:"",resource_type:"shixun",type:"subject_info"}),O=o()(E,2),F=O[0],T=O[1];(0,u.useEffect)((function(){W(F,!0)}),[]);var W=function(){var e=l()(i()().mark((function e(n){var t,s,a,l,r,o,d,c,u,h,x,v,p,j=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=j.length>1&&void 0!==j[1]&&j[1])?y(!0):S(!0),e.next=4,(0,we.ZP)("/api/paths/".concat(m,"/statistics_basic_info.json"),{method:"get",params:n});case 4:0===(s=e.sent).status&&(L(ce()(ce()({},s.data),{},{basic_info_items:(0,Ne.compact)([null==s||null===(a=s.data)||void 0===a||null===(l=a.basic_info)||void 0===l?void 0:l.shixun_data,null==s||null===(r=s.data)||void 0===r||null===(o=r.basic_info)||void 0===o?void 0:o.video_data,null==s||null===(d=s.data)||void 0===d||null===(c=d.basic_info)||void 0===c?void 0:c.file_data,null==s||null===(u=s.data)||void 0===u||null===(h=u.basic_info)||void 0===h?void 0:h.group_data,null==s||null===(x=s.data)||void 0===x||null===(v=x.basic_info)||void 0===v?void 0:v.normal_data])})),I(null==s||null===(p=s.data)||void 0===p?void 0:p.total_count),t&&_(ce()({},s.data))),y(!1),S(!1);case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),M=[{title:"序号",dataIndex:"name",align:"left",width:80,render:function(e,n,t){return F.limit*(F.page-1)+t+1}},{title:"课堂名称",align:"left",dataIndex:"course_name",render:function(e,n,t){return null!=n&&n.is_accessible?(0,J.jsx)(h.Link,{style:{color:"#000000"},to:null==n?void 0:n.first_category_url,children:(0,J.jsx)(p.Z,{title:e,children:e})}):(0,J.jsx)(p.Z,{title:e,children:(0,J.jsx)("span",{onClick:function(){he.ZP.info("当前课堂为私有课堂不能进入")},children:(null==e?void 0:e.length)>10?e.substr(0,10)+"...":e})})}},{title:"单位名称",align:"left",dataIndex:"school_name",render:function(e,n,t){return"***"===e?(0,J.jsx)(p.Z,{title:"本单位不对外公开",children:(0,J.jsx)("span",{children:e})}):e}},{title:"管理员",align:"left",width:120,dataIndex:"course_admin_name",render:function(e,n,t){return(0,J.jsx)(h.Link,{style:{color:"#000000"},to:"/users/".concat(null==n?void 0:n.course_admin,"/classrooms"),children:e})}},{title:"课堂老师",width:80,align:"left",dataIndex:"teacher_count"},{title:"课堂学生",width:110,dataIndex:"student_count",align:"left",sorter:!0},{title:"选用数",width:110,dataIndex:"choice_num",sorter:!0,align:"left"},{title:(0,J.jsx)(p.Z,{title:"学生完成被选用资源的总次数",children:(0,J.jsx)("span",{children:"完成总次数"})}),width:110,showSorterTooltip:!1,dataIndex:"study_count",align:"left",sorter:!0}],B=[].concat(M,[{title:"人均通关数",width:110,showSorterTooltip:!1,dataIndex:"avg_study_count",align:"left",sorter:!0}]);return console.log(null==P?void 0:P.basic_info_items,22),(0,J.jsxs)(xe.Z,{loading:g,active:!0,paragraph:{rows:5},children:[(0,J.jsxs)("div",{className:pe,children:[(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==P||null===(n=P.spoc_data)||void 0===n?void 0:n.spoc_school_count}),(0,J.jsx)("span",{children:"SPOC单位数"})]}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==P||null===(t=P.spoc_data)||void 0===t?void 0:t.course_used_total_count}),(0,J.jsx)("span",{children:"应用课堂总数"})]}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==P||null===(s=P.spoc_data)||void 0===s?void 0:s.course_study_count}),(0,J.jsx)("span",{children:"课堂学习总人数"})]})]}),(0,J.jsxs)("div",{className:_e,children:[(0,J.jsxs)("div",{className:me,children:[(0,J.jsx)("b",{children:"基本信息"}),(0,J.jsx)("span",{children:"本课程的内容发送到课堂中产生的数据详情(不同资源存在重复的单位选用)"})]}),(0,J.jsx)(ve.Z,{columns:[{title:"",dataIndex:"name"},{title:"课堂总人数",dataIndex:"course_member_count",align:"left",render:function(e){return"--"===e?e:"".concat(e,"人")}},{title:"选用单位数",dataIndex:"school_count",align:"left",render:function(e){return"--"===e?e:"".concat(e,"个")}},{title:"应用课堂数",dataIndex:"used_count",align:"left",render:function(e){return"--"===e?e:"".concat(e,"个")}},{title:"评测总次数",dataIndex:"evaluate_count",align:"left",render:function(e){return"--"===e?e:"".concat(e,"次")}},{title:"视频学习总时长",dataIndex:"video_study_time",align:"left",render:function(e){return"--"===e?e:"".concat(e,"分")}},{title:"完成总次数",dataIndex:"complete_count",align:"left",render:function(e){return"--"===e?e:"".concat(e,"次")}}],dataSource:null==P?void 0:P.basic_info_items,pagination:!1})]}),(0,J.jsxs)("div",{className:je,children:[(0,J.jsxs)("div",{className:me,children:[(0,J.jsx)("b",{children:"SPOC单位详情"}),(0,J.jsx)("span",{children:"学校可能既是985也是211也是本科的场景下方存在重复院校"})]}),(0,J.jsxs)("section",{children:[(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==P||null===(a=P.school_info)||void 0===a?void 0:a.project_985}),(0,J.jsx)("span",{children:"985院校"})]}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==P||null===(r=P.school_info)||void 0===r?void 0:r.project_211}),(0,J.jsx)("span",{children:"211院校"})]}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==P||null===(d=P.school_info)||void 0===d?void 0:d.regular_college}),(0,J.jsx)("span",{children:"本科院校"})]}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==P||null===(c=P.school_info)||void 0===c?void 0:c.junior_college}),(0,J.jsx)("span",{children:"高职高专"})]}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==P||null===(x=P.school_info)||void 0===x?void 0:x.other_school}),(0,J.jsx)("span",{children:"其他"})]})]})]}),(0,J.jsxs)("div",{className:fe,children:[(0,J.jsx)("div",{className:me,children:"选用细则"}),(0,J.jsxs)(v.Z,{align:"middle",justify:"space-between",className:"mb20",children:[(0,J.jsxs)("div",{className:ge,children:[(0,J.jsx)("div",{children:"资源类型"}),(0,J.jsx)("ul",{className:ye,style:{margin:"0"},children:[{id:"shixun",name:"实践项目"},{id:"video",name:"视频项目"},{id:"file",name:"教学课件"},{id:"group",name:"分组作业"},{id:"normal",name:"图文作业"}].map((function(e){return(0,J.jsx)("li",{onClick:function(){return n=e.id,F.page=1,F.resource_type=n,T(ce()({},F)),void W(F);var n},className:F.resource_type===e.id?be:"",children:e.name},e.id)}))})]}),(0,J.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,J.jsxs)("div",{children:[(0,J.jsx)("span",{style:{fontSize:"12px",fontWeight:"400",color:"#9096a3"},children:"单位类型"}),(0,J.jsx)(ne.Z,{defaultValue:0,style:{width:200,margin:"0 10px"},onChange:function(e,n){F.school_type=0==e?null:e,T(ce()({},F)),W(F)},options:[{value:0,label:"全部"},{value:1,label:"985院校"},{value:2,label:"211院校"},{value:3,label:"本科院校"},{value:4,label:"高职高专"},{value:5,label:"其他"}]})]}),(0,J.jsx)(Se,{placeholder:"请输入单位/课堂名称搜索",allowClear:!0,style:{width:400},enterButton:"搜索",size:"middle",onSearch:function(e){F.page=1,F.search_key=e,T(ce()({},F)),W(F)}})]})]}),(0,J.jsx)(ve.Z,{dataSource:null==P?void 0:P.other_info,columns:"shixun"==F.resource_type?B:M,rowKey:"id",onChange:function(e,n,t){F.page=null==e?void 0:e.current,F.limit=null==e?void 0:e.pageSize,null!=t&&t.order?(F.order=null==t?void 0:t.field,F.b_order="ascend"===(null==t?void 0:t.order)?"asc":"desc"):(F.order=null,F.b_order=null),T(ce()({},F)),W(F)},loading:N,pagination:{pageSize:F.limit,total:k,current:F.page,showQuickJumper:!0,hideOnSinglePage:!0,position:["bottomCenter"],showTotal:function(e){return(0,J.jsxs)("span",{className:"mr10",children:["共",(0,J.jsx)("span",{className:"c-orange",children:e}),"条数据"]})}}})]})]})},Ce="row4___lgLCU",ke="info___TeImt",Ie="title___gQi2u",Ae="tabWrap___CrXoM",De=function(e){var n,t,s,a,r=e.setStatisticsData,d=(0,h.useParams)().pathId,c=(0,u.useState)(!0),x=o()(c,2),v=x[0],_=x[1],m=(0,u.useState)(!0),j=o()(m,2),f=j[0],g=j[1],y=(0,u.useState)({type:"subject_info",course_id:null}),b=o()(y,2),w=b[0],N=b[1],S=(0,u.useState)([]),Z=o()(S,2),C=Z[0],k=Z[1],I=(0,u.useState)([]),A=o()(I,2),D=A[0],P=A[1];(0,u.useEffect)((function(){L(w,!0)}),[]);var L=function(){var e=l()(i()().mark((function e(n){var t,s,a,l,o,c,u=arguments;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(t=u.length>1&&void 0!==u[1]&&u[1])?_(!0):g(!0),e.next=4,(0,we.ZP)("/api/paths/".concat(d,"/autonomic_statistics.json"),{method:"get",params:n});case 4:0===(s=e.sent).status&&(k(ce()({},s.data)),P((null==s||null===(a=s.data)||void 0===a?void 0:a.courses)||[]),t&&(r(ce()({},s.data)),N(ce()(ce()({},n),{},{course_id:(null==s||null===(l=s.data)||void 0===l||null===(o=l.courses)||void 0===o||null===(c=o[0])||void 0===c?void 0:c.course_id)||""})))),_(!1),g(!1);case 8:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),E=[{title:"",dataIndex:"type",width:120,render:function(e){return"实践关卡"===e?(0,J.jsxs)("span",{children:[e,(0,J.jsx)(p.Z,{title:"包括课堂中在线学习和实训作业里的关卡数量(去重)",children:(0,J.jsx)("span",{children:(0,J.jsx)("i",{className:"ml5 iconfont icon-tishixiaowenhao font14"})})})]}):e}},{title:"资源数量",dataIndex:"count",align:"left",render:function(e){return"--"===e?e:"".concat(e,"个")}},{title:"学习人数",dataIndex:"study_count",align:"left",render:function(e){return"--"===e?e:"".concat(e,"人")}},{title:"评测总次数",dataIndex:"evaluate_count",align:"left",render:function(e){return"--"===e?e:"".concat(e,"次")}},{title:"视频学习总时长",dataIndex:"time_long",render:function(e){return"--"===e?e:"".concat(e,"分")},align:"left"},{title:"完成总次数",dataIndex:"finish_count",render:function(e){return"--"===e?e:"".concat(e,"次")},align:"left"}];return(0,J.jsxs)(xe.Z,{loading:v,active:!0,paragraph:{rows:5},children:[(0,J.jsxs)("div",{className:Ce,children:[(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==C||null===(n=C.subject_info)||void 0===n?void 0:n.initiative_study}),(0,J.jsxs)("span",{children:["累计学习人数",(0,J.jsx)(p.Z,{title:"包括开课学期结束后,学生学习的人数",children:(0,J.jsx)("i",{className:"iconfont icon-tishixiaowenhao"})})," "]})]}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==C||null===(t=C.subject_info)||void 0===t?void 0:t.initiative_school_used_count}),(0,J.jsxs)("span",{children:["累计单位数",(0,J.jsx)(p.Z,{title:"自主学习的学生所属单位数量",children:(0,J.jsx)("i",{className:"iconfont icon-tishixiaowenhao"})})," "]})]}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==C||null===(s=C.subject_info)||void 0===s?void 0:s.initiative_challenge_count}),(0,J.jsx)("span",{children:"累计完成关卡数"})]}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("span",{children:null==C||null===(a=C.subject_info)||void 0===a?void 0:a.initiative_evaluate_count}),(0,J.jsx)("span",{children:"累计评测总数"})]})]}),(0,J.jsxs)("div",{className:ke,children:[(0,J.jsxs)("div",{className:Ie,children:[(0,J.jsx)("b",{children:"基本信息"}),(0,J.jsx)("span",{children:"未在Spoc课堂中学生自主的学习该课程产生的数据"})]}),(0,J.jsxs)("div",{className:Ae,children:[(0,J.jsx)("aside",{children:"开课学期"}),(0,J.jsx)(ne.Z,{style:{width:150},value:w.course_id,onChange:function(e){w.course_id=e,N(ce()({},w)),L(w)},children:null==D?void 0:D.map((function(e,n){return(0,J.jsx)(ne.Z.Option,{value:e.course_id,children:e.text},e.course_id)}))}),(0,J.jsx)("span",{children:"注:其他代表开课结束后的累积数据"})]}),(0,J.jsx)(ve.Z,{columns:E,loading:f,dataSource:null==C?void 0:C.count_data,pagination:!1})]})]})},Pe=t(59758),Le=t(7),Ee=["user","pathsDetail","globalSetting","loading","dispatch"],Oe=x.Z.TabPane,Fe=function(e){return e.Quality="Quality",e.LearnIng="LearnIng",e.ShiXunUsetow="shixunusetow",e}({}),Te=(0,h.connect)((function(e){var n=e.user,t=e.pathsDetail,s=e.loading;return{user:n,pathsDetail:t,globalSetting:e.globalSetting,loading:s}}))((function(e){e.user,e.pathsDetail,e.globalSetting,e.loading,e.dispatch,c()(e,Ee);var n,t=(0,h.useParams)(),s=(0,u.useState)(1),a=o()(s,2),r=a[0],d=a[1],Z=(0,u.useState)("spoc"),C=o()(Z,2),k=C[0],I=C[1],A=(0,u.useState)({}),D=o()(A,2),P=D[0],L=D[1],E=(0,u.useState)(Fe.LearnIng),O=o()(E,2),F=O[0],T=O[1],W=(0,h.useParams)().pathId,M=(0,u.useState)({}),B=o()(M,2),K=B[0],U=B[1],V=function(e){I(e),d(r+1),T(Fe.LearnIng)};(0,u.useEffect)((function(){R()}),[]);var R=function(){var e=l()(i()().mark((function e(){var n;return i()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,we.ZP)("/api/paths/".concat(W,"/statistics_total_info.json"),{method:"get"});case 2:0===(n=e.sent).status&&U((null==n?void 0:n.data)||{});case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return(0,J.jsxs)("section",{className:_,children:[(0,J.jsxs)("header",{className:m,children:[(0,J.jsxs)("div",{className:j,children:[(0,J.jsx)("i",{className:"iconfont icon-fanhui2 font16",onClick:function(){return h.history.push("/paths/".concat(W))}}),!(null==P||!P.report_date)&&(0,J.jsxs)("span",{className:f,children:["学习统计-",(null==K||null===(n=K.subject_info)||void 0===n?void 0:n.name)||""]})]}),(0,J.jsxs)(v.Z,{style:{flexShrink:0,marginTop:3},children:[(0,Le.Ny)()&&(0,J.jsx)("a",{href:Pe.Z.API_SERVER+"/api/paths/".concat(t.pathId,"/").concat("spoc"===k?"statistics_basic_info":"autonomic_statistics",".xlsx"),download:"统计数据.xlsx",children:"导出统计数据"}),(0,J.jsxs)("span",{className:"ml10",children:["数据更新至 ",null==P?void 0:P.report_date]})]})]}),(0,J.jsxs)("div",{className:g,children:[(0,J.jsx)("div",{className:f,children:"基本信息"}),(0,J.jsxs)("div",{className:y,children:[(0,J.jsxs)("div",{children:[(0,J.jsx)("div",{className:b,children:(0,J.jsx)("i",{className:"iconfont icon-xuexirenshu3"})}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("div",{children:(null==K?void 0:K.total_study_count)||"--"}),(0,J.jsx)("div",{children:"学习总人数"})]})]}),(0,J.jsxs)("div",{children:[(0,J.jsx)("div",{className:b,children:(0,J.jsx)("i",{className:"iconfont icon-danweishu"})}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("div",{children:(null==K?void 0:K.total_school_used_count)||"--"}),(0,J.jsxs)("div",{children:["总学习单位数",(0,J.jsx)(p.Z,{title:"同一个单位可能同时存在SPOC学习和自主学习此处为去重后总学习单位数",children:(0,J.jsx)("i",{className:"iconfont icon-xiaowenhao1 font14 c-grey-999 ml5"})})]})]})]}),(0,J.jsxs)("div",{children:[(0,J.jsx)("div",{className:b,children:(0,J.jsx)("i",{className:"iconfont icon-guankashu2"})}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("div",{children:(null==K?void 0:K.total_challenge_count)||"--"}),(0,J.jsx)("div",{children:"完成关卡总次数"})]})]}),(0,J.jsxs)("div",{children:[(0,J.jsx)("div",{className:b,children:(0,J.jsx)("i",{className:"iconfont icon-pingceshu"})}),(0,J.jsxs)("aside",{children:[(0,J.jsx)("div",{children:(null==K?void 0:K.total_evaluate_count)||"--"}),(0,J.jsx)("div",{children:"评测总次数"})]})]})]})]}),(0,J.jsxs)("div",{className:w,children:[(0,J.jsx)("div",{onClick:function(){return V("spoc")},className:"spoc"===k?N:"",children:"SPOC学习情况"}),(0,J.jsx)("div",{onClick:function(){return V("initiative")},className:"initiative"===k?N:"",children:"自主学习情况"})]}),"spoc"===k?(0,J.jsx)(Ze,{setStatisticsData:L}):(0,J.jsx)(De,{setStatisticsData:L}),(0,J.jsx)("main",{className:S,children:(0,J.jsxs)(x.Z,{activeKey:F,onChange:function(e){T(e)},tabBarExtraContent:(0,J.jsx)("span",{style:{color:"#FA6400",fontSize:12},children:"注:本课程主要统计实践关卡的情况"}),children:[(0,J.jsx)(Oe,{tab:"学习概况统计",children:(0,J.jsx)(oe,{form:k,selectKey:F,statisticsData:P},r)},Fe.LearnIng),(0,J.jsx)(Oe,{tab:"学习质量分析",children:(0,J.jsx)(H,{form:k,selectKey:F,statisticsData:P})},Fe.Quality),(null==P?void 0:P.shixun_count)>0&&"spoc"===k&&(0,J.jsx)(Oe,{tab:"实训使用分析",children:(0,J.jsx)(ee,{selectKey:F})},Fe.ShiXunUsetow)]})})]})}))}}]);