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(["./ResizeObserver.es-legacy.42c87f31.js","./week-report-legacy.f287ab7a.js","./icon-or-legacy.41f67ed6.js","./index-legacy.bc00bbbe.js","./html2canvas.esm-legacy.19f9c2b7.js","./universalTransition-legacy.490e7186.js","./index-legacy.b73ab129.js","./index-legacy.ba6c4078.js","./index-legacy.6452482e.js","./browser-legacy.701045cc.js"],(function(e){"use strict";var n,r,a,o,s,i,c,l,u,p,h,d,E,T,f,m,v,A,g,y,R,O,C,w,D,N,S,b,L,k,U,H,M,_,x,B,I,W,P,K,j,G,F,Q,z,q,V,Y,J,X,Z,$,ee,te,ne,re,ae,oe,se,ie;return{setters:[function(e){n=e.d,r=e.r,a=e.$,o=e.a1,s=e.c,i=e.t,c=e.am,l=e.ai,u=e.aj,p=e.al,h=e.a0,d=e.av,E=e.a7,T=e.P,f=e.n,m=e.bk,v=e.e,A=e.q,g=e.bl,y=e.p,R=e.bn,O=e.bo},function(e){C=e.s,w=e.t,D=e.a,N=e.b,S=e.c,b=e.O,L=e.T,k=e.i,U=e.d,H=e.S,M=e.e,_=e.f,x=e.g,B=e.p,I=e.h,W=e.j},function(e){P=e.i},function(e){K=e.O},function(e){j=e.h},function(e){G=e.i,F=e.L,Q=e.u,z=e.a,q=e.b,V=e.c,Y=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(){},function(){}],execute:function(){var ce="./assets/icon-train-month.8ecb8a4c.png",le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMBAMAAACkW0HUAAAAElBMVEUAAABAFf87GP46Fv06GP86F/1KQQonAAAABXRSTlMADMN/YYlGpecAAAAvSURBVAjXY2BgYHRgAAGhYBDJqBpqAOKEhgaDOaFALpAD5EIpqCBECVQDTDvUMADDuwrdRd1HGQAAAABJRU5ErkJggg==";Q([z,q,V,Y,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,valueList:[],type:"target",workTarget:{},workSubmitted:{}});a((function(){return e.reportData}),(function(){l()}));var l=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)if("TOTAL"===i)n.total=Math.ceil(100*a[i]);else{var c=a[i];Array.isArray(c)&&c.forEach((function(e){o.push(e.name),s.push(Math.ceil(100*e.value))}))}n.valueList=s;var l=document.getElementById("overWorkEcharts");t=G(l);var u={tooltip:{trigger:"axis",confine:!0,axisPointer:{type:"shadow",label:{formatter:function(e){return e.value.length>16?e.value.substring(0,16)+"...":e.value}}},textStyle:{color:"#131415",width:100,overflow:"truncate"}},dataZoom:[{type:"inside",realtime:!0,startValue:0,endValue:4,filterMode:"none",zoomLock:!0}],xAxis:{type:"category",data:o,axisLabel:{interval:0,fontSize:9,color:"#333",width:54,formatter:function(e){var t=e.length;return Math.ceil(t/6)>1?e.substring(0,6)+"\n"+e.substring(6,11)+(t>11?"... ":""):e+"\n"}},axisLine:{lineStyle:{color:"#D6D6D6"}}},yAxis:{type:"value"},grid:{left:0,top:22,right:0,bottom:12,containLabel:!0},series:[{name:"target"===n.type?"作业完成率":"作业提交率",type:"bar",showBackground:!1,barWidth:20,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}]};u&&t.setOption(u)};return o((function(){l()})),function(){return s("div",{class:[C.trainSection,C.teacherOverSection]},[s("div",{class:C.trainTitle},[s("div",{class:C.name},[s(oe,{src:"month"===e.type?w:D,class:C.allowLine},null),"target"===n.type?"作业完成率":"作业提交率"]),s("div",{class:C.countNums},[s(oe,{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",l()}},[i("作业完成率")]),s("span",{class:[C.overWorkType,"submitted"===n.type?C.overWorkActive:""],onClick:function(){n.type="submitted",l()}},[i("作业提交率")])])]),s("div",{class:C.echartsContainer},[s("div",{id:"overWorkEcharts",class:C.classEcharts},null),n.valueList.length<=0&&s("div",{class:C.oEmtpy},[s(c,{classImgSize:"SMALL",type:"emptyDefault",tips:"暂无数据"},null)])])])])])}}});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=l(),n=u(),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:{}}),C=function(){var e=t(regeneratorRuntime.mark((function e(){var t,n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,f.get("/api-school/open/orchestraReport/detail/"+a.id);case 3:for(o 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||"",r=c.COURSEWARE)(r[o]||[]).forEach((function(e){c.coursewareList.push(e.name)}));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)}}(),w=r({saveLoading:!1,image:null,shareLoading:!1}),D=function(){var e=t(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w.saveLoading){e.next=2;break}return e.abrupt("return");case 2:w.saveLoading=!0,w.image?F():(n=document.getElementById("preview-container"),j(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"),w.image=n,F();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){m(),w.saveLoading=!1})));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),N=function(){if(!w.shareLoading)if(w.shareLoading=!0,w.image)G();else{var e=document.getElementById("preview-container");j(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"),w.image=n,G();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){m(),w.shareLoading=!1}))}},G=function(){var e=w.image;setTimeout((function(){w.shareLoading=!1}),100),e&&v({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(){w.saveLoading=!1}),100),e.next=4,y({api:"savePicture",content:{base64:w.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(){C()})),function(){return s("div",{class:[S.trainWeek,S.trainMonth,1==a.share?S.trasinMonthShare:""]},[s("div",{class:S.trainContainer},null),s(p,{background:"transparent",border:!1,title:" ",color:"white",isBack:1!=a.share},{right:function(){return 1!=a.share&&s("i",{class:S.iconShare,onClick:function(){a.showQrcode=!0,h((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:[S.headerContant,S.teacherHeaderContant]},[s("div",{class:S.orchestra},[s(oe,{src:P,class:S.iconOrchestra},null),s("span",null,[c.orchestraName])]),s("div",null,[s(oe,{src:ce,class:S.iconTrainWeek},null)]),s("div",{class:S.trainTimer},[c.monthlyTime])]),s(b,{type:"month",reportData:c.ORCHESTRA},null),s(L,{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:[S.trainPhoto,S.teacherTrainPhoto]},[s(oe,{src:k,class:S.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(E,{name:U,size:"10",style:{marginLeft:"10px"}},null)])]),s(H,{type:"month",reportData:c.STUDENT_ATTENDANCE},null),s(M,{type:"month",reportData:c.TEACHER_ATTENDANCE,reportDataNot:c.TEACHER_NOT_ATTENDANCE},null),c.coursewareList.length>0&&s("div",{class:[S.trainClass,S.teacherTrainClass]},[s(oe,{src:_,class:S.iconPhoto},null),s("div",null,[s("p",{class:S.subjectTips},[i("课件使用未达标班级")]),s("p",{class:S.subjectNames,style:"color: #FF99A2"},[c.coursewareList.map((function(e,t){return e+(c.coursewareList.length-1===t?"":"、")}))])])]),s(x,{type:"month",reportData:c.KNOWLEDGE},null),s(T,{show:a.showQrcode,"onUpdate:show":function(e){return a.showQrcode=e},position:"bottom",style:{background:"transparent"}},{default:function(){return[s("div",{class:S.codeContainer},[s("div",{class:[S.codeImg,S.teacherCodeImg],id:"preview-container"},[s(oe,{src:"./assets/popup-week-banner.72a73dd1.png",class:S.popupWeekBanner},null),s("div",{class:S.codeContent},[s("div",{class:[S.headerContant,S.teacherHeaderContant,S.headerContantPopup]},[s("div",{class:S.orchestra},[s(oe,{src:P,class:S.iconOrchestra},null),s("span",null,[c.orchestraName])]),s("div",null,[s(oe,{src:ce,class:S.iconTrainWeek},null)]),s("div",{class:S.trainTimer},[s(oe,{class:S.point,src:le},null),c.monthlyTime,s(oe,{class:S.point,src:le},null)])]),s("div",{class:S.codeQr},[s(oe,{src:B,class:S.popupQrcodeBg},null),s(K,{text:a.url,size:"100%",logoSize:"small"},null)]),s("div",{style:{textAlign:"center"}},[s("span",{class:S.codeBtnText},[i("扫描上方二维码"),s("span",null,[i("查看训练月报")])])])])]),s("div",{class:S.codeBottom},[s(E,{name:"cross",size:22,class:S.close,color:"#666",onClick:function(){return a.showQrcode=!1}},null),s("h3",{class:S.title},[s("i",null,null),i("分享方式")]),s(se,{columnNum:2,border:!1},{default:function(){return[s(ie,{onClick:D},{icon:function(){return s(oe,{class:S.shareImg,src:I},null)},text:function(){return s("div",{class:S.shareText},[i("保存图片")])}}),s(ie,{onClick:N},{icon:function(){return s(oe,{class:S.shareImg,src:W},null)},text:function(){return s("div",{class:S.shareText},[i("微信")])}})]}})])])]}})])}}}))}}}))}();
|