1 |
- import{d as U}from"./teacherIcon-b8e3946d-1715743749367.js";import{e as V}from"./api-2cd7effb-1715743749367.js";import{d as D,b as F,e as G,f as e,aK as O,k as l,M as z,h as S,w as y,j as d,l as N,m as x,s as j,c as P,r as _,S as W,v as A,P as T,b8 as K,F as J,b5 as Q,D as Y}from"./index-1a13cb99-1715743749367.js";import{T as q}from"./index-c6f8bfd0-1715743749367.js";import{C as H}from"./index-951804e3-1715743749367.js";import{v as X}from"./urlUtils-a03c114e-1715743749367.js";const Me=""+new URL("nosub-edbc4601.png",import.meta.url).href,Ue=""+new URL("qualified-5f6fc5ac.png",import.meta.url).href,Ve=""+new URL("unqualified-89af2593.png",import.meta.url).href,Z="_commonWork_1941k_1",$="_downMoveBg_1941k_8",ee="_dingPng_1941k_15",te="_closeAble_1941k_24",ae="_header_1941k_43",ne="_navatar_1941k_48",ie="_userInfo_1941k_61",oe="_textarea_1941k_76",se="_submitAppBtn_1941k_92",le="_removeVisiable1_1941k_103",re="_studentRemove_1941k_109",ue="_selectBtn_1941k_120",ce="_btnGroupModal_1941k_136",s={commonWork:Z,downMoveBg:$,dingPng:ee,closeAble:te,header:ae,navatar:ne,userInfo:ie,textarea:oe,submitAppBtn:se,removeVisiable1:le,studentRemove:re,selectBtn:ue,btnGroupModal:ce},me=""+new URL("common-bg-21ff5439.png",import.meta.url).href,de=""+new URL("common-top-49f36bee.png",import.meta.url).href,fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAdFJREFUWEftlr1KA0EQx2eXq0KuFKyCjVZa5TbBIp2CreAbKD6AhZVWWmsn+FGKjYj4AErKbG7vCbSzESsRuSskGdlwCWG5j529IhbZenb+v52d+e8ymPFiM9aHOcD/rIAQQiDiIef8rt/vP1bpk06ns5AkySlj7DMMw2MzV2YFgiC4R8QdAEAA2I+i6MYFIhV/QcRVvd/zvBUp5et0rkyAVqu1PRgMHgBGTeoEYYoDgFRKrTPGdL7Jyu2BZrO5BwBXLhCmOGNM1ev1zW63+2V1BeMgFwiKuNYpnQIKBFXcCkAH2UC4iFsDlEG4ipMA8iBqtdpTkiSTUStquKxRLu0Bc1PGdbwDQGN0moJuz/MRMoBOFATBLiJeG00c+b6/kTVqRSbmBKDvPI5jNT55evoDpdQ51THJAKn4MwCsGWJOjkkCyLDXiDF2i4hnLo5JmoKiUTN6glQJqwrYzLkrRCmAjXiVt6MQgCLuCpEL4CLuApEJUEWcCpH3JbtExH1Xe82B+OWcN8Iw/Cj9EQkhTobD4ZH+Rvm+v0W112mB9O24AIAfz/OWpJTfpQA6oN1uL/d6vTfzD0e1Wh0vhFjknMemOMmIXIRt9pT6gE2SKjFzgD9jrG8wBso1CwAAAABJRU5ErkJggg==",Ge=D({name:"commit-work",props:{comment:{type:String,default:""},workInfo:{type:Object,default:()=>({})}},emits:["close","confrim"],setup(t,{emit:u}){const f=F(),a=G({removeVisiable1:!1,comment:t.comment,btnLoading:!1,commentRemind:!0}),o=async()=>{if(!a.comment){f.error("请输入评语");return}a.btnLoading=!0;try{await V({comment:a.comment,id:t.workInfo.studentLessonTrainingId}),f.success("点评成功"),u("confrim")}catch(r){}a.btnLoading=!1,a.commentRemind=!0},v=()=>{a.commentRemind&&j.set("isCommentRemind",1),a.removeVisiable1=!1,o()};return()=>e("div",{class:s.commonWork},[e("img",{src:de,class:s.dingPng,alt:""},null),e("img",{src:me,class:s.downMoveBg,alt:""},null),e("img",{src:fe,class:s.closeAble,onClick:()=>{u("close")},alt:""},null),e("h2",null,[t.workInfo.isLook?"修改点评":"点评作业"]),e("div",{class:s.header},[e(O,{class:s.navatar,round:!0,src:t.workInfo.studentAvatar||U},null),e("div",{class:s.userInfo},[e("h3",null,[t.workInfo.studentName]),e("p",null,[l("提交时间:"),z(t.workInfo.submitTime).format("YYYY-MM-DD HH:mm")])])]),e(S,{class:s.textarea,type:"textarea",rows:12,maxlength:500,showCount:!0,autosize:!1,value:a.comment,"onUpdate:value":r=>a.comment=r,placeholder:"请输入评语…"},null),e(y,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(d,{round:!0,type:"default",onClick:()=>u("close")},{default:()=>[l("取消")]}),e(d,{class:s.submitAppBtn,round:!0,type:"primary",loading:a.btnLoading,onClick:o},{default:()=>[l("确定")]})]}),e(N,{show:a.removeVisiable1,"onUpdate:show":r=>a.removeVisiable1=r,preset:"card",class:["modalTitle",s.removeVisiable1],title:"提交评语"},{default:()=>[e("div",{class:s.studentRemove},[e("p",null,[l("评语提交后"),e("span",null,[l("不可修改或删除")]),l(",请确认是否提交")]),e("div",{class:s.selectBtn},[e(x,{checked:a.commentRemind,"onUpdate:checked":r=>a.commentRemind=r},{default:()=>[l("下次不再提醒")]})]),e(y,{class:s.btnGroupModal,justify:"center"},{default:()=>[e(d,{round:!0,onClick:()=>{a.removeVisiable1=!1,a.commentRemind=!0}},{default:()=>[l("取消")]}),e(d,{round:!0,type:"primary",onClick:v},{default:()=>[l("确定")]})]})])]})])}}),ve="_workItem_11sza_1",_e="_expireBg_11sza_24",Ae="_nodata_11sza_35",ge="_reportBtn_11sza_40",ke="_type_11sza_63",be="_scoreGroup_11sza_69",pe="_scoreGroupEval_11sza_80",we="_trainInfo_11sza_83",Le="_trainName_11sza_86",Ie="_PRACTICE_11sza_108",Be="_EVALUATION_11sza_111",Ce="_tagList_11sza_114",Ee="_reportModel_11sza_127",i={workItem:ve,"work-content":"_work-content_11sza_13",expireBg:_e,nodata:Ae,reportBtn:ge,"work-footer":"_work-footer_11sza_57",type:ke,"title-text":"_title-text_11sza_66",scoreGroup:be,scoreGroupEval:pe,trainInfo:we,trainName:Le,PRACTICE:Ie,EVALUATION:Be,tagList:Ce,reportModel:Ee},he=""+new URL("nomore-1c66dcbc.png",import.meta.url).href,Oe=D({name:"work-item",props:{item:{type:Object,default:()=>({})}},setup(t){const u=P(),f=F(),a=_(!1),o=_({type:"MUSIC",content:t.item.musicId,title:t.item.musicName}),v=_(""),r=_(!1);console.log(t.item);const R=W(()=>{var c,m;return!!((c=t.item.fileList)!=null&&c.expireFlag&&((m=t.item.fileList)==null?void 0:m.fileType)==="EVALUATION")});return()=>{var c,m,g,k,b,p,w,L,I,B,C,E,h;return e("div",{class:i.workItem},[e("div",{class:[i["work-content"]],style:{cursor:(c=t.item.fileList)!=null&&c.fileType?"pointer":"default"}},[!((m=t.item.fileList)!=null&&m.fileType)&&e(A,{src:he,class:i.nodata,previewDisabled:!0,objectFit:"contain"},null),((g=t.item.fileList)==null?void 0:g.fileType)==="IMG"&&e(A,{src:(k=t.item.fileList)==null?void 0:k.filePath,objectFit:"contain"},null),((b=t.item.fileList)==null?void 0:b.fileType)==="SOUND"&&e("div",{onClick:()=>{var n;o.value.content=(n=t.item.fileList)==null?void 0:n.filePath,o.value.title=t.item.musicName,o.value.type="SONG",a.value=!0}},[e(A,{src:T.SONG_DEFAULT_COVER,previewDisabled:!0,objectFit:"contain"},null)]),((p=t.item.fileList)==null?void 0:p.fileType)==="EVALUATION"&&(K((w=t.item.fileList)==null?void 0:w.content)==="video"?e("video",{style:{height:"100%"},src:(L=t.item.fileList)==null?void 0:L.content,onClick:()=>{var n;o.value.content=(n=t.item.fileList)==null?void 0:n.content,o.value.title=t.item.musicName,o.value.type="VIDEO",a.value=!0}},null):e("div",{onClick:()=>{var n;o.value.content=(n=t.item.fileList)==null?void 0:n.content,o.value.title=t.item.musicName,o.value.type="SONG",a.value=!0}},[e(A,{src:T.SONG_DEFAULT_COVER,previewDisabled:!0,objectFit:"contain"},null)])),((I=t.item.fileList)==null?void 0:I.fileType)==="VIDEO"&&e("video",{style:{height:"100%"},src:(B=t.item.fileList)==null?void 0:B.filePath,onClick:()=>{var n;o.value.content=(n=t.item.fileList)==null?void 0:n.filePath,o.value.title=t.item.musicName,o.value.type="VIDEO",a.value=!0}},null),((C=t.item.fileList)==null?void 0:C.expireFlag)&&e("div",{class:i.expireBg},[l("文件已过期")]),t.item.recordId&&e(d,{color:"rgba(0,0,0,0.4)",textColor:"#fff",disabled:(E=t.item.fileList)==null?void 0:E.expireFlag,class:i.reportBtn,onClick:()=>{if(!t.item.recordId){f.error("暂无评测记录");return}const n=u.getToken;v.value=X()+"/instrument/#/evaluat-report?id=".concat(t.item.recordId,"&Authorization=").concat(n),r.value=!0}},{default:()=>[l("评测报告")]})]),e("div",{class:i["work-footer"]},[e("div",{class:i.trainInfo},[e("div",{class:i.trainName},[e("span",{class:[i.type,i[t.item.trainingType]]},[t.item.trainingType==="EVALUATION"?"评测":"练习"]),e("div",{class:i["title-text"]},[e(q,{text:t.item.musicName},null)])]),e("div",{class:i.tagList},[(h=t.item.typeList)==null?void 0:h.map((n,M)=>e(J,null,[e("span",null,[n]),t.item.typeList.length-1>M&&e(Q,{vertical:!0},null)]))])]),t.item.trainingType==="EVALUATION"?e("div",{class:[i.scoreGroup,i.scoreGroupEval]},[t.item.trainingTimes,e("span",null,[l("分")])]):e("div",{class:[i.scoreGroup]},[t.item.trainingTimes?parseInt(t.item.trainingTimes/60+""):0,e("span",null,[l("分钟")])])]),e(H,{show:a.value,"onUpdate:show":n=>a.value=n,item:o.value,isDownload:R.value},null),e(N,{show:r.value,"onUpdate:show":n=>r.value=n,preset:"card",class:["modalTitle background",i.reportModel],title:"评测报告"},{default:()=>[e("div",{class:i.reportContainer,style:{lineHeight:0}},[e("iframe",{width:"100%",height:"450px",frameborder:"0",onLoad:n=>{Y(n.target)},src:v.value},null)])]})])}}});export{Ge as C,Oe as W,Me as n,Ue as q,Ve as u};
|