index-ca041dc1-1716270128368.js 8.6 KB

1
  1. import{d as V}from"./teacherIcon-b8e3946d-1716270128368.js";import{e as G}from"./api-31ad90ca-1716270128368.js";import{d as x,b as R,e as S,f as e,aL as O,k as l,O as q,h as P,w as F,j as d,l as j,m as W,s as J,c as K,r as _,T as Q,v as g,P as N,b9 as z,F as A,b6 as Y,E as H}from"./index-43d59c12-1716270128368.js";import{T as X}from"./index-3f844b33-1716270128368.js";import{C as Z}from"./index-3e438c76-1716270128368.js";import{v as $}from"./urlUtils-a03c114e-1716270128368.js";const Ue=""+new URL("nosub-edbc4601.png",import.meta.url).href,Ve=""+new URL("qualified-5f6fc5ac.png",import.meta.url).href,Ge=""+new URL("unqualified-89af2593.png",import.meta.url).href,ee="_commonWork_jydxg_1",te="_downMoveBg_jydxg_8",ie="_dingPng_jydxg_15",ne="_closeAble_jydxg_24",oe="_header_jydxg_43",ae="_navatar_jydxg_48",le="_userInfo_jydxg_61",se="_textarea_jydxg_76",ue="_submitAppBtn_jydxg_92",re="_removeVisiable1_jydxg_103",ce="_studentRemove_jydxg_109",me="_selectBtn_jydxg_120",de="_btnGroupModal_jydxg_136",s={commonWork:ee,downMoveBg:te,dingPng:ie,closeAble:ne,header:oe,navatar:ae,userInfo:le,textarea:se,submitAppBtn:ue,removeVisiable1:re,studentRemove:ce,selectBtn:me,btnGroupModal:de},fe=""+new URL("common-bg-21ff5439.png",import.meta.url).href,ve=""+new URL("common-top-49f36bee.png",import.meta.url).href,_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAdFJREFUWEftlr1KA0EQx2eXq0KuFKyCjVZa5TbBIp2CreAbKD6AhZVWWmsn+FGKjYj4AErKbG7vCbSzESsRuSskGdlwCWG5j529IhbZenb+v52d+e8ymPFiM9aHOcD/rIAQQiDiIef8rt/vP1bpk06ns5AkySlj7DMMw2MzV2YFgiC4R8QdAEAA2I+i6MYFIhV/QcRVvd/zvBUp5et0rkyAVqu1PRgMHgBGTeoEYYoDgFRKrTPGdL7Jyu2BZrO5BwBXLhCmOGNM1ev1zW63+2V1BeMgFwiKuNYpnQIKBFXcCkAH2UC4iFsDlEG4ipMA8iBqtdpTkiSTUStquKxRLu0Bc1PGdbwDQGN0moJuz/MRMoBOFATBLiJeG00c+b6/kTVqRSbmBKDvPI5jNT55evoDpdQ51THJAKn4MwCsGWJOjkkCyLDXiDF2i4hnLo5JmoKiUTN6glQJqwrYzLkrRCmAjXiVt6MQgCLuCpEL4CLuApEJUEWcCpH3JbtExH1Xe82B+OWcN8Iw/Cj9EQkhTobD4ZH+Rvm+v0W112mB9O24AIAfz/OWpJTfpQA6oN1uL/d6vTfzD0e1Wh0vhFjknMemOMmIXIRt9pT6gE2SKjFzgD9jrG8wBso1CwAAAABJRU5ErkJggg==",Se=x({name:"commit-work",props:{comment:{type:String,default:""},workInfo:{type:Object,default:()=>({})}},emits:["close","confrim"],setup(t,{emit:r}){const f=R(),i=S({removeVisiable1:!1,comment:t.comment,btnLoading:!1,commentRemind:!0}),a=async()=>{if(!i.comment){f.error("请输入评语");return}i.btnLoading=!0;try{await G({comment:i.comment,id:t.workInfo.studentLessonTrainingId}),f.success("点评成功"),r("confrim")}catch(u){}i.btnLoading=!1,i.commentRemind=!0},v=()=>{i.commentRemind&&J.set("isCommentRemind",1),i.removeVisiable1=!1,a()};return()=>e("div",{class:s.commonWork},[e("img",{src:ve,class:s.dingPng,alt:""},null),e("img",{src:fe,class:s.downMoveBg,alt:""},null),e("img",{src:_e,class:s.closeAble,onClick:()=>{r("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||V},null),e("div",{class:s.userInfo},[e("h3",null,[t.workInfo.studentName]),e("p",null,[l("提交时间:"),q(t.workInfo.submitTime).format("YYYY-MM-DD HH:mm")])])]),e(P,{class:s.textarea,type:"textarea",rows:12,maxlength:500,showCount:!0,autosize:!1,value:i.comment,"onUpdate:value":u=>i.comment=u,placeholder:"请输入评语…"},null),e(F,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(d,{round:!0,type:"default",onClick:()=>r("close")},{default:()=>[l("取消")]}),e(d,{class:s.submitAppBtn,round:!0,type:"primary",loading:i.btnLoading,onClick:a},{default:()=>[l("确定")]})]}),e(j,{show:i.removeVisiable1,"onUpdate:show":u=>i.removeVisiable1=u,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(W,{checked:i.commentRemind,"onUpdate:checked":u=>i.commentRemind=u},{default:()=>[l("下次不再提醒")]})]),e(F,{class:s.btnGroupModal,justify:"center"},{default:()=>[e(d,{round:!0,onClick:()=>{i.removeVisiable1=!1,i.commentRemind=!0}},{default:()=>[l("取消")]}),e(d,{round:!0,type:"primary",onClick:v},{default:()=>[l("确定")]})]})])]})])}}),ge="_workItem_huq0p_1",Ae="_expireBg_huq0p_19",be="_nodata_huq0p_44",pe="_reportBtn_huq0p_49",he="_type_huq0p_72",we="_scoreGroup_huq0p_78",ye="_noSubmit_huq0p_89",Le="_scoreGroupEval_huq0p_94",ke="_trainInfo_huq0p_97",Ee="_trainName_huq0p_100",Ie="_PRACTICE_huq0p_122",Be="_EVALUATION_huq0p_125",Ce="_tagList_huq0p_128",Te="_reportModel_huq0p_141",o={workItem:ge,"work-content-disabled":"_work-content-disabled_huq0p_13",expireBg:Ae,"work-content":"_work-content_huq0p_13",nodata:be,reportBtn:pe,"work-footer":"_work-footer_huq0p_66",type:he,"title-text":"_title-text_huq0p_75",scoreGroup:we,noSubmit:ye,scoreGroupEval:Le,trainInfo:ke,trainName:Ee,PRACTICE:Ie,EVALUATION:Be,tagList:Ce,reportModel:Te},De=""+new URL("nomore-1c66dcbc.png",import.meta.url).href,Oe=x({name:"work-item",props:{item:{type:Object,default:()=>({})}},setup(t){const r=K(),f=R(),i=_(!1),a=_({type:"MUSIC",content:t.item.musicId,title:t.item.musicName}),v=_(""),u=_(!1),M=Q(()=>{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,b,p,h,w,y,L,k,E,I,B,C,T,D;return e("div",{class:[o.workItem,(((c=t.item.fileList)==null?void 0:c.expireFlag)||!((m=t.item.fileList)!=null&&m.fileType))&&o["work-content-disabled"]]},[e("div",{class:[o["work-content"]],style:{cursor:(b=t.item.fileList)!=null&&b.fileType?"pointer":"default"}},[!((p=t.item.fileList)!=null&&p.fileType)&&e(g,{src:De,class:o.nodata,previewDisabled:!0,objectFit:"contain"},null),((h=t.item.fileList)==null?void 0:h.fileType)==="IMG"&&e(g,{src:(w=t.item.fileList)==null?void 0:w.filePath,objectFit:"contain"},null),((y=t.item.fileList)==null?void 0:y.fileType)==="SOUND"&&e("div",{onClick:()=>{var n;a.value.content=(n=t.item.fileList)==null?void 0:n.filePath,a.value.title=t.item.musicName,a.value.type="SONG",i.value=!0}},[e(g,{src:N.SONG_DEFAULT_COVER,previewDisabled:!0,objectFit:"contain"},null)]),((L=t.item.fileList)==null?void 0:L.fileType)==="EVALUATION"&&(z((k=t.item.fileList)==null?void 0:k.content)==="video"?e("video",{style:{width:"100%"},src:(E=t.item.fileList)==null?void 0:E.content,onClick:()=>{var n;a.value.content=(n=t.item.fileList)==null?void 0:n.content,a.value.title=t.item.musicName,a.value.type="VIDEO",i.value=!0}},null):e("div",{onClick:()=>{var n;a.value.content=(n=t.item.fileList)==null?void 0:n.content,a.value.title=t.item.musicName,a.value.type="SONG",i.value=!0}},[e(g,{src:N.SONG_DEFAULT_COVER,previewDisabled:!0,objectFit:"contain"},null)])),((I=t.item.fileList)==null?void 0:I.fileType)==="VIDEO"&&e("video",{style:{width:"100%"},src:(B=t.item.fileList)==null?void 0:B.filePath,onClick:()=>{var n;a.value.content=(n=t.item.fileList)==null?void 0:n.filePath,a.value.title=t.item.musicName,a.value.type="VIDEO",i.value=!0}},null),((C=t.item.fileList)==null?void 0:C.expireFlag)&&e("div",{class:o.expireBg},[l("文件已过期")]),t.item.recordId&&e(d,{color:"rgba(0,0,0,0.4)",textColor:"#fff",disabled:(T=t.item.fileList)==null?void 0:T.expireFlag,class:o.reportBtn,onClick:()=>{if(!t.item.recordId){f.error("暂无评测记录");return}const n=r.getToken;v.value=$()+"/instrument/#/evaluat-report?id=".concat(t.item.recordId,"&Authorization=").concat(n),u.value=!0}},{default:()=>[l("评测报告")]})]),e("div",{class:o["work-footer"]},[e("div",{class:o.trainInfo},[e("div",{class:o.trainName},[e("span",{class:[o.type,o[t.item.trainingType]]},[t.item.trainingType==="EVALUATION"?"评测":"练习"]),e("div",{class:o["title-text"]},[e(X,{text:t.item.musicName},null)])]),e("div",{class:o.tagList},[(D=t.item.typeList)==null?void 0:D.map((n,U)=>e(A,null,[e("span",null,[n]),t.item.typeList.length-1>U&&e(Y,{vertical:!0},null)]))])]),t.item.trainingType==="EVALUATION"?e("div",{class:[o.scoreGroup,o.scoreGroupEval]},[t.item.fileJsonList&&t.item.fileJsonList.length>0?e(A,null,[t.item.trainingTimes,e("span",null,[l("分")])]):e("span",{class:o.noSubmit},[l("未提交")])]):e("div",{class:[o.scoreGroup]},[t.item.fileJsonList&&t.item.fileJsonList.length>0?e(A,null,[t.item.trainingTimes?parseInt(t.item.trainingTimes/60+""):0,e("span",null,[l("分钟")])]):e("span",{class:o.noSubmit},[l("未提交")])])]),e(Z,{show:i.value,"onUpdate:show":n=>i.value=n,item:a.value,isDownload:M.value},null),e(j,{show:u.value,"onUpdate:show":n=>u.value=n,preset:"card",class:["modalTitle background",o.reportModel],title:"评测报告"},{default:()=>[e("div",{class:o.reportContainer,style:{lineHeight:0}},[e("iframe",{width:"100%",height:"450px",frameborder:"0",onLoad:n=>{H(n.target)},src:v.value},null)])]})])}}});export{Se as C,Oe as W,Ue as n,Ve as q,Ge as u};