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.90c82f08.js","./week-report-legacy.b4624bb4.js","./icon-or-legacy.41f67ed6.js","./index-legacy.b4ea4876.js","./html2canvas.esm-legacy.19f9c2b7.js","./universalTransition-legacy.490e7186.js","./index-legacy.eb4bc59e.js","./index-legacy.e4343e46.js","./index-legacy.ed5ab18f.js"],(function(e){"use strict";var n,r,a,o,s,i,c,l,u,p,h,d,E,T,m,f,A,g,v,R,O,C,y,D,N,S,w,b,U,H,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._,h=e.an,d=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.r,y=e.s,D=e.t,N=e.a,S=e.b,w=e.c,b=e.O,U=e.T,H=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,F=e.L,Q=e.u,q=e.a,z=e.b,Y=e.c,V=e.d,J=e.e,X=e.f,Z=e.g,$=e.h,ee=e.j,te=e.k,ne=e.l,re=e.m,ae=e.n},function(e){oe=e.I},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==";Q([q,z,Y,V,J,X,Z,$,ee,te,ne,re,ae]);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(C[i]),s.push(Math.ceil(100*a[i])));var c=document.getElementById("overWorkEcharts");t=j(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 F(0,0,0,1,[{offset:0,color:"#69DCE8"},{offset:.5,color:"#E5CEFB"},{offset:1,color:"#58A2FF"}])},emphasis:{itemStyle:{color:new F(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:[y.trainSection,y.teacherOverSection]},[s("div",{class:y.trainTitle},[s("div",{class:y.name},[s(oe,{src:"month"===e.type?D:N,class:y.allowLine},null),"target"===n.type?"作业完成率":"作业提交率"]),s("div",{class:y.countNums},[s(oe,{src:S,class:y.arrowPoint},null),"target"===n.type?"总完成率":"总提交率",s("span",null,[n.total]),i("%")])]),s("div",{class:y.trainSectionContent},[s("div",{class:y.tContent},[s("div",{class:y.calssEchartTitle},[s("span",{class:y.unit},[i("单位:%")]),s("div",null,[s("span",{class:[y.overWorkType,"target"===n.type?y.overWorkActive:""],onClick:function(){n.type="target",c()}},[i("作业完成率")]),s("span",{class:[y.overWorkType,"submitted"===n.type?y.overWorkActive:""],onClick:function(){n.type="submitted",c()}},[i("作业提交率")])])]),s("div",{id:"overWorkEcharts",class:y.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?F():(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,F();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)j();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,j();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){m(),D.shareLoading=!1}))}},j=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?"分享成功":"分享失败"))}))},F=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=h(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(oe,{src:K,class:w.iconOrchestra},null),s("span",null,[C.orchestraName])]),s("div",null,[s(oe,{src:ce,class:w.iconTrainWeek},null)]),s("div",{class:w.trainTimer},[C.monthlyTime])]),s(b,{type:"month",reportData:C.ORCHESTRA},null),s(U,{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(oe,{src:H,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(d,{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(oe,{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(oe,{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(oe,{src:K,class:w.iconOrchestra},null),s("span",null,[C.orchestraName])]),s("div",null,[s(oe,{src:ce,class:w.iconTrainWeek},null)]),s("div",{class:w.trainTimer},[s(oe,{class:w.point,src:le},null),C.monthlyTime,s(oe,{class:w.point,src:le},null)])]),s("div",{class:w.codeQr},[s(oe,{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(d,{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(oe,{class:w.shareImg,src:I},null)},text:function(){return s("div",{class:w.shareText},[i("保存图片")])}}),s(ie,{onClick:S},{icon:function(){return s(oe,{class:w.shareImg,src:W},null)},text:function(){return s("div",{class:w.shareText},[i("微信")])}})]}})])])]}})])}}}))}}}))}();
|