month-report-legacy.1eebbb32.js 11 KB

1
  1. !function(){function e(e,t,n,r,a,o,s){try{var i=e[o](s),c=i.value}catch(l){return void n(l)}i.done?t(c):Promise.resolve(c).then(r,a)}function t(t){return function(){var n=this,r=arguments;return new Promise((function(a,o){var s=t.apply(n,r);function i(t){e(s,a,o,i,c,"next",t)}function c(t){e(s,a,o,i,c,"throw",t)}i(void 0)}))}}System.register(["./index-legacy.47bc1690.js","./week-report-legacy.d3b7adcc.js","./icon-or-legacy.41f67ed6.js","./index-legacy.c270e4c4.js","./html2canvas.esm-legacy.19f9c2b7.js","./index-legacy.0ebc214d.js","./universalTransition-legacy.c05506af.js","./index-legacy.4df1d4ab.js","./index-legacy.d80b3016.js"],(function(e){"use strict";var n,r,a,o,s,i,c,l,u,p,d,h,E,T,m,f,A,g,v,R,O,C,y,D,N,S,w,U,H,b,k,L,M,_,B,x,I,W,K,P,G,j,F,Q,q,z,Y,V,J,X,Z,$,ee,te,ne,re,ae,oe,se,ie;return{setters:[function(e){n=e.d,r=e.r,a=e.Z,o=e.$,s=e.c,i=e.q,c=e.ag,l=e.ah,u=e.aj,p=e._,d=e.an,h=e.a5,E=e.P,T=e.m,m=e.bf,f=e.e,A=e.o,g=e.bq,v=e.p,R=e.bD,O=e.bE},function(e){C=e.s,y=e.t,D=e.a,N=e.b,S=e.r,w=e.c,U=e.O,H=e.T,b=e.i,k=e.d,L=e.S,M=e.e,_=e.f,B=e.g,x=e.p,I=e.h,W=e.j},function(e){K=e.i},function(e){P=e.O},function(e){G=e.h},function(e){j=e.I},function(e){F=e.u,Q=e.i,q=e.L,z=e.a,Y=e.b,V=e.c,J=e.d,X=e.e,Z=e.f,$=e.g,ee=e.h,te=e.j,ne=e.k,re=e.l,ae=e.m,oe=e.n},function(e){se=e.G,ie=e.a},function(){}],execute:function(){var ce="./assets/icon-train-month.8ecb8a4c.png",le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAElBMVEUAAABAFf87GP46Fv06GP86F/1KQQonAAAABXRSTlMADMN/YYlGpecAAAAvSURBVAjXY2BgYHRgAAGhYBDJqBpqAOKEhgaDOaFALpAD5EIpqCBECVQDTDvUMADDuwrdRd1HGQAAAABJRU5ErkJggg==";F([z,Y,V,J,X,Z,$,ee,te,ne,re,ae,oe]);var ue=n({name:"orchestra-num",props:{type:{type:String,default:"week"},reportData:{type:Object,default:function(){return{}}}},setup:function(e){var t,n=r({total:0,type:"target",workTarget:{},workSubmitted:{}});a((function(){return e.reportData}),(function(){c()}));var c=function(){t&&t.dispose();var r=e.reportData||{},a="target"===n.type?r.HOMEWORK_TARGET:r.HOMEWORK_SUBMITTED,o=[],s=[];for(var i in a)"TOTAL"===i?n.total=Math.ceil(100*a[i]):(o.push(S[i]),s.push(Math.ceil(100*a[i])));var c=document.getElementById("overWorkEcharts");t=Q(c);var l={xAxis:{type:"category",data:o,axisLabel:{rotate:45,fontSize:10,color:"#333"},axisLine:{lineStyle:{color:"#D6D6D6"}}},yAxis:{type:"value"},grid:{left:0,top:22,right:0,bottom:12,containLabel:!0},series:[{type:"bar",showBackground:!1,barWidth:15,itemStyle:{color:new q(0,0,0,1,[{offset:0,color:"#69DCE8"},{offset:.5,color:"#E5CEFB"},{offset:1,color:"#58A2FF"}])},emphasis:{itemStyle:{color:new q(0,0,0,1,[{offset:0,color:"#69DCE8"},{offset:.5,color:"#E5CEFB"},{offset:1,color:"#58A2FF"}])}},label:{show:!0,position:"top",fontSize:10,color:"#777"},data:s}]};l&&t.setOption(l)};return o((function(){c()})),function(){return s("div",{class:[C.trainSection,C.teacherOverSection]},[s("div",{class:C.trainTitle},[s("div",{class:C.name},[s(j,{src:"month"===e.type?y:D,class:C.allowLine},null),"target"===n.type?"作业完成率":"作业提交率"]),s("div",{class:C.countNums},[s(j,{src:N,class:C.arrowPoint},null),"target"===n.type?"总完成率":"总提交率",s("span",null,[n.total]),i("%")])]),s("div",{class:C.trainSectionContent},[s("div",{class:C.tContent},[s("div",{class:C.calssEchartTitle},[s("span",{class:C.unit},[i("单位:%")]),s("div",null,[s("span",{class:[C.overWorkType,"target"===n.type?C.overWorkActive:""],onClick:function(){n.type="target",c()}},[i("作业完成率")]),s("span",{class:[C.overWorkType,"submitted"===n.type?C.overWorkActive:""],onClick:function(){n.type="submitted",c()}},[i("作业提交率")])])]),s("div",{id:"overWorkEcharts",class:C.classEcharts},null)])])])}}}),pe=e("reportCourseType",{PERCUSSION:"打击乐",FLUTE:"长笛",SAX:"萨克斯",CLARINET:"单簧管",TRUMPET:"小号",TROMBONE:"长号",HORN:"圆号",BARITONE_TUBA:"上低音号-大号",EUPHONIUM:"上低音号",TUBA:"大号",MUSIC_THEORY:"乐理",INSTRUMENTAL_ENSEMBLE:"合奏"});e("default",n({name:"train-report",setup:function(){var e=c(),n=l(),a=r({id:n.query.id,share:n.query.share,showQrcode:!1,url:window.location.href+"&share=1",width:0,height:0}),C=r({orchestraName:null,monthlyTime:null,startTime:null,endTime:null,COURSEWARE:{},coursewareList:[],COURSE_SCHEDULE:{},KNOWLEDGE:{},ORCHESTRA:{},PHOTO:{},STUDENT_ATTENDANCE:{},TEACHER_ATTENDANCE:{},HOMEWORK_TARGET:{},HOMEWORK_SUBMITTED:{},TEACHER_NOT_ATTENDANCE:{}}),y=function(){var e=t(regeneratorRuntime.mark((function e(){var t,n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,T.get("/api-school/open/orchestraReport/detail/"+a.id);case 3:for(r in t=e.sent,n=t.data,C.COURSEWARE=n.reportItem.COURSEWARE||{},C.COURSE_SCHEDULE=n.reportItem.COURSE_SCHEDULE||{},C.KNOWLEDGE=n.reportItem.KNOWLEDGE||{},C.ORCHESTRA=n.reportItem.ORCHESTRA||{},C.HOMEWORK_TARGET=n.reportItem.HOMEWORK_TARGET||{},C.HOMEWORK_SUBMITTED=n.reportItem.HOMEWORK_SUBMITTED||{},C.PHOTO=n.reportItem.PHOTO||{},C.STUDENT_ATTENDANCE=n.reportItem.STUDENT_ATTENDANCE||{},C.TEACHER_ATTENDANCE=n.reportItem.TEACHER_ATTENDANCE||{},C.TEACHER_NOT_ATTENDANCE=n.reportItem.TEACHER_NOT_ATTENDANCE||{},C.orchestraName=n.orchestraName||"",C.monthlyTime=n.monthlyTime||"",C.startTime=n.startTime||"",C.endTime=n.endTime||"",C.COURSEWARE)"TOTAL"!=r&&C.coursewareList.push(pe[r]);e.next=25;break;case 23:e.prev=23,e.t0=e.catch(0);case 25:case"end":return e.stop()}}),e,null,[[0,23]])})));return function(){return e.apply(this,arguments)}}(),D=r({saveLoading:!1,image:null,shareLoading:!1}),N=function(){var e=t(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!D.saveLoading){e.next=2;break}return e.abrupt("return");case 2:D.saveLoading=!0,D.image?Q():(n=document.getElementById("preview-container"),G(n,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=t(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.toDataURL("image/png"),D.image=n,Q();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){m(),D.saveLoading=!1})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),S=function(){if(!D.shareLoading)if(D.shareLoading=!0,D.image)F();else{var e=document.getElementById("preview-container");G(e,{allowTaint:!0,useCORS:!0,backgroundColor:null}).then(function(){var e=t(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=t.toDataURL("image/png"),D.image=n,F();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){m(),D.shareLoading=!1}))}},F=function(){var e=D.image;setTimeout((function(){D.shareLoading=!1}),100),e&&f({api:"shareTripartite",content:{title:"",desc:"",image:e,video:"",type:"image",shareType:"wechat"}},(function(e){e&&e.content&&A(e.content.message||(e.content.status?"分享成功":"分享失败"))}))},Q=function(){var e=t(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return g({message:"图片生成中...",forbidClick:!0}),setTimeout((function(){D.saveLoading=!1}),100),e.next=4,v({api:"savePicture",content:{base64:D.image}});case 4:"success"===(null==(n=e.sent)||null===(t=n.content)||void 0===t?void 0:t.status)?R("保存成功"):O("保存失败");case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return o((function(){y()})),function(){return s("div",{class:[w.trainWeek,w.trainMonth,1==a.share?w.trasinMonthShare:""]},[s("div",{class:w.trainContainer},null),s(u,{background:"transparent",border:!1,title:" ",color:"white",isBack:1!=a.share},{right:function(){return 1!=a.share&&s("i",{class:w.iconShare,onClick:function(){a.showQrcode=!0,p((function(){var e=document.querySelector("#preview-container"),t=d(e);a.width=t.width,a.height=t.height,t.width>0&&t.height>0&&(e.style.width=Math.round(t.width)+"px",e.style.height=Math.round(t.height)+"px")}))}},null)}}),s("div",{class:[w.headerContant,w.teacherHeaderContant]},[s("div",{class:w.orchestra},[s(j,{src:K,class:w.iconOrchestra},null),s("span",null,[C.orchestraName])]),s("div",null,[s(j,{src:ce,class:w.iconTrainWeek},null)]),s("div",{class:w.trainTimer},[C.monthlyTime])]),s(U,{type:"month",reportData:C.ORCHESTRA},null),s(H,{type:"month",reportData:C.COURSE_SCHEDULE},null),s(ue,{type:"month",reportData:{HOMEWORK_SUBMITTED:C.HOMEWORK_SUBMITTED,HOMEWORK_TARGET:C.HOMEWORK_TARGET}},null),s("div",{class:[w.trainPhoto,w.teacherTrainPhoto]},[s(j,{src:b,class:w.iconPhoto},null),s("p",{onClick:function(){1!=a.share&&e.push({path:"/school-photo"})},style:{display:"flex",alignItems:"center"}},[i("本月上传"),s("span",null,[C.PHOTO.TOTAL||0]),i("张训练照片"),1!=a.share&&s(h,{name:k,size:"10",style:{marginLeft:"10px"}},null)])]),s(L,{type:"month",reportData:C.STUDENT_ATTENDANCE},null),s(M,{type:"month",reportData:C.TEACHER_ATTENDANCE,reportDataNot:C.TEACHER_NOT_ATTENDANCE},null),s("div",{class:[w.trainClass,w.teacherTrainClass]},[s(j,{src:_,class:w.iconPhoto},null),s("div",null,[s("p",{class:w.subjectTips},[i("课件使用未达标班级")]),s("p",{class:w.subjectNames,style:"color: #FF99A2"},[C.coursewareList.map((function(e){return e+" "}))])])]),s(B,{type:"month",reportData:C.KNOWLEDGE},null),s(E,{show:a.showQrcode,"onUpdate:show":function(e){return a.showQrcode=e},position:"bottom",style:{background:"transparent"}},{default:function(){return[s("div",{class:w.codeContainer},[s("div",{class:[w.codeImg,w.teacherCodeImg],id:"preview-container"},[s(j,{src:"./assets/popup-week-banner.72a73dd1.png",class:w.popupWeekBanner},null),s("div",{class:w.codeContent},[s("div",{class:[w.headerContant,w.teacherHeaderContant,w.headerContantPopup]},[s("div",{class:w.orchestra},[s(j,{src:K,class:w.iconOrchestra},null),s("span",null,[C.orchestraName])]),s("div",null,[s(j,{src:ce,class:w.iconTrainWeek},null)]),s("div",{class:w.trainTimer},[s(j,{class:w.point,src:le},null),C.monthlyTime,s(j,{class:w.point,src:le},null)])]),s("div",{class:w.codeQr},[s(j,{src:x,class:w.popupQrcodeBg},null),s(P,{text:a.url,size:"100%",logoSize:"small"},null)]),s("div",{style:{textAlign:"center"}},[s("span",{class:w.codeBtnText},[i("扫描上方二维码"),s("span",null,[i("查看训练月报")])])])])]),s("div",{class:w.codeBottom},[s(h,{name:"cross",size:22,class:w.close,color:"#666",onClick:function(){return a.showQrcode=!1}},null),s("h3",{class:w.title},[s("i",null,null),i("分享方式")]),s(se,{columnNum:2,border:!1},{default:function(){return[s(ie,{onClick:N},{icon:function(){return s(j,{class:w.shareImg,src:I},null)},text:function(){return s("div",{class:w.shareText},[i("保存图片")])}}),s(ie,{onClick:S},{icon:function(){return s(j,{class:w.shareImg,src:W},null)},text:function(){return s("div",{class:w.shareText},[i("微信")])}})]}})])])]}})])}}}))}}}))}();