index-legacy-d5df10b3-1724872791500.js 16 KB

1
  1. System.register(["./teacherIcon-legacy-3eeb62c3-1724872791500.js","./api-legacy-67ba6d57-1724872791500.js","./index-legacy-508a3c9b-1724872791500.js","./index-legacy-0bdb7c82-1724872791500.js","./index-legacy-29ece040-1724872791500.js","./urlUtils-legacy-0ad6488a-1724872791500.js"],(function(e,t){"use strict";var o,i,n,r,l,a,_,s,d,m,c,g,x,u,p,f,v,w,h,y,b,k,j,A,L,C,I,F;return{setters:[e=>{o=e.d},e=>{i=e.e},e=>{n=e.d,r=e.b,l=e.e,a=e.f,_=e.aM,s=e.k,d=e.Q,m=e.h,c=e.x,g=e.j,x=e.l,u=e.m,p=e.n,f=e.s,v=e.c,w=e.r,h=e.w,y=e.P,b=e.b9,k=e.F,j=e.b8,A=e.G},e=>{L=e.T},e=>{C=e.C,I=e.F},e=>{F=e.v}],execute:function(){var T=document.createElement("style");T.textContent="._commonWork_jydxg_1{width:29.16666667vw;background:#FFFFFF;border-radius:1.25vw;position:relative;padding:0 1.5625vw 1.82291667vw}._commonWork_jydxg_1 ._downMoveBg_jydxg_8{position:absolute;top:0;left:0;width:29.16666667vw;height:6.30208333vw}._commonWork_jydxg_1 ._dingPng_jydxg_15{width:8.4375vw;height:5.10416667vw;position:absolute;left:50%;margin-left:-4.21875vw;top:-2.55208333vw;z-index:100}._commonWork_jydxg_1 ._closeAble_jydxg_24{cursor:pointer;width:1.30208333vw;height:1.30208333vw;position:absolute;top:.9375vw;right:1.04166667vw}._commonWork_jydxg_1 h2{margin-top:3.33333333vw;height:1.71875vw;font-size:1.25rem;font-family:PingFangSC-Semibold,PingFang SC;font-weight:600;color:#000;line-height:1.71875vw;text-align:center;margin-bottom:.78125vw}._commonWork_jydxg_1 ._header_jydxg_43{display:flex;align-items:center;padding:0 0 .67708333vw}._commonWork_jydxg_1 ._header_jydxg_43 ._navatar_jydxg_48{width:3.125vw;height:3.125vw;border-radius:50%;padding:.10416667vw;border:1px solid #198CFE;margin-right:.78125vw;flex-shrink:0;background-color:#fff!important}._commonWork_jydxg_1 ._header_jydxg_43 ._navatar_jydxg_48 img{border-radius:50%}._commonWork_jydxg_1 ._header_jydxg_43 ._userInfo_jydxg_61{padding-top:.20833333vw;flex:1}._commonWork_jydxg_1 ._header_jydxg_43 ._userInfo_jydxg_61 h3{font-size:max(.88541667rem,14Px);font-weight:600;color:#131415;line-height:1.45833333vw}._commonWork_jydxg_1 ._header_jydxg_43 ._userInfo_jydxg_61 p{font-size:max(.83333333rem,12Px);color:#777;line-height:1.45833333vw}._commonWork_jydxg_1 ._textarea_jydxg_76{margin-top:.41666667vw;background-color:#f2f4f7!important;border-radius:.52083333vw;--n-border: 1px solid #F2F4F7 !important}._commonWork_jydxg_1 ._textarea_jydxg_76 .n-input-wrapper{padding-bottom:1.66666667vw}._commonWork_jydxg_1 ._textarea_jydxg_76 .n-input__textarea-el{font-weight:500;color:#131415}._commonWork_jydxg_1 .n-button{min-width:8.125vw}._commonWork_jydxg_1 ._submitAppBtn_jydxg_92{background:linear-gradient(305deg,#40C8FF 0%,#3192FF 100%);border-radius:1.25vw;border:none}._commonWork_jydxg_1 ._submitAppBtn_jydxg_92 .n-button__border,._commonWork_jydxg_1 ._submitAppBtn_jydxg_92 .n-button__state-border{display:none}._removeVisiable1_jydxg_103{width:24.63541667vw}._removeVisiable1_jydxg_103 .n-card-header{font-size:max(1.14583333rem,16Px)}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109{padding:1.04166667vw 2.08333333vw 0}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109 p{font-size:max(.9375rem,14Px);color:#777;line-height:1.5625vw}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109 p span{color:#ea4132}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109 ._selectBtn_jydxg_120{display:flex;justify-content:center;padding-top:.67708333vw;padding-bottom:.41666667vw}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109 ._selectBtn_jydxg_120 .n-checkbox{display:flex;align-items:center;--n-border-radius: 50% !important}._removeVisiable1_jydxg_103 ._studentRemove_jydxg_109 ._selectBtn_jydxg_120 .n-checkbox__label{font-size:max(.83333333rem,12Px);color:#777;line-height:1.25vw}._removeVisiable1_jydxg_103 ._btnGroupModal_jydxg_136{padding:1.66666667vw 0}._removeVisiable1_jydxg_103 ._btnGroupModal_jydxg_136 .n-button{height:2.44791667vw;min-width:8.125vw}._workItem_1l2x0_1{background:#F5F6FA;border-radius:.72916667vw;border:.10416667vw solid #ECEDEF;overflow:hidden;transition:all .2s ease}._workItem_1l2x0_1:hover{transition:all .2s ease;border-color:#198cfe;transform:scale(1.01)}._workItem_1l2x0_1._work-content-disabled_1l2x0_13:hover{transition:all .2s ease;border-color:#ecedef;transform:scale(1);cursor:not-allowed}._workItem_1l2x0_1._work-content-disabled_1l2x0_13 ._expireBg_1l2x0_19{cursor:not-allowed}._work-content_1l2x0_13{height:8.85416667vw;background:#ffffff;position:relative;overflow:hidden;transition:all .2s ease;cursor:pointer;display:flex;align-items:center;justify-content:center}._work-content_1l2x0_13 ._videoSection_1l2x0_33{width:100%;height:100%;display:flex;align-items:center;justify-content:center}._work-content_1l2x0_13 ._expireBg_1l2x0_19{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.4);display:flex;align-items:center;justify-content:center;font-weight:600;font-size:max(.83333333rem,13Px);color:#fff}._work-content_1l2x0_13 ._nodata_1l2x0_51{width:6.875vw!important;height:6.61458333vw!important;cursor:not-allowed!important}._work-content_1l2x0_13 ._reportBtn_1l2x0_56{position:absolute;right:.41666667vw;top:.41666667vw;z-index:9;--n-height: max(1.45833333vw, 24Px) !important;--n-padding: 0 .41666667vw !important;--n-font-size: max(.72916667rem, 11Px) !important}._work-content_1l2x0_13 .n-image{width:100%;height:inherit}._work-content_1l2x0_13 .n-image img{width:100%;height:fit-content}._work-footer_1l2x0_73{display:flex;align-items:center;justify-content:space-between;padding:.52083333vw .625vw}._work-footer_1l2x0_73 ._type_1l2x0_79{gap:.41666667vw .52083333vw!important}._work-footer_1l2x0_73 ._title-text_1l2x0_82{width:7.8125vw}._work-footer_1l2x0_73 ._scoreGroup_1l2x0_85{font-weight:700;font-size:max(1.25rem,20Px);color:#1677ff;font-family:DINA,DINAlternate}._work-footer_1l2x0_73 ._scoreGroup_1l2x0_85 span{font-size:max(.625rem,10Px);padding-left:.10416667vw;vertical-align:middle}._work-footer_1l2x0_73 ._scoreGroup_1l2x0_85 ._noSubmit_1l2x0_96{font-weight:500;font-size:max(.72916667rem,11Px);color:rgba(19,20,21,.5)}._work-footer_1l2x0_73 ._scoreGroup_1l2x0_85._scoreGroupEval_1l2x0_101{color:#f51515}._trainInfo_1l2x0_104{max-width:82%}._trainInfo_1l2x0_104 ._trainName_1l2x0_107{display:flex;align-items:center;font-size:max(.83333333rem,13Px);font-family:PingFangSC,PingFang SC;font-weight:600;color:#131415;line-height:1.09375vw}._trainInfo_1l2x0_104 ._type_1l2x0_79{padding:0 .46875vw;display:inline-block;background-color:#ccc;border-radius:.26041667vw;font-size:max(.67708333rem,11Px);font-weight:500;color:#fff;height:18Px;line-height:18Px;margin-right:.36458333vw;flex-shrink:0}._trainInfo_1l2x0_104 ._PRACTICE_1l2x0_129{background:linear-gradient(270deg,#23C3FF 0%,#007AFE 100%)}._trainInfo_1l2x0_104 ._EVALUATION_1l2x0_132{background:linear-gradient(270deg,#FF7B57 0%,#FF3460 100%)}._trainInfo_1l2x0_104 ._tagList_1l2x0_135{display:flex;align-items:center;padding-top:.26041667vw;font-size:11Px;font-weight:400;color:rgba(0,0,0,.5)}._trainInfo_1l2x0_104 ._tagList_1l2x0_135 .n-divider{--n-color: rgba(0, 0, 0, .5) !important;height:11Px;margin:0 .26041667vw!important}._reportModel_1l2x0_148{width:62.5vw;overflow:hidden}\n",document.head.appendChild(T),e("n",""+new URL("nosub-edbc4601.png",t.meta.url).href),e("q",""+new URL("qualified-5f6fc5ac.png",t.meta.url).href),e("u",""+new URL("unqualified-89af2593.png",t.meta.url).href);const E="_commonWork_jydxg_1",B="_downMoveBg_jydxg_8",N="_dingPng_jydxg_15",S="_closeAble_jydxg_24",R="_header_jydxg_43",P="_navatar_jydxg_48",U="_userInfo_jydxg_61",V="_textarea_jydxg_76",M="_submitAppBtn_jydxg_92",G="_removeVisiable1_jydxg_103",D="_studentRemove_jydxg_109",z="_selectBtn_jydxg_120",O="_btnGroupModal_jydxg_136",W=""+new URL("common-bg-21ff5439.png",t.meta.url).href,K=""+new URL("common-top-49f36bee.png",t.meta.url).href,Q=(e("C",n({name:"commit-work",props:{comment:{type:String,default:""},workInfo:{type:Object,default:()=>({})}},emits:["close","confrim"],setup(e,{emit:t}){const n=r(),v=l({removeVisiable1:!1,comment:e.comment,btnLoading:!1,commentRemind:!0}),w=async()=>{if(v.comment){v.btnLoading=!0;try{await i({comment:v.comment,id:e.workInfo.studentLessonTrainingId}),n.success("点评成功"),t("confrim")}catch{}v.btnLoading=!1,v.commentRemind=!0}else n.error("请输入评语")},h=()=>{v.commentRemind&&f.set("isCommentRemind",1),v.removeVisiable1=!1,w()};return()=>a("div",{class:E},[a("img",{src:K,class:N,alt:""},null),a("img",{src:W,class:B,alt:""},null),a("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAdFJREFUWEftlr1KA0EQx2eXq0KuFKyCjVZa5TbBIp2CreAbKD6AhZVWWmsn+FGKjYj4AErKbG7vCbSzESsRuSskGdlwCWG5j529IhbZenb+v52d+e8ymPFiM9aHOcD/rIAQQiDiIef8rt/vP1bpk06ns5AkySlj7DMMw2MzV2YFgiC4R8QdAEAA2I+i6MYFIhV/QcRVvd/zvBUp5et0rkyAVqu1PRgMHgBGTeoEYYoDgFRKrTPGdL7Jyu2BZrO5BwBXLhCmOGNM1ev1zW63+2V1BeMgFwiKuNYpnQIKBFXcCkAH2UC4iFsDlEG4ipMA8iBqtdpTkiSTUStquKxRLu0Bc1PGdbwDQGN0moJuz/MRMoBOFATBLiJeG00c+b6/kTVqRSbmBKDvPI5jNT55evoDpdQ51THJAKn4MwCsGWJOjkkCyLDXiDF2i4hnLo5JmoKiUTN6glQJqwrYzLkrRCmAjXiVt6MQgCLuCpEL4CLuApEJUEWcCpH3JbtExH1Xe82B+OWcN8Iw/Cj9EQkhTobD4ZH+Rvm+v0W112mB9O24AIAfz/OWpJTfpQA6oN1uL/d6vTfzD0e1Wh0vhFjknMemOMmIXIRt9pT6gE2SKjFzgD9jrG8wBso1CwAAAABJRU5ErkJggg==",class:S,onClick:()=>{t("close")},alt:""},null),a("h2",null,[e.workInfo.isLook?"修改点评":"点评作业"]),a("div",{class:R},[a(_,{class:P,round:!0,src:e.workInfo.studentAvatar||o},null),a("div",{class:U},[a("h3",null,[e.workInfo.studentName]),a("p",null,[s("提交时间:"),e.workInfo.submitTime?d(e.workInfo.submitTime).format("YYYY-MM-DD HH:mm"):"--"])])]),a(m,{class:V,type:"textarea",rows:12,maxlength:500,showCount:!0,autosize:!1,value:v.comment,"onUpdate:value":e=>v.comment=e,placeholder:"请输入评语…"},null),a(c,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[a(g,{round:!0,type:"default",onClick:()=>t("close")},{default:()=>[s("取消")]}),a(g,{class:M,round:!0,type:"primary",loading:v.btnLoading,onClick:w},{default:()=>[s("确定")]})]}),a(x,{maskClosable:u,show:v.removeVisiable1,"onUpdate:show":e=>v.removeVisiable1=e,preset:"card",class:["modalTitle",G],title:"提交评语"},{default:()=>[a("div",{class:D},[a("p",null,[s("评语提交后"),a("span",null,[s("不可修改或删除")]),s(",请确认是否提交")]),a("div",{class:z},[a(p,{checked:v.commentRemind,"onUpdate:checked":e=>v.commentRemind=e},{default:()=>[s("下次不再提醒")]})]),a(c,{class:O,justify:"center"},{default:()=>[a(g,{round:!0,onClick:()=>{v.removeVisiable1=!1,v.commentRemind=!0}},{default:()=>[s("取消")]}),a(g,{round:!0,type:"primary",onClick:h},{default:()=>[s("确定")]})]})])]})])}})),{workItem:"_workItem_1l2x0_1","work-content-disabled":"_work-content-disabled_1l2x0_13",expireBg:"_expireBg_1l2x0_19","work-content":"_work-content_1l2x0_13",videoSection:"_videoSection_1l2x0_33",nodata:"_nodata_1l2x0_51",reportBtn:"_reportBtn_1l2x0_56","work-footer":"_work-footer_1l2x0_73",type:"_type_1l2x0_79","title-text":"_title-text_1l2x0_82",scoreGroup:"_scoreGroup_1l2x0_85",noSubmit:"_noSubmit_1l2x0_96",scoreGroupEval:"_scoreGroupEval_1l2x0_101",trainInfo:"_trainInfo_1l2x0_104",trainName:"_trainName_1l2x0_107",PRACTICE:"_PRACTICE_1l2x0_129",EVALUATION:"_EVALUATION_1l2x0_132",tagList:"_tagList_1l2x0_135",reportModel:"_reportModel_1l2x0_148"}),J=""+new URL("nomore-1c66dcbc.png",t.meta.url).href;e("W",n({name:"work-item",props:{item:{type:Object,default:()=>({})}},setup(e){const t=v(),o=r(),i=w(!1),n=w({type:"MUSIC",content:e.item.musicId,title:e.item.musicName,studentName:e.item.studentName}),l=w(""),_=w(!1);return()=>a("div",{class:[Q.workItem,(e.item.fileList?.expireFlag||"UNSUBMITTED"===e.item.trainingStatus)&&Q["work-content-disabled"]]},[a("div",{class:[Q["work-content"]],style:{cursor:"UNSUBMITTED"===e.item.trainingStatus?"default":"pointer"}},[!e.item.fileList?.fileType&&a(h,{src:J,class:Q.nodata,previewDisabled:!0,objectFit:"contain"},null),"IMG"===e.item.fileList?.fileType&&a(h,{src:e.item.fileList?.filePath,objectFit:"contain",renderToolbar:({nodes:t})=>[t.prev,t.next,t.rotateCounterclockwise,t.rotateClockwise,t.resizeToOriginalSize,t.zoomOut,a("div",{class:"n-base-icon",onClick:()=>(t=>{if(!t)return void o.error("下载失败");const i=t,n=e.item.musicName+(e.item.studentName?"-"+e.item.studentName:""),r=t.substring(t.lastIndexOf("."));fetch(i).then((e=>e.blob())).then((e=>{I.saveAs(e,(n||(new Date).getTime()+"")+r)})).catch((()=>{o.error("下载失败")}))})(e.item.fileList?.filePath)},[a("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[a("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[a("g",{fill:"currentColor","fill-rule":"nonzero"},[a("path",{d:"M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z"},null)])])])]),t.close]},null),"SOUND"===e.item.fileList?.fileType&&a("div",{onClick:()=>{n.value.content=e.item.fileList?.filePath,n.value.title=e.item.musicName,n.value.type="SONG",i.value=!0}},[a(h,{src:y.SONG_DEFAULT_COVER,previewDisabled:!0,objectFit:"contain"},null)]),"EVALUATION"===e.item.fileList?.fileType&&("video"===b(e.item.fileList?.content)?a("div",{class:Q.videoSection,onClick:()=>{n.value.content=e.item.fileList?.content,n.value.title=e.item.musicName,n.value.type="VIDEO",i.value=!0}},[a("video",{style:{height:"100%"},src:e.item.fileList?.content},null)]):a("div",{onClick:()=>{n.value.content=e.item.fileList?.content,n.value.title=e.item.musicName,n.value.type="SONG",i.value=!0}},[a(h,{src:y.SONG_DEFAULT_COVER,previewDisabled:!0,objectFit:"contain"},null)])),"VIDEO"===e.item.fileList?.fileType&&a("div",{class:Q.videoSection,onClick:()=>{n.value.content=e.item.fileList?.filePath,n.value.title=e.item.musicName,n.value.type="VIDEO",i.value=!0}},[a("video",{style:{height:"100%"},src:e.item.fileList?.filePath},null)]),e.item.fileList?.expireFlag&&a("div",{class:Q.expireBg},[s("文件已过期")]),e.item.recordId&&a(g,{color:"rgba(0,0,0,0.4)",textColor:"#fff",disabled:e.item.fileList?.expireFlag,class:Q.reportBtn,onClick:()=>{if(!e.item.recordId)return void o.error("暂无评测记录");const i=t.getToken;l.value=F()+`/instrument/#/evaluat-report?id=${e.item.recordId}&Authorization=${i}`,_.value=!0}},{default:()=>[s("评测报告")]})]),a("div",{class:Q["work-footer"]},[a("div",{class:Q.trainInfo},[a("div",{class:Q.trainName},[a("span",{class:[Q.type,Q[e.item.trainingType]]},["EVALUATION"===e.item.trainingType?"评测":"练习"]),a("div",{class:Q["title-text"]},[a(L,{text:e.item.musicName},null)])]),a("div",{class:Q.tagList},[e.item.typeList?.map(((t,o)=>a(k,null,[a("span",null,[t]),e.item.typeList.length-1>o&&a(j,{vertical:!0},null)])))])]),"EVALUATION"===e.item.trainingType?a("div",{class:[Q.scoreGroup,Q.scoreGroupEval]},["UNSUBMITTED"!==e.item.trainingStatus?a(k,null,[e.item.trainingTimes,a("span",null,[s("分")])]):a("span",{class:Q.noSubmit},[s("未提交")])]):a("div",{class:[Q.scoreGroup]},["UNSUBMITTED"!==e.item.trainingStatus?a(k,null,[e.item.trainingTimes?parseInt(e.item.trainingTimes/60+""):0,a("span",null,[s("分钟")])]):a("span",{class:Q.noSubmit},[s("未提交")])])]),a(C,{show:i.value,"onUpdate:show":e=>i.value=e,item:n.value},null),a(x,{maskClosable:u,show:_.value,"onUpdate:show":e=>_.value=e,preset:"card",class:["modalTitle background",Q.reportModel],title:"评测报告"},{default:()=>[a("div",{class:Q.reportContainer,style:{lineHeight:0}},[a("iframe",{width:"100%",height:"450px",frameborder:"0",onLoad:e=>{A(e.target)},src:l.value},null)])]})])}}))}}}));