1 |
- import{d as F,c as e,a5 as I,q as u,F as M,k as R,ag as V,aV as N,R as r,f as O,r as E,ah as h,$ as P,_ as Y,am as A,aT as q,ai as U,P as $,aj as H,aW as G,ak as z,m as w,o as C}from"./index.ffe80dbe.js";import{O as J}from"./index.a0ef77e4.js";import{O as K}from"./index.4ddd16f0.js";import{O as Q}from"./index.45b38760.js";import{q as X}from"./quest-icon.f1b2f4e3.js";import{i as Z}from"./icon_student.660125da.js";import{I as ee}from"./index.7e972106.js";import{L as te}from"./index.cafcb8b5.js";import{D as ae}from"./index.ff4fe619.js";import"./index.1d5c6f70.js";import"./use-tab-status.5a3cd090.js";import"./utils.18cb7a73.js";import"./index.777c6c1a.js";import"./index.466e527a.js";import"./index.b4b77b5a.js";import"./index.02edecb1.js";const oe="_itemWrap_d4ln4_1",se="_itemTop_d4ln4_7",ie="_itemTopLeft_d4ln4_15",ne="_itemTopMain_d4ln4_15",ue="_itemTopSub_d4ln4_23",le="_itemTopRight_d4ln4_29",re="_imgWrap_d4ln4_34",ce="_imgIcon_d4ln4_44",me="_itemBottom_d4ln4_49",pe="_itemBottomDot_d4ln4_57",de="_dotMain_d4ln4_60",fe="_dotSub_d4ln4_75";var o={itemWrap:oe,itemTop:se,itemTopLeft:ie,itemTopMain:ne,itemTopSub:ue,itemTopRight:le,imgWrap:re,imgIcon:ce,itemBottom:me,itemBottomDot:pe,dotMain:de,dotSub:fe},ge="./assets/Image1.cbe96dac.png",ve="./assets/Image2.0b12593f.png",he="./assets/Image3.d7139ab6.png",_e="./assets/Image4.4870f6bf.png",ye="./assets/Image5.150ad63a.png";const De={1:{img:ge,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:ve,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:he,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:_e,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 Te=F({props:["item"],name:"detail-item",setup(s){const _=i=>{if(!i&&typeof i!="number")return{};let m=1;return i>20&&i<=40?m=2:i>40&&i<=60?m=3:i>60&&i<=80?m=4:i>80&&(m=5),m},a=()=>{const i=window.location.origin+`/orchestra-music-score/colexiu-report.html?id=${s.item.id}`;R({api:"openWebView",content:{url:i,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return()=>e(M,null,[e("div",null,[e("div",{class:o.itemWrap,onClick:a},[e("div",{class:o.itemTop},[e("div",{class:o.itemTopLeft},[e("p",{class:o.itemTopMain},[s.item.musicSheetName]),e("p",{class:o.itemTopSub},[s.item.createTime])]),e("div",{class:o.itemTopRight},[e("div",{class:o.imgWrap},[e("img",{src:De[_(s.item.score||0)].img,alt:""},null)]),e(I,{name:"arrow",class:o.imgIcon},null)])]),e("div",{class:o.itemBottom},[e("div",{class:o.itemBottomDot},[e("p",{class:o.dotMain,style:{color:"#F67146"}},[s.item.score||0,e("span",null,[u("\u5206")])," "]),e("p",{class:o.dotSub},[u(" \u7EFC\u5408\u5F97\u5206")])]),e("div",{class:o.itemBottomDot},[e("p",{class:o.dotMain},[s.item.intonation||0,e("span",null,[u("\u5206")])," "]),e("p",{class:o.dotSub},[u("\u97F3\u51C6 ")])]),e("div",{class:o.itemBottomDot},[e("p",{class:o.dotMain},[s.item.cadence||0,e("span",null,[u("\u5206")])," "]),e("p",{class:o.dotSub},[u("\u8282\u594F ")])]),e("div",{class:o.itemBottomDot},[e("p",{class:o.dotMain},[s.item.integrity||0,e("span",null,[u("\u5206")])," "]),e("p",{class:o.dotSub},[u("\u5B8C\u6210\u5EA6 ")])])])])])])}});const Ee="_exercisContainer_jyryw_1",we="_topWrap_jyryw_5",Ce="_topInfo_jyryw_5",Fe="_topInfoLeft_jyryw_13",Ie="_headWrap_jyryw_19",Me="_infoMsg_jyryw_26",be="_tag_jyryw_38",Be="_topInfoRight_jyryw_51",We="_infoDay_jyryw_58",xe="_infoDayMain_jyryw_61",je="_infoDaysub_jyryw_77",Se="_chioseWrap_jyryw_84",ke="_DialogTitle_jyryw_94",Le="_DialogConent_jyryw_114";var n={exercisContainer:Ee,topWrap:we,topInfo:Ce,topInfoLeft:Fe,headWrap:Ie,infoMsg:Me,tag:be,topInfoRight:Be,infoDay:We,infoDayMain:xe,infoDaysub:je,chioseWrap:Se,DialogTitle:ke,DialogConent:Le};function Re(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!z(s)}var Ze=F({name:"exercis-detail",setup(){V();const s=N(),_=r(O.platformApi),a=E({showPopoverTime:!1,showPopoverOrchestra:!1,currentDate:[h().format("YYYY"),h().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}),i=E({practiceMonth:s.query.practiceMonth?s.query.practiceMonth:a.currentDate[0]+""+a.currentDate[1],practiceMonthName:s.query.practiceMonthName?s.query.practiceMonthName:a.currentDate[0]+"\u5E74"+a.currentDate[1]+"\u6708",orchestraId:"",orchestraName:"",page:1,rows:20,userId:s.query.id,clientType:"STUDENT"}),m=r(!1),b=r(new Date(h().subtract(10,"year").format("YYYY-MM-DD"))),B=r(new Date(h().add(10,"year").format("YYYY-MM-DD"))),W=r(["year","month"]),d=r(!1),y=r(!1),f=r(!1),g=r(!1),c=r({}),p=r([]),v=async()=>{if(!a.isClick){a.isClick=!0,d.value&&(p.value=[],i.page=1,d.value=!1);try{const t=await w.post(`${_.value}/musicPracticeRecord/page`,{data:{...i,feature:"EVALUATION"}});if(p.value.length>0&&t.data.current===1)return;p.value=p.value.concat(t.data.rows||[]),i.page=t.data.current+1,g.value=p.value.length>0,y.value=!1,console.log(t.data,t.data.current>=t.data.pages),f.value=t.data.current>=t.data.pages}catch(t){const l=t.message;C(l),g.value=!1,f.value=!0}a.isClick=!1}},x=async()=>{try{const t=await w.get(`/api-backend/student/detail/${a.id}`);console.log(t),c.value={...t.data}}catch(t){const l=t.message;C(l)}},D=r(),j=r(0);P(async()=>{await v(),await x(),window.addEventListener("scroll",T),Y(()=>{const{height:t}=A(D.value);j.value=t})}),q(()=>{window.removeEventListener("scroll",T)});const T=()=>{const t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;a.scrollTop=t},S=t=>{a.heightV=t,console.log(t,"dataHeight")},k=t=>{i.practiceMonth=t.selectedValues[0]+t.selectedValues[1],i.practiceMonthName=t.selectedValues[0]+"\u5E74"+t.selectedValues[1]+"\u6708",a.showPopoverTime=!1,d.value=!0,v()},L=()=>{f.value=!1,y.value=!0,v()};return()=>{let t;return e(M,null,[e("div",{class:[n.exercisContainer,!g.value&&"emptyRootContainer"]},[e("div",{class:n.topWrap,ref:D},[e(K,{position:"top",background:"#F8F8F8",onGetHeight:S},{default:()=>[e(J,{border:!1,background:a.heightV>a.scrollTop?"transparent":"#fff"},{right:()=>e(I,{name:X,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(ee,{src:c.value.avatar?c.value.avatar:Z,fit:"cover",width:"68px",height:"68px"},null)]),e("div",{class:n.infoMsg},[e("p",null,[c.value.nickname]),e("div",{class:n.tag},[c.value.subjectNames?c.value.subjectNames:"\u6682\u65E0\u58F0\u90E8"])])]),e("div",{class:n.topInfoRight},[e("div",{class:n.infoDay},[e("p",{class:n.infoDayMain},[c.value.practiceDays?c.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},[c.value.practiceTimes?c.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",a.showPopoverTime?"searchItem-active":""],onClick:()=>{a.showPopoverTime=!0}},[e("span",null,[i.practiceMonthName])])])]),g.value?e(Q,{modelValue:d.value,"onUpdate:modelValue":l=>d.value=l,onRefresh:L,style:"min-height: 100vh;"},{default:()=>[e(te,{"loading-text":" ",finished:f.value,"finished-text":"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:v},Re(t=p.value.map(l=>e(Te,{item:l},null)))?t:{default:()=>[t]})]}):e(U,{tips:"\u6682\u65E0\u7EC3\u4E60\u7EDF\u8BA1"},null)]),e($,{show:a.showPopoverTime,"onUpdate:show":l=>a.showPopoverTime=l,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[e(ae,{onCancel:()=>{a.showPopoverTime=!1},onConfirm:k,modelValue:a.currentDate,"onUpdate:modelValue":l=>a.currentDate=l,minDate:b.value,maxDate:B.value,formatter:H,columnsType:W.value},null)]}),e(G,{class:"exercisDetailDialog",show:m.value,"onUpdate:show":l=>m.value=l,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\u5B66\u751F\u901A\u8FC7\u4E91\u6559\u7EC3\u81EA\u4E3B\u7EC3\u4E60\u7684\u6570\u636E\u7EDF\u8BA1\uFF0C\u53EF\u6839\u636E\u65F6\u95F4\u6BB5\u67E5\u8BE2\u5B66\u751F\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{Ze as default};
|