1 |
- import{d as F,c as e,a7 as M,t as u,F as w,e as A,ai as V,aj as P,U as c,g as b,r as I,ak as _,a1 as Y,a0 as O,av as q,b3 as H,al as $,am as U,P as G,b4 as z,b5 as J,an as K,n as D}from"./ResizeObserver.es.7b3c8c20.js";import{O as Q}from"./index.4676d40a.js";import{O as X}from"./index.47c9072c.js";import{q as Z}from"./quest-icon.f1b2f4e3.js";import{i as ee}from"./icon_student.660125da.js";import{D as te}from"./index.37d4b655.js";import{I as ae}from"./index.725d7287.js";import{N as oe}from"./index.ee38d147.js";import{L as se}from"./index.44e270b6.js";import"./index.601919da.js";import"./index.ef638512.js";import"./utils.94131bce.js";import"./Picker.40859110.js";import"./index.acee245e.js";import"./use-tab-status.299f907f.js";import"./index.3845f5b9.js";import"./index.0cdfaa50.js";import"./index.1a102cff.js";const ie="_itemWrap_d4ln4_1",ne="_itemTop_d4ln4_7",ue="_itemTopLeft_d4ln4_15",le="_itemTopMain_d4ln4_15",ce="_itemTopSub_d4ln4_23",re="_itemTopRight_d4ln4_29",me="_imgWrap_d4ln4_34",pe="_imgIcon_d4ln4_44",de="_itemBottom_d4ln4_49",fe="_itemBottomDot_d4ln4_57",ge="_dotMain_d4ln4_60",ve="_dotSub_d4ln4_75";var i={itemWrap:ie,itemTop:ne,itemTopLeft:ue,itemTopMain:le,itemTopSub:ce,itemTopRight:re,imgWrap:me,imgIcon:pe,itemBottom:de,itemBottomDot:fe,dotMain:ge,dotSub:ve},he="./assets/Image1.cbe96dac.png",_e="./assets/Image2.0b12593f.png",De="./assets/Image3.d7139ab6.png",Te="./assets/Image4.4870f6bf.png",ye="./assets/Image5.150ad63a.png";const Ee={1:{img:he,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:_e,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:De,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:Te,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:ye,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 Ce=F({props:["item"],name:"detail-item",setup(s){const d=a=>{if(!a&&typeof a!="number")return{};let m=1;return a>20&&a<=40?m=2:a>40&&a<=60?m=3:a>60&&a<=80?m=4:a>80&&(m=5),m},o=()=>{const a=window.location.origin+`/orchestra-music-score/colexiu-report.html?id=${s.item.id}`;A({api:"openWebView",content:{url:a,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return()=>e(w,null,[e("div",null,[e("div",{class:i.itemWrap,onClick:a=>{a.stopPropagation(),o()}},[e("div",{class:i.itemTop},[e("div",{class:i.itemTopLeft},[e("p",{class:i.itemTopMain},[s.item.musicSheetName]),e("p",{class:i.itemTopSub},[s.item.createTime])]),e("div",{class:i.itemTopRight},[e("div",{class:i.imgWrap},[e("img",{src:Ee[d(s.item.score||0)].img,alt:""},null)]),e(M,{name:"arrow",class:i.imgIcon},null)])]),e("div",{class:i.itemBottom},[e("div",{class:i.itemBottomDot},[e("p",{class:i.dotMain,style:{color:"#F67146"}},[s.item.score||0,e("span",null,[u("\u5206")])," "]),e("p",{class:i.dotSub},[u(" \u7EFC\u5408\u5F97\u5206")])]),e("div",{class:i.itemBottomDot},[e("p",{class:i.dotMain},[s.item.intonation||0,e("span",null,[u("\u5206")])," "]),e("p",{class:i.dotSub},[u("\u97F3\u51C6 ")])]),e("div",{class:i.itemBottomDot},[e("p",{class:i.dotMain},[s.item.cadence||0,e("span",null,[u("\u5206")])," "]),e("p",{class:i.dotSub},[u("\u8282\u594F ")])]),e("div",{class:i.itemBottomDot},[e("p",{class:i.dotMain},[s.item.integrity||0,e("span",null,[u("\u5206")])," "]),e("p",{class:i.dotSub},[u("\u5B8C\u6210\u5EA6 ")])])])])])])}});const be="_exercisContainer_1j6m1_1",Ie="_topWrap_1j6m1_5",Fe="_topInfo_1j6m1_5",Me="_topInfoLeft_1j6m1_13",we="_headWrap_1j6m1_19",Be="_infoMsg_1j6m1_26",je="_tag_1j6m1_38",Se="_topInfoRight_1j6m1_51",xe="_infoDay_1j6m1_58",We="_infoDayMain_1j6m1_61",Re="_infoDaysub_1j6m1_77",Ne="_chioseWrap_1j6m1_84",Le="_DialogTitle_1j6m1_94",ke="_DialogConent_1j6m1_114",Ae="_teacherSubject_1j6m1_131";var n={exercisContainer:be,topWrap:Ie,topInfo:Fe,topInfoLeft:Me,headWrap:we,infoMsg:Be,tag:je,topInfoRight:Se,infoDay:xe,infoDayMain:We,infoDaysub:Re,chioseWrap:Ne,DialogTitle:Le,DialogConent:ke,teacherSubject:Ae};function Ve(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!K(s)}var st=F({name:"exercis-detail",setup(){V();const s=P(),d=c(b.platformApi),o=I({showPopoverTime:!1,showPopoverOrchestra:!1,currentDate:[_().format("YYYY"),_().format("MM")],actions:[{text:"\u5168\u90E8\u4E50\u56E2",color:"var(--van-primary-color)"},{text:"\u4EA4\u4ED8\u56E2"},{text:"\u664B\u5347\u56E2"}],id:s.query.id,heightV:0,scrollTop:0,isClick:!1}),a=I({practiceMonth:s.query.practiceMonth?s.query.practiceMonth:o.currentDate[0]+""+o.currentDate[1],practiceMonthName:s.query.practiceMonthName?s.query.practiceMonthName:o.currentDate[0]+"\u5E74"+o.currentDate[1]+"\u6708",orchestraId:"",orchestraName:"",page:1,rows:20,userId:s.query.id,clientType:s.query.clientType?s.query.clientType:b.platformType}),m=c(!1),B=c(new Date(_().subtract(10,"year").format("YYYY-MM-DD"))),j=c(new Date(_().add(10,"year").format("YYYY-MM-DD"))),S=c(["year","month"]),f=c(!1),T=c(!1),g=c(!1),v=c(!1),l=c({}),p=c([]),h=async()=>{if(!o.isClick){o.isClick=!0,f.value&&(p.value=[],a.page=1,f.value=!1);try{const t=await D.post(`${d.value}/musicPracticeRecord/page`,{data:{...a,feature:"EVALUATION"}});if(p.value.length>0&&t.data.current===1)return;p.value=p.value.concat(t.data.rows||[]),a.page=t.data.current+1,v.value=p.value.length>0,T.value=!1,console.log(t.data,t.data.current>=t.data.pages),g.value=t.data.current>=t.data.pages}catch(t){t.message,v.value=!1,g.value=!0}o.isClick=!1}},x=async()=>{if(a.clientType==="TEACHER")try{const t=await D.post(`${d.value}/teacher/detail`,{data:{teacherId:o.id}});l.value={...t.data},l.value.subjectNames=t.data.subjectName.split(",")}catch(t){t.message}else try{const t=await D.get(`${d.value}/student/detail/${o.id}`);console.log(t),l.value={...t.data}}catch(t){t.message}},y=c(),W=c(0);Y(async()=>{await h(),await x(),window.addEventListener("scroll",E),O(()=>{const{height:t}=q(y.value);W.value=t})}),H(()=>{window.removeEventListener("scroll",E)});const E=()=>{const t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;o.scrollTop=t},R=t=>{o.heightV=t,console.log(t,"dataHeight")},N=t=>{a.practiceMonth=t.selectedValues[0]+t.selectedValues[1],a.practiceMonthName=t.selectedValues[0]+"\u5E74"+t.selectedValues[1]+"\u6708",o.showPopoverTime=!1,f.value=!0,h()},L=()=>{g.value=!1,T.value=!0,h()};return()=>{let t;return e(w,null,[e("div",{class:[n.exercisContainer,!v.value&&"emptyRootContainer"]},[e("div",{class:n.topWrap,ref:y},[e(Q,{position:"top",background:"#F8F8F8",onGetHeight:R},{default:()=>[e($,{border:!1,background:o.heightV>o.scrollTop?"transparent":"#fff"},{right:()=>e(M,{name:Z,size:22,color:"#333",onClick:()=>{m.value=!0}},null)})]}),e("div",{class:n.topInfo},[e("div",{class:n.topInfoLeft},[e("div",{class:n.headWrap},[e(ae,{src:l.value.avatar?l.value.avatar:ee,fit:"cover",width:"68px",height:"68px"},null)]),e("div",{class:n.infoMsg},[e("p",null,[l.value.nickname]),a.clientType==="TEACHER"?e(oe,{class:n.teacherSubject},{default:()=>{var r,C;return[(C=(r=l.value)==null?void 0:r.subjectNames)==null?void 0:C.map(k=>e("div",{class:n.tag},[k]))]}}):e("div",{class:n.tag},[l.value.subjectNames?l.value.subjectNames:"\u6682\u65E0\u58F0\u90E8"])])]),e("div",{class:n.topInfoRight},[e("div",{class:n.infoDay},[e("p",{class:n.infoDayMain},[l.value.practiceDays?l.value.practiceDays:0,"",e("span",null,[u("\u5929")])]),e("p",{class:n.infoDaysub},[u("\u7EC3\u4E60\u5929\u6570")])]),e("div",{class:n.infoTime},[e("p",{class:n.infoDayMain},[l.value.practiceTimes?l.value.practiceTimes:0,"",e("span",null,[u("\u5206\u949F")])]),e("p",{class:n.infoDaysub},[u("\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,[a.practiceMonthName])])])]),v.value?e(X,{modelValue:f.value,"onUpdate:modelValue":r=>f.value=r,onRefresh:L,style:"min-height: 100vh;"},{default:()=>[e(se,{"loading-text":" ",finished:g.value,"finished-text":"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:h},Ve(t=p.value.map(r=>e(Ce,{item:r},null)))?t:{default:()=>[t]})]}):e(U,{tips:"\u6682\u65E0\u7EC3\u4E60\u7EDF\u8BA1"},null)]),e(G,{show:o.showPopoverTime,"onUpdate:show":r=>o.showPopoverTime=r,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[e(te,{onCancel:()=>{o.showPopoverTime=!1},onConfirm:N,modelValue:o.currentDate,"onUpdate:modelValue":r=>o.currentDate=r,minDate:B.value,maxDate:j.value,formatter:z,columnsType:S.value},null)]}),e(J,{class:"exercisDetailDialog",show:m.value,"onUpdate:show":r=>m.value=r,title:"\u63D0\u793A\u6846",confirmButtonText:"\u6211\u77E5\u9053\u4E86"},{title:()=>e("div",{class:n.DialogTitle},[e("span",null,null),e("p",null,[u("\u4EC0\u4E48\u662F\u7EC3\u4E60\u6570\u636E")])]),default:()=>e("div",{class:n.DialogConent},[e("p",null,[u("\u7EC3\u4E60\u6570\u636E\u662F"),a.clientType=="TEACHER"?"":"\u5B66\u5458",u("\u901A\u8FC7\u4E91\u7EC3\u4E60\u81EA\u4E3B\u7EC3\u4E60\u7684\u6570\u636E\u7EDF\u8BA1\uFF0C\u53EF\u6839\u636E\u65F6\u95F4\u6BB5\u67E5\u8BE2"),a.clientType=="TEACHER"?"":"\u5B66\u5458",u("\u7684\u7EC3\u4E60\u5929\u6570\u548C\u7EC3\u4E60\u65F6\u957F")," "]),e("p",null,[u("\u7EC3\u4E60\u5929\u6570\uFF1A\u5F53\u5929\u6709\u66F2\u76EE\u64AD\u653E\u6216\u6D4B\u8BC4\u8BB0\u5F55\u5373\u7B97\u7EC3\u4E60")]),e("p",null,[u("\u7EC3\u4E60\u65F6\u957F\uFF1A\u66F2\u76EE\u64AD\u653E\u548C\u66F2\u76EE\u6D4B\u8BC4\u7684\u65F6\u957F\u603B\u548C")])])})])}}});export{st as default};
|