index-240e1854-1714304141006.js 4.0 KB

1
  1. import{d as A}from"./teacherIcon-b8e3946d-1714304141006.js";import{e as f}from"./api-6f3aa308-1714304141006.js";import{d as p,b as g,e as k,f as e,aK as b,k as n,M as v,h as B,w as l,j as u,l as _,m as C,s as c}from"./index-3c72d77b-1714304141006.js";const J=""+new URL("nosub-edbc4601.png",import.meta.url).href,Q=""+new URL("qualified-5f6fc5ac.png",import.meta.url).href,Y=""+new URL("unqualified-89af2593.png",import.meta.url).href,w="_commonWork_1941k_1",R="_downMoveBg_1941k_8",E="_dingPng_1941k_15",h="_closeAble_1941k_24",D="_header_1941k_43",M="_navatar_1941k_48",F="_userInfo_1941k_61",I="_textarea_1941k_76",L="_submitAppBtn_1941k_92",V="_removeVisiable1_1941k_103",y="_studentRemove_1941k_109",T="_selectBtn_1941k_120",G="_btnGroupModal_1941k_136",o={commonWork:w,downMoveBg:R,dingPng:E,closeAble:h,header:D,navatar:M,userInfo:F,textarea:I,submitAppBtn:L,removeVisiable1:V,studentRemove:y,selectBtn:T,btnGroupModal:G},N=""+new URL("common-bg-21ff5439.png",import.meta.url).href,j=""+new URL("common-top-49f36bee.png",import.meta.url).href,U="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAdFJREFUWEftlr1KA0EQx2eXq0KuFKyCjVZa5TbBIp2CreAbKD6AhZVWWmsn+FGKjYj4AErKbG7vCbSzESsRuSskGdlwCWG5j529IhbZenb+v52d+e8ymPFiM9aHOcD/rIAQQiDiIef8rt/vP1bpk06ns5AkySlj7DMMw2MzV2YFgiC4R8QdAEAA2I+i6MYFIhV/QcRVvd/zvBUp5et0rkyAVqu1PRgMHgBGTeoEYYoDgFRKrTPGdL7Jyu2BZrO5BwBXLhCmOGNM1ev1zW63+2V1BeMgFwiKuNYpnQIKBFXcCkAH2UC4iFsDlEG4ipMA8iBqtdpTkiSTUStquKxRLu0Bc1PGdbwDQGN0moJuz/MRMoBOFATBLiJeG00c+b6/kTVqRSbmBKDvPI5jNT55evoDpdQ51THJAKn4MwCsGWJOjkkCyLDXiDF2i4hnLo5JmoKiUTN6glQJqwrYzLkrRCmAjXiVt6MQgCLuCpEL4CLuApEJUEWcCpH3JbtExH1Xe82B+OWcN8Iw/Cj9EQkhTobD4ZH+Rvm+v0W112mB9O24AIAfz/OWpJTfpQA6oN1uL/d6vTfzD0e1Wh0vhFjknMemOMmIXIRt9pT6gE2SKjFzgD9jrG8wBso1CwAAAABJRU5ErkJggg==",q=p({name:"commit-work",props:{comment:{type:String,default:""},workInfo:{type:Object,default:()=>({})}},emits:["close","confrim"],setup(s,{emit:m}){const r=g(),t=k({removeVisiable1:!1,comment:s.comment,btnLoading:!1,commentRemind:!0}),i=async()=>{if(c.get("isCommentRemind")!=1&&t.commentRemind){t.removeVisiable1=!0;return}if(!t.comment){r.error("请输入评语");return}t.btnLoading=!0;try{await f({comment:t.comment,id:s.workInfo.studentLessonTrainingId}),r.success("点评成功"),m("confrim")}catch(K){}t.btnLoading=!1,t.commentRemind=!0},d=()=>{t.commentRemind&&c.set("isCommentRemind",1),t.removeVisiable1=!1,i()};return()=>e("div",{class:o.commonWork},[e("img",{src:j,class:o.dingPng,alt:""},null),e("img",{src:N,class:o.downMoveBg,alt:""},null),e("img",{src:U,class:o.closeAble,onClick:()=>{m("close")},alt:""},null),e("h2",null,[s.workInfo.isLook?"查看评语":"点评作业"]),e("div",{class:o.header},[e(b,{class:o.navatar,round:!0,src:s.workInfo.studentAvatar||A},null),e("div",{class:o.userInfo},[e("h3",null,[s.workInfo.studentName]),e("p",null,[n("提交时间:"),v(s.workInfo.submitTime).format("YYYY-MM-DD HH:mm")])])]),e(B,{class:o.textarea,type:"textarea",rows:12,maxlength:500,showCount:!0,autosize:!1,disabled:s.workInfo.isLook,value:t.comment,"onUpdate:value":a=>t.comment=a,placeholder:"请输入评语…"},null),!s.workInfo.isLook&&e(l,{style:{padding:"25px 0 0 0"},justify:"center"},{default:()=>[e(u,{round:!0,type:"default",onClick:()=>m("close")},{default:()=>[n("取消")]}),e(u,{class:o.submitAppBtn,round:!0,type:"primary",loading:t.btnLoading,onClick:i},{default:()=>[n("确定")]})]}),e(_,{show:t.removeVisiable1,"onUpdate:show":a=>t.removeVisiable1=a,preset:"card",class:["modalTitle",o.removeVisiable1],title:"提交评语"},{default:()=>[e("div",{class:o.studentRemove},[e("p",null,[n("评语提交后"),e("span",null,[n("不可修改或删除")]),n(",请确认是否提交")]),e("div",{class:o.selectBtn},[e(C,{checked:t.commentRemind,"onUpdate:checked":a=>t.commentRemind=a},{default:()=>[n("下次不再提醒")]})]),e(l,{class:o.btnGroupModal,justify:"center"},{default:()=>[e(u,{round:!0,onClick:()=>{t.removeVisiable1=!1,t.commentRemind=!0}},{default:()=>[n("取消")]}),e(u,{round:!0,type:"primary",onClick:d},{default:()=>[n("确定")]})]})])]})])}});export{q as C,J as n,Q as q,Y as u};