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