1 |
- import{t as O,w as L,d as k,R as m,r as x,aP as Y,aH as $,a0 as H,W as U,Z as G,ac as Z,ay as z,c as e,a5 as R,an as W,aT as P,aI as X,a1 as J,D as K,q as c,F as V,e as Q,ag as ee,ah as te,g as A,ai as B,$ as ae,_ as oe,aZ as se,aj as ne,ak as ie,P as le,a_ as ce,a$ as ue,al as re,m as S}from"./index.332c7f08.js";import{O as me}from"./index.d7c1b6ac.js";import{O as pe}from"./index.626c48f9.js";import{q as de}from"./quest-icon.f1b2f4e3.js";import{i as fe}from"./icon_student.660125da.js";import{D as ge}from"./index.1361b221.js";import{I as ve}from"./index.96a8db5e.js";import{L as he}from"./index.b186dfda.js";import"./utils.4b86e8c9.js";import"./Picker.e56f94bd.js";import"./index.7c580591.js";import"./use-tab-status.9d769af8.js";import"./index.1e2dfe6e.js";import"./index.4aa8e076.js";import"./index.656e257f.js";const[_e,w]=O("notice-bar"),De={text:String,mode:String,color:String,delay:L(1),speed:L(60),leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null}};var Te=k({name:_e,props:De,emits:["close","replay"],setup(a,{emit:f,slots:o}){let s=0,u=0,C;const E=m(),b=m(),i=x({show:!0,offset:0,duration:0}),I=()=>{if(o["left-icon"])return o["left-icon"]();if(a.leftIcon)return e(R,{class:w("left-icon"),name:a.leftIcon},null)},D=()=>{if(a.mode==="closeable")return"cross";if(a.mode==="link")return"arrow"},T=p=>{a.mode==="closeable"&&(i.show=!1,f("close",p))},r=()=>{if(o["right-icon"])return o["right-icon"]();const p=D();if(p)return e(R,{name:p,class:w("right-icon"),onClick:T},null)},g=()=>{i.offset=s,i.duration=0,X(()=>{P(()=>{i.offset=-u,i.duration=(u+s)/+a.speed,f("replay")})})},y=()=>{const p=a.scrollable===!1&&!a.wrapable,h={transform:i.offset?`translateX(${i.offset}px)`:"",transitionDuration:`${i.duration}s`};return e("div",{ref:E,role:"marquee",class:w("wrap")},[e("div",{ref:b,style:h,class:[w("content"),{"van-ellipsis":p}],onTransitionend:g},[o.default?o.default():a.text])])},v=()=>{const{delay:p,speed:h,scrollable:_}=a,j=J(p)?+p*1e3:0;s=0,u=0,i.offset=0,i.duration=0,clearTimeout(C),C=setTimeout(()=>{if(!E.value||!b.value||_===!1)return;const M=W(E).width,F=W(b).width;(_||F>M)&&P(()=>{s=M,u=F,i.offset=-u,i.duration=u/+h})},j)};return Y(v),$(v),H("pageshow",v),U({reset:v}),G(()=>[a.text,a.scrollable],v),()=>{const{color:p,wrapable:h,background:_}=a;return Z(e("div",{role:"alert",class:w({wrapable:h}),style:{color:p,background:_}},[I(),y(),r()]),[[z,i.show]])}}});const ye=K(Te),Ee="_itemWrap_d4ln4_1",be="_itemTop_d4ln4_7",we="_itemTopLeft_d4ln4_15",Ce="_itemTopMain_d4ln4_15",Ie="_itemTopSub_d4ln4_23",Me="_itemTopRight_d4ln4_29",Fe="_imgWrap_d4ln4_34",Be="_imgIcon_d4ln4_44",Re="_itemBottom_d4ln4_49",je="_itemBottomDot_d4ln4_57",Se="_dotMain_d4ln4_60",xe="_dotSub_d4ln4_75";var n={itemWrap:Ee,itemTop:be,itemTopLeft:we,itemTopMain:Ce,itemTopSub:Ie,itemTopRight:Me,imgWrap:Fe,imgIcon:Be,itemBottom:Re,itemBottomDot:je,dotMain:Se,dotSub:xe},We="./assets/Image1.cbe96dac.png",ke="./assets/Image2.0b12593f.png",Ne="./assets/Image3.d7139ab6.png",Le="./assets/Image4.4870f6bf.png",Pe="./assets/Image5.150ad63a.png";const Ae={1:{img:We,tips:"\u4F60\u7684\u6F14\u594F\u4E0D\u592A\u597D\uFF0C\u97F3\u51C6\u548C\u5B8C\u6574\u6027\u8FD8\u9700\u52A0\u5F3A\uFF0C\u518D\u7EC3\u4E00\u7EC3\u5427\uFF5E",mome:"\u6562\u4E8E\u5C1D\u8BD5"},2:{img:ke,tips:"\u4F60\u7684\u6F14\u594F\u8FD8\u4E0D\u719F\u7EC3\uFF0C\u97F3\u51C6\u548C\u5B8C\u6574\u6027\u8FD8\u9700\u52A0\u5F3A\uFF0C\u52A0\u7D27\u8BAD\u7EC3\u624D\u80FD\u6709\u597D\u6210\u7EE9\u54E6\uFF5E",mome:"\u8FD8\u8981\u52A0\u6CB9\u54E6\uFF5E"},3:{img:Ne,tips:"\u4F60\u7684\u6F14\u594F\u8FD8\u4E0D\u6D41\u7545\uFF0C\u97F3\u51C6\u548C\u8282\u594F\u8FD8\u9700\u52A0\u5F3A\uFF0C\u79D1\u5B66\u7684\u7EC3\u4E60\u624D\u80FD\u66F4\u5B8C\u7F8E\u54E6\uFF5E",mome:"\u7A81\u7834\u81EA\u6211"},4:{img:Le,tips:"\u4F60\u7684\u6F14\u594F\u8FD8\u4E0D\u9519\uFF0C\u7EE7\u7EED\u52A0\u6CB9\u5427\uFF0C\u52A0\u5F3A\u97F3\u51C6\uFF0C\u79BB\u5B8C\u7F8E\u5C31\u5DEE\u4E00\u6B65\u5566\uFF5E",mome:"\u5D2D\u9732\u5934\u89D2"},5:{img:Pe,tips:"\u4F60\u7684\u6F14\u594F\u975E\u5E38\u4E0D\u9519\uFF0C\u97F3\u51C6\u7684\u628A\u63E1\u548C\u8282\u594F\u7A0D\u6709\u7455\u75B5\uFF0C\u5B8C\u6574\u6027\u628A\u63E1\u7684\u5F88\u597D~",mome:"\u4F60\u5F88\u68D2"}};var Ve=k({props:["item"],name:"detail-item",setup(a){const f=s=>{if(!s&&typeof s!="number")return{};let u=1;return s>20&&s<=40?u=2:s>40&&s<=60?u=3:s>60&&s<=80?u=4:s>80&&(u=5),u},o=()=>{const s=window.location.origin+`/orchestra-music-score/colexiu-report.html?id=${a.item.id}`;Q({api:"openWebView",content:{url:s,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return()=>e(V,null,[e("div",null,[e("div",{class:n.itemWrap,onClick:s=>{s.stopPropagation(),o()}},[e("div",{class:n.itemTop},[e("div",{class:n.itemTopLeft},[e("p",{class:n.itemTopMain},[a.item.musicSheetName]),e("p",{class:n.itemTopSub},[a.item.createTime])]),e("div",{class:n.itemTopRight},[e("div",{class:n.imgWrap},[e("img",{src:Ae[f(a.item.score||0)].img,alt:""},null)]),e(R,{name:"arrow",class:n.imgIcon},null)])]),e("div",{class:n.itemBottom},[e("div",{class:n.itemBottomDot},[e("p",{class:n.dotMain,style:{color:"#F67146"}},[a.item.score||0,e("span",null,[c("\u5206")])," "]),e("p",{class:n.dotSub},[c(" \u7EFC\u5408\u5F97\u5206")])]),e("div",{class:n.itemBottomDot},[e("p",{class:n.dotMain},[a.item.intonation||0,e("span",null,[c("\u5206")])," "]),e("p",{class:n.dotSub},[c("\u97F3\u51C6 ")])]),e("div",{class:n.itemBottomDot},[e("p",{class:n.dotMain},[a.item.cadence||0,e("span",null,[c("\u5206")])," "]),e("p",{class:n.dotSub},[c("\u8282\u594F ")])]),e("div",{class:n.itemBottomDot},[e("p",{class:n.dotMain},[a.item.integrity||0,e("span",null,[c("\u5206")])," "]),e("p",{class:n.dotSub},[c("\u5B8C\u6210\u5EA6 ")])])])])])])}});const qe="_exercisContainer_1j6m1_1",Oe="_topWrap_1j6m1_5",Ye="_topInfo_1j6m1_5",$e="_topInfoLeft_1j6m1_13",He="_headWrap_1j6m1_19",Ue="_infoMsg_1j6m1_26",Ge="_tag_1j6m1_38",Ze="_topInfoRight_1j6m1_51",ze="_infoDay_1j6m1_58",Xe="_infoDayMain_1j6m1_61",Je="_infoDaysub_1j6m1_77",Ke="_chioseWrap_1j6m1_84",Qe="_DialogTitle_1j6m1_94",et="_DialogConent_1j6m1_114",tt="_teacherSubject_1j6m1_131";var l={exercisContainer:qe,topWrap:Oe,topInfo:Ye,topInfoLeft:$e,headWrap:He,infoMsg:Ue,tag:Ge,topInfoRight:Ze,infoDay:ze,infoDayMain:Xe,infoDaysub:Je,chioseWrap:Ke,DialogTitle:Qe,DialogConent:et,teacherSubject:tt};function at(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!re(a)}var _t=k({name:"exercis-detail",setup(){ee();const a=te(),f=m(A.platformApi),o=x({showPopoverTime:!1,showPopoverOrchestra:!1,currentDate:[B().format("YYYY"),B().format("MM")],actions:[{text:"\u5168\u90E8\u4E50\u56E2",color:"var(--van-primary-color)"},{text:"\u4EA4\u4ED8\u56E2"},{text:"\u664B\u5347\u56E2"}],id:a.query.id,heightV:0,scrollTop:0,isClick:!1}),s=x({practiceMonth:a.query.practiceMonth?a.query.practiceMonth:o.currentDate[0]+""+o.currentDate[1],practiceMonthName:a.query.practiceMonthName?a.query.practiceMonthName:o.currentDate[0]+"\u5E74"+o.currentDate[1]+"\u6708",orchestraId:"",orchestraName:"",page:1,rows:20,userId:a.query.id,clientType:a.query.clientType?a.query.clientType:A.platformType}),u=m(!1),C=m(new Date(B().subtract(10,"year").format("YYYY-MM-DD"))),E=m(new Date(B().add(10,"year").format("YYYY-MM-DD"))),b=m(["year","month"]),i=m(!1),I=m(!1),D=m(!1),T=m(!1),r=m({}),g=m([]),y=async()=>{if(!o.isClick){o.isClick=!0,i.value&&(g.value=[],s.page=1,i.value=!1);try{const t=await S.post(`${f.value}/musicPracticeRecord/page`,{data:{...s,feature:"EVALUATION"}});if(g.value.length>0&&t.data.current===1)return;g.value=g.value.concat(t.data.rows||[]),s.page=t.data.current+1,T.value=g.value.length>0,I.value=!1,console.log(t.data,t.data.current>=t.data.pages),D.value=t.data.current>=t.data.pages}catch(t){t.message,T.value=!1,D.value=!0}o.isClick=!1}},v=async()=>{if(s.clientType==="TEACHER")try{const t=await S.post(`${f.value}/teacher/detail`,{data:{teacherId:o.id}});r.value={...t.data},r.value.subjectNames=t.data.subjectName.split(",")}catch(t){t.message}else try{const t=await S.get(`${f.value}/student/detail/${o.id}`);console.log(t),r.value={...t.data}}catch(t){t.message}},p=m(),h=m(0);ae(async()=>{await y(),await v(),window.addEventListener("scroll",_),oe(()=>{const{height:t}=W(p.value);h.value=t})}),se(()=>{window.removeEventListener("scroll",_)});const _=()=>{const t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;o.scrollTop=t},j=t=>{o.heightV=t,console.log(t,"dataHeight")},M=t=>{s.practiceMonth=t.selectedValues[0]+t.selectedValues[1],s.practiceMonthName=t.selectedValues[0]+"\u5E74"+t.selectedValues[1]+"\u6708",o.showPopoverTime=!1,i.value=!0,y()},F=()=>{D.value=!1,I.value=!0,y()};return()=>{let t;return e(V,null,[e("div",{class:[l.exercisContainer,!T.value&&"emptyRootContainer"]},[e("div",{class:l.topWrap,ref:p},[e(me,{position:"top",background:"#F8F8F8",onGetHeight:j},{default:()=>[e(ne,{border:!1,background:o.heightV>o.scrollTop?"transparent":"#fff"},{right:()=>e(R,{name:de,size:22,color:"#333",onClick:()=>{u.value=!0}},null)})]}),e("div",{class:l.topInfo},[e("div",{class:l.topInfoLeft},[e("div",{class:l.headWrap},[e(ve,{src:r.value.avatar?r.value.avatar:fe,fit:"cover",width:"68px",height:"68px"},null)]),e("div",{class:l.infoMsg},[e("p",null,[r.value.nickname]),s.clientType==="TEACHER"?e(ye,{class:l.teacherSubject},{default:()=>{var d,N;return[(N=(d=r.value)==null?void 0:d.subjectNames)==null?void 0:N.map(q=>e("div",{class:l.tag},[q]))]}}):e("div",{class:l.tag},[r.value.subjectNames?r.value.subjectNames:"\u6682\u65E0\u58F0\u90E8"])])]),e("div",{class:l.topInfoRight},[e("div",{class:l.infoDay},[e("p",{class:l.infoDayMain},[r.value.practiceDays?r.value.practiceDays:0,"",e("span",null,[c("\u5929")])]),e("p",{class:l.infoDaysub},[c("\u7EC3\u4E60\u5929\u6570")])]),e("div",{class:l.infoTime},[e("p",{class:l.infoDayMain},[r.value.practiceTimes?r.value.practiceTimes:0,"",e("span",null,[c("\u5206\u949F")])]),e("p",{class:l.infoDaysub},[c("\u7EC3\u4E60\u65F6\u957F")])])])]),e("div",{class:"searchGroup-single",style:"padding-top: 0 !important;"},[e("div",{class:["searchItem",o.showPopoverTime?"searchItem-active":""],onClick:()=>{o.showPopoverTime=!0}},[e("span",null,[s.practiceMonthName])])])]),T.value?e(pe,{modelValue:i.value,"onUpdate:modelValue":d=>i.value=d,onRefresh:F,style:"min-height: 100vh;"},{default:()=>[e(he,{"loading-text":" ",finished:D.value,"finished-text":"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:y},at(t=g.value.map(d=>e(Ve,{item:d},null)))?t:{default:()=>[t]})]}):e(ie,{tips:"\u6682\u65E0\u7EC3\u4E60\u7EDF\u8BA1"},null)]),e(le,{show:o.showPopoverTime,"onUpdate:show":d=>o.showPopoverTime=d,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[e(ge,{onCancel:()=>{o.showPopoverTime=!1},onConfirm:M,modelValue:o.currentDate,"onUpdate:modelValue":d=>o.currentDate=d,minDate:C.value,maxDate:E.value,formatter:ce,columnsType:b.value},null)]}),e(ue,{class:"exercisDetailDialog",show:u.value,"onUpdate:show":d=>u.value=d,title:"\u63D0\u793A\u6846",confirmButtonText:"\u6211\u77E5\u9053\u4E86"},{title:()=>e("div",{class:l.DialogTitle},[e("span",null,null),e("p",null,[c("\u4EC0\u4E48\u662F\u7EC3\u4E60\u6570\u636E")])]),default:()=>e("div",{class:l.DialogConent},[e("p",null,[c("\u7EC3\u4E60\u6570\u636E\u662F"),s.clientType=="TEACHER"?"":"\u5B66\u5458",c("\u901A\u8FC7\u4E91\u6559\u7EC3\u81EA\u4E3B\u7EC3\u4E60\u7684\u6570\u636E\u7EDF\u8BA1\uFF0C\u53EF\u6839\u636E\u65F6\u95F4\u6BB5\u67E5\u8BE2"),s.clientType=="TEACHER"?"":"\u5B66\u5458",c("\u7684\u7EC3\u4E60\u5929\u6570\u548C\u7EC3\u4E60\u65F6\u957F")," "]),e("p",null,[c("\u7EC3\u4E60\u5929\u6570\uFF1A\u5F53\u5929\u6709\u66F2\u76EE\u64AD\u653E\u6216\u6D4B\u8BC4\u8BB0\u5F55\u5373\u7B97\u7EC3\u4E60")]),e("p",null,[c("\u7EC3\u4E60\u65F6\u957F\uFF1A\u66F2\u76EE\u64AD\u653E\u548C\u66F2\u76EE\u6D4B\u8BC4\u7684\u65F6\u957F\u603B\u548C")])])})])}}});export{_t as default};
|