index-3be0f72d-1708220053196.js 3.9 KB

1
  1. import{d as A}from"./teacherIcon-b8e3946d-1708220053196.js";import{d as b}from"./api-ff130d5b-1708220053196.js";import{d as f,b as p,e as g,f as e,k as n,a8 as w,K as B,h as v,w as i,j as u,l as C,m as _,s as l}from"./index-9bb5784d-1708220053196.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,k="_commonWork_x4bwt_1",E="_downMoveBg_x4bwt_8",R="_dingPng_x4bwt_15",h="_closeAble_x4bwt_24",D="_header_x4bwt_43",F="_navatar_x4bwt_48",M="_userInfo_x4bwt_61",x="_textarea_x4bwt_76",I="_submitAppBtn_x4bwt_85",L="_removeVisiable1_x4bwt_96",V="_studentRemove_x4bwt_102",y="_selectBtn_x4bwt_113",T="_btnGroupModal_x4bwt_129",o={commonWork:k,downMoveBg:E,dingPng:R,closeAble:h,header:D,navatar:F,userInfo:M,textarea:x,submitAppBtn:I,removeVisiable1:L,studentRemove:V,selectBtn:y,btnGroupModal:T},G=""+new URL("common-bg-21ff5439.png",import.meta.url).href,N=""+new URL("common-top-49f36bee.png",import.meta.url).href,j="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAdFJREFUWEftlr1KA0EQx2eXq0KuFKyCjVZa5TbBIp2CreAbKD6AhZVWWmsn+FGKjYj4AErKbG7vCbSzESsRuSskGdlwCWG5j529IhbZenb+v52d+e8ymPFiM9aHOcD/rIAQQiDiIef8rt/vP1bpk06ns5AkySlj7DMMw2MzV2YFgiC4R8QdAEAA2I+i6MYFIhV/QcRVvd/zvBUp5et0rkyAVqu1PRgMHgBGTeoEYYoDgFRKrTPGdL7Jyu2BZrO5BwBXLhCmOGNM1ev1zW63+2V1BeMgFwiKuNYpnQIKBFXcCkAH2UC4iFsDlEG4ipMA8iBqtdpTkiSTUStquKxRLu0Bc1PGdbwDQGN0moJuz/MRMoBOFATBLiJeG00c+b6/kTVqRSbmBKDvPI5jNT55evoDpdQ51THJAKn4MwCsGWJOjkkCyLDXiDF2i4hnLo5JmoKiUTN6glQJqwrYzLkrRCmAjXiVt6MQgCLuCpEL4CLuApEJUEWcCpH3JbtExH1Xe82B+OWcN8Iw/Cj9EQkhTobD4ZH+Rvm+v0W112mB9O24AIAfz/OWpJTfpQA6oN1uL/d6vTfzD0e1Wh0vhFjknMemOMmIXIRt9pT6gE2SKjFzgD9jrG8wBso1CwAAAABJRU5ErkJggg==",q=f({name:"commit-work",props:{comment:{type:String,default:""},workInfo:{type:Object,default:()=>({})}},emits:["close","confrim"],setup(s,{emit:m}){const c=p(),t=g({removeVisiable1:!1,comment:s.comment,btnLoading:!1,commentRemind:!0}),r=async()=>{if(l.get("isCommentRemind")!=1){t.removeVisiable1=!0;return}t.btnLoading=!0;try{await b({comment:t.comment,id:s.workInfo.studentLessonTrainingId}),c.success("点评成功"),m("confrim")}catch(U){}t.btnLoading=!1},d=()=>{t.commentRemind&&l.set("isCommentRemind",1),t.removeVisiable1=!1,r()};return()=>e("div",{class:o.commonWork},[e("img",{src:N,class:o.dingPng,alt:""},null),e("img",{src:G,class:o.downMoveBg,alt:""},null),e("img",{src:j,class:o.closeAble,onClick:()=>{m("close")},alt:""},null),e("h2",null,[n("点评作业")]),e("div",{class:o.header},[e(w,{class:o.navatar,round:!0,src:A},null),e("div",{class:o.userInfo},[e("h3",null,[s.workInfo.studentName]),e("p",null,[n("提交时间:"),B(s.workInfo.submitTime).format("YYYY-MM-DD")])])]),e(v,{class:o.textarea,type:"textarea",rows:10,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(i,{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:r},{default:()=>[n("确定")]})]}),e(C,{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(_,{checked:t.commentRemind,"onUpdate:checked":a=>t.commentRemind=a},{default:()=>[n("下次不在提醒")]})]),e(i,{class:o.btnGroupModal,justify:"center"},{default:()=>[e(u,{round:!0,onClick:()=>t.removeVisiable1=!1},{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};