!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var r=1;r20&&e<=40?t=2:e>40&&e<=60?t=3:e>60&&e<=80?t=4:e>80&&(t=5),t},n=function(){var t=window.location.origin+"/orchestra-music-score/colexiu-report.html?id=".concat(e.item.id);_({api:"openWebView",content:{url:t,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return function(){return a(s,null,[a("div",null,[a("div",{class:L,onClick:n},[a("div",{class:z},[a("div",{class:B},[a("p",{class:V},[e.item.musicSheetName]),a("p",{class:N},[e.item.createTime])]),a("div",{class:S},[a("div",{class:Y},[a("img",{src:H[t(e.item.score||0)].img,alt:""},null)]),a(l,{name:"arrow",class:q},null)])]),a("div",{class:E},[a("div",{class:F},[a("p",{class:U,style:{color:"#F67146"}},[e.item.score||0,a("span",null,[c("分")])," "]),a("p",{class:A},[c(" 综合得分")])]),a("div",{class:F},[a("p",{class:U},[e.item.intonation||0,a("span",null,[c("分")])," "]),a("p",{class:A},[c("音准 ")])]),a("div",{class:F},[a("p",{class:U},[e.item.cadence||0,a("span",null,[c("分")])," "]),a("p",{class:A},[c("节奏 ")])]),a("div",{class:F},[a("p",{class:U},[e.item.integrity||0,a("span",null,[c("分")])," "]),a("p",{class:A},[c("完成度 ")])])])])])])}}}),$={exercisContainer:"_exercisContainer_jyryw_1",topWrap:"_topWrap_jyryw_5",topInfo:"_topInfo_jyryw_5",topInfoLeft:"_topInfoLeft_jyryw_13",headWrap:"_headWrap_jyryw_19",infoMsg:"_infoMsg_jyryw_26",tag:"_tag_jyryw_38",topInfoRight:"_topInfoRight_jyryw_51",infoDay:"_infoDay_jyryw_58",infoDayMain:"_infoDayMain_jyryw_61",infoDaysub:"_infoDaysub_jyryw_77",chioseWrap:"_chioseWrap_jyryw_84",DialogTitle:"_DialogTitle_jyryw_94",DialogConent:"_DialogConent_jyryw_114"};e("default",o({name:"exercis-detail",setup:function(){p();var e=u(),o=m(d.platformApi),_=f({showPopoverTime:!1,showPopoverOrchestra:!1,currentDate:[y().format("YYYY"),y().format("MM")],actions:[{text:"全部乐团",color:"var(--van-primary-color)"},{text:"交付团"},{text:"晋升团"}],id:e.query.id,heightV:0,scrollTop:0,isClick:!1}),L=f({practiceMonth:e.query.practiceMonth?e.query.practiceMonth:_.currentDate[0]+""+_.currentDate[1],practiceMonthName:e.query.practiceMonthName?e.query.practiceMonthName:_.currentDate[0]+"年"+_.currentDate[1]+"月",orchestraId:"",orchestraName:"",page:1,rows:20,userId:e.query.id,clientType:"STUDENT"}),z=m(!1),B=m(new Date(y().subtract(10,"year").format("YYYY-MM-DD"))),V=m(new Date(y().add(10,"year").format("YYYY-MM-DD"))),N=m(["year","month"]),S=m(!1),Y=m(!1),q=m(!1),E=m(!1),F=m({}),U=m([]),A=function(){var e=i(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!_.isClick){e.next=2;break}return e.abrupt("return");case 2:return _.isClick=!0,S.value&&(U.value=[],L.page=1,S.value=!1),e.prev=4,e.next=7,I.post("".concat(o.value,"/musicPracticeRecord/page"),{data:t(t({},L),{},{feature:"EVALUATION"})});case 7:if(n=e.sent,!(U.value.length>0&&1===n.data.current)){e.next=10;break}return e.abrupt("return");case 10:U.value=U.value.concat(n.data.rows||[]),L.page=n.data.current+1,E.value=U.value.length>0,Y.value=!1,console.log(n.data,n.data.current>=n.data.pages),q.value=n.data.current>=n.data.pages,e.next=24;break;case 18:e.prev=18,e.t0=e.catch(4),r=e.t0.message,W(r),E.value=!1,q.value=!0;case 24:_.isClick=!1;case 25:case"end":return e.stop()}}),e,null,[[4,18]])})));return function(){return e.apply(this,arguments)}}(),H=function(){var e=i(regeneratorRuntime.mark((function e(){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,I.get("/api-backend/student/detail/".concat(_.id));case 3:n=e.sent,console.log(n),F.value=t({},n.data),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),r=e.t0.message,W(r);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),J=m(),K=m(0);g(i(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,A();case 2:return e.next=4,H();case 4:window.addEventListener("scroll",Q),h((function(){var e=w(J.value).height;K.value=e}));case 6:case"end":return e.stop()}}),e)})))),v((function(){window.removeEventListener("scroll",Q)}));var Q=function(){var e=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;_.scrollTop=e},X=function(e){_.heightV=e,console.log(e,"dataHeight")},Z=function(e){L.practiceMonth=e.selectedValues[0]+e.selectedValues[1],L.practiceMonthName=e.selectedValues[0]+"年"+e.selectedValues[1]+"月",_.showPopoverTime=!1,S.value=!0,A()},ee=function(){q.value=!1,Y.value=!0,A()};return function(){var e;return a(s,null,[a("div",{class:[$.exercisContainer,!E.value&&"emptyRootContainer"]},[a("div",{class:$.topWrap,ref:J},[a(r,{position:"top",background:"#F8F8F8",onGetHeight:X},{default:function(){return[a(n,{border:!1,background:_.heightV>_.scrollTop?"transparent":"#fff"},{right:function(){return a(l,{name:k,size:22,color:"#333",onClick:function(){z.value=!0}},null)}})]}}),a("div",{class:$.topInfo},[a("div",{class:$.topInfoLeft},[a("div",{class:$.headWrap},[a(C,{src:F.value.avatar?F.value.avatar:O,fit:"cover",width:"68px",height:"68px"},null)]),a("div",{class:$.infoMsg},[a("p",null,[F.value.nickname]),a("div",{class:$.tag},[F.value.subjectNames?F.value.subjectNames:"暂无声部"])])]),a("div",{class:$.topInfoRight},[a("div",{class:$.infoDay},[a("p",{class:$.infoDayMain},[F.value.practiceDays?F.value.practiceDays:0,"",a("span",null,[c("天")])]),a("p",{class:$.infoDaysub},[c("练习天数")])]),a("div",{class:$.infoTime},[a("p",{class:$.infoDayMain},[F.value.practiceTimes?F.value.practiceTimes:0,"",a("span",null,[c("分钟")])]),a("p",{class:$.infoDaysub},[c("练习时长")])])])]),a("div",{class:"searchGroup-single",style:"padding-top: 0 !important;"},[a("div",{class:["searchItem",_.showPopoverTime?"searchItem-active":""],onClick:function(){_.showPopoverTime=!0}},[a("span",null,[L.practiceMonthName])])])]),E.value?a(M,{modelValue:S.value,"onUpdate:modelValue":function(e){return S.value=e},onRefresh:ee,style:"min-height: 100vh;"},{default:function(){return[a(P,{"loading-text":" ",finished:q.value,"finished-text":"没有更多了",onLoad:A},(t=e=U.value.map((function(e){return a(G,{item:e},null)})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!T(t)?e:{default:function(){return[e]}}))];var t}}):a(j,{tips:"暂无练习统计"},null)]),a(b,{show:_.showPopoverTime,"onUpdate:show":function(e){return _.showPopoverTime=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[a(R,{onCancel:function(){_.showPopoverTime=!1},onConfirm:Z,modelValue:_.currentDate,"onUpdate:modelValue":function(e){return _.currentDate=e},minDate:B.value,maxDate:V.value,formatter:x,columnsType:N.value},null)]}}),a(D,{class:"exercisDetailDialog",show:z.value,"onUpdate:show":function(e){return z.value=e},title:"提示框",confirmButtonText:"我知道了"},{title:function(){return a("div",{class:$.DialogTitle},[a("span",null,null),a("p",null,[c("什么是练习数据")])])},default:function(){return a("div",{class:$.DialogConent},[a("p",null,[c("练习数据是学生通过云教练自主练习的数据统计,可根据时间段查询学生的练习天数和练习时长")," "]),a("p",null,[c("练习天数:当天有曲目播放或测评记录即算练习")]),a("p",null,[c("练习时长:曲目播放和曲目测评的时长总和")])])}})])}}}))}}}))}();