exercis-detail.8d1f2327.js 9.4 KB

12
  1. import{d as C,c as e,a5 as F,q as u,F as I,e as L,ag as R,ah as V,R as l,g as N,r as E,ai as h,$ as P,_ as Y,an as A,aZ as O,aj as q,ak as $,P as U,a_ as H,a$ as G,al as z,m as w}from"./index.1c621181.js";import{O as Z}from"./index.b491c24a.js";import{O as J}from"./index.b0685ec5.js";import{q as K}from"./quest-icon.f1b2f4e3.js";import{i as Q}from"./icon_student.660125da.js";import{D as X}from"./index.d270485b.js";import{I as ee}from"./index.4c221cbe.js";import{L as te}from"./index.d5ee0b18.js";import"./utils.3d9f83cd.js";import"./Picker.9bc4331c.js";import"./index.88a00aa9.js";import"./use-tab-status.40058c51.js";import"./index.78a302c3.js";import"./index.d5b73933.js";import"./index.53518914.js";const ae="_itemWrap_d4ln4_1",oe="_itemTop_d4ln4_7",se="_itemTopLeft_d4ln4_15",ie="_itemTopMain_d4ln4_15",ne="_itemTopSub_d4ln4_23",ue="_itemTopRight_d4ln4_29",le="_imgWrap_d4ln4_34",re="_imgIcon_d4ln4_44",ce="_itemBottom_d4ln4_49",me="_itemBottomDot_d4ln4_57",pe="_dotMain_d4ln4_60",de="_dotSub_d4ln4_75";var o={itemWrap:ae,itemTop:oe,itemTopLeft:se,itemTopMain:ie,itemTopSub:ne,itemTopRight:ue,imgWrap:le,imgIcon:re,itemBottom:ce,itemBottomDot:me,dotMain:pe,dotSub:de},fe="./assets/Image1.cbe96dac.png",ge="./assets/Image2.0b12593f.png",ve="./assets/Image3.d7139ab6.png",he="./assets/Image4.4870f6bf.png",_e="./assets/Image5.150ad63a.png";const ye={1:{img:fe,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:ge,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:ve,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:he,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:_e,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 De=C({props:["item"],name:"detail-item",setup(s){const _=i=>{if(!i&&typeof i!="number")return{};let c=1;return i>20&&i<=40?c=2:i>40&&i<=60?c=3:i>60&&i<=80?c=4:i>80&&(c=5),c},a=()=>{const i=window.location.origin+`/orchestra-music-score/colexiu-report.html?id=${s.item.id}`;L({api:"openWebView",content:{url:i,orientation:0,isHideTitle:!0,statusBarTextColor:!1,isOpenLight:!0}})};return()=>e(I,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:ye[_(s.item.score||0)].img,alt:""},null)]),e(F,{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 Te="_exercisContainer_jyryw_1",Ee="_topWrap_jyryw_5",we="_topInfo_jyryw_5",Ce="_topInfoLeft_jyryw_13",Fe="_headWrap_jyryw_19",Ie="_infoMsg_jyryw_26",Me="_tag_jyryw_38",be="_topInfoRight_jyryw_51",Be="_infoDay_jyryw_58",xe="_infoDayMain_jyryw_61",We="_infoDaysub_jyryw_77",je="_chioseWrap_jyryw_84",Se="_DialogTitle_jyryw_94",ke="_DialogConent_jyryw_114";var n={exercisContainer:Te,topWrap:Ee,topInfo:we,topInfoLeft:Ce,headWrap:Fe,infoMsg:Ie,tag:Me,topInfoRight:be,infoDay:Be,infoDayMain:xe,infoDaysub:We,chioseWrap:je,DialogTitle:Se,DialogConent:ke};function Le(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!z(s)}var Ke=C({name:"exercis-detail",setup(){R();const s=V(),_=l(N.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"}),c=l(!1),M=l(new Date(h().subtract(10,"year").format("YYYY-MM-DD"))),b=l(new Date(h().add(10,"year").format("YYYY-MM-DD"))),B=l(["year","month"]),d=l(!1),y=l(!1),f=l(!1),g=l(!1),r=l({}),p=l([]),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){t.message,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),r.value={...t.data}}catch(t){t.message}},D=l(),W=l(0);P(async()=>{await v(),await x(),window.addEventListener("scroll",T),Y(()=>{const{height:t}=A(D.value);W.value=t})}),O(()=>{window.removeEventListener("scroll",T)});const T=()=>{const t=window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;a.scrollTop=t},j=t=>{a.heightV=t,console.log(t,"dataHeight")},S=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()},k=()=>{f.value=!1,y.value=!0,v()};return()=>{let t;return e(I,null,[e("div",{class:[n.exercisContainer,!g.value&&"emptyRootContainer"]},[e("div",{class:n.topWrap,ref:D},[e(Z,{position:"top",background:"#F8F8F8",onGetHeight:j},{default:()=>[e(q,{border:!1,background:a.heightV>a.scrollTop?"transparent":"#fff"},{right:()=>e(F,{name:K,size:22,color:"#333",onClick:()=>{c.value=!0}},null)})]}),e("div",{class:n.topInfo},[e("div",{class:n.topInfoLeft},[e("div",{class:n.headWrap},[e(ee,{src:r.value.avatar?r.value.avatar:Q,fit:"cover",width:"68px",height:"68px"},null)]),e("div",{class:n.infoMsg},[e("p",null,[r.value.nickname]),e("div",{class:n.tag},[r.value.subjectNames?r.value.subjectNames:"\u6682\u65E0\u58F0\u90E8"])])]),e("div",{class:n.topInfoRight},[e("div",{class:n.infoDay},[e("p",{class:n.infoDayMain},[r.value.practiceDays?r.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},[r.value.practiceTimes?r.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(J,{modelValue:d.value,"onUpdate:modelValue":m=>d.value=m,onRefresh:k,style:"min-height: 100vh;"},{default:()=>[e(te,{"loading-text":" ",finished:f.value,"finished-text":"\u6CA1\u6709\u66F4\u591A\u4E86",onLoad:v},Le(t=p.value.map(m=>e(De,{item:m},null)))?t:{default:()=>[t]})]}):e($,{tips:"\u6682\u65E0\u7EC3\u4E60\u7EDF\u8BA1"},null)]),e(U,{show:a.showPopoverTime,"onUpdate:show":m=>a.showPopoverTime=m,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[e(X,{onCancel:()=>{a.showPopoverTime=!1},onConfirm:S,modelValue:a.currentDate,"onUpdate:modelValue":m=>a.currentDate=m,minDate:M.value,maxDate:b.value,formatter:H,columnsType:B.value},null)]}),e(G,{class:"exercisDetailDialog",show:c.value,"onUpdate:show":m=>c.value=m,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\u5458\u901A\u8FC7\u4E91\u6559\u7EC3\u81EA\u4E3B\u7EC3\u4E60\u7684\u6570\u636E\u7EDF\u8BA1\uFF0C\u53EF\u6839\u636E\u65F6\u95F4\u6BB5\u67E5\u8BE2\u5B66\u5458\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{Ke as default};